* Add report a problem type and allow logs config

* Improve device type logic

* Add tests and minor fixes

* Add texts

* Fix tests by avoiding circular dependencies

* Fix test

* Fix useexternallink updating mailtos, and changing the content of query parameters

* Fix texts

* Fix e2e test

* Fix tsc

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Daniel Espino García
2025-04-25 11:08:39 +02:00
коммит произвёл GitHub
родитель 29f7c895b8
Коммит 71334c6d8b
31 изменённых файлов: 866 добавлений и 539 удалений

Просмотреть файл

@@ -42,6 +42,7 @@ describe('SupportSettings', () => {
cy.findByTestId('SupportSettings.PrivacyPolicyLinkinput').clear().type(privacyLink);
cy.findByTestId('SupportSettings.AboutLinkinput').clear().type(aboutLink);
cy.findByTestId('SupportSettings.HelpLinkinput').clear().type(helpLink);
cy.findByTestId('SupportSettings.ReportAProblemTypedropdown').select('Custom link');
cy.findByTestId('SupportSettings.ReportAProblemLinkinput').clear().type(problemLink);
// # Save setting then back to team view
@@ -114,7 +115,7 @@ describe('SupportSettings', () => {
it('MM-T1036 - Customization: Blank Help and Report a Problem hides options from help menu', () => {
// # Change help and report links to blanks
cy.findByTestId('SupportSettings.HelpLinkinput').type('any').clear();
cy.findByTestId('SupportSettings.ReportAProblemLinkinput').type('any').clear();
cy.findByTestId('SupportSettings.ReportAProblemTypedropdown').select('Hide link');
// # Save setting and back to team view
saveSetting();
@@ -157,11 +158,10 @@ describe('SupportSettings', () => {
// * Verify that hover shows "Help" text
cy.uiGetHelpButton().
trigger('mouseover', {force: true}).
should('have.attr', 'aria-describedby').
and('equal', 'userGuideHelpTooltip');
trigger('mouseenter').
should('have.attr', 'aria-describedby');
cy.uiGetHelpButton().
trigger('mouseout', {force: true}).
trigger('mouseleave').
should('not.have.attr', 'aria-describedby');
// # Open help menu
@@ -184,6 +184,7 @@ describe('SupportSettings', () => {
// Edit help link and report a problem link
cy.findByTestId('SupportSettings.HelpLinkinput').clear().type(helpLink);
cy.findByTestId('SupportSettings.ReportAProblemTypedropdown').select('Custom link');
cy.findByTestId('SupportSettings.ReportAProblemLinkinput').clear().type(problemLink);
// # Save setting and back to team view

Просмотреть файл

@@ -190,6 +190,7 @@
"AboutLink": "https://mattermost.com/pl/about-mattermost",
"HelpLink": "https://mattermost.com/pl/help/",
"ReportAProblemLink": "https://mattermost.com/pl/report-a-bug",
"ReportAProblemType": "link",
"ForgotPasswordLink": "",
"SupportEmail": "",
"CustomTermsOfServiceEnabled": false,

Просмотреть файл

@@ -298,6 +298,7 @@
"AboutLink": "https://mattermost.com/pl/about-mattermost",
"HelpLink": "https://mattermost.com/pl/help/",
"ReportAProblemLink": "https://mattermost.com/pl/report-a-bug",
"ReportAProblemType": "link",
"ForgotPasswordLink": "",
"SupportEmail": "",
"CustomTermsOfServiceEnabled": false,

Просмотреть файл

@@ -396,6 +396,9 @@ const defaultServerConfig: AdminConfig = {
AboutLink: 'https://mattermost.com/pl/about-mattermost',
HelpLink: 'https://mattermost.com/pl/help/',
ReportAProblemLink: 'https://mattermost.com/pl/report-a-bug',
ReportAProblemType: 'link',
ReportAProblemMail: '',
AllowDownloadLogs: true,
ForgotPasswordLink: '',
SupportEmail: '',
CustomTermsOfServiceEnabled: false,