1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Web: Show a "Give feedback" banner and link to a survey (#13125)

This commit is contained in:
Henry Heino
2025-09-08 02:59:40 -07:00
committed by GitHub
parent 5ba9a16cfd
commit 82760a5b6a
11 changed files with 445 additions and 40 deletions

View File

@@ -30,6 +30,12 @@ export enum ScrollbarSize {
Large = 24,
}
export enum SurveyProgress {
NotStarted,
Started,
Dismissed,
}
const builtInMetadata = (Setting: typeof SettingType) => {
const platform = shim.platformName();
const mobilePlatform = shim.mobilePlatform();
@@ -1875,6 +1881,21 @@ const builtInMetadata = (Setting: typeof SettingType) => {
isGlobal: true,
},
'survey.webClientEval2025.progress': {
value: SurveyProgress.NotStarted,
type: SettingItemType.Int,
public: false,
isEnum: true,
storage: SettingStorage.File,
options: () => ({
[SurveyProgress.NotStarted]: 'Not started',
[SurveyProgress.Started]: 'Started',
[SurveyProgress.Dismissed]: 'Done',
}),
label: () => 'Show web client evaluation survey',
isGlobal: true,
},
'sync.allowUnsupportedProviders': {
value: -1,
type: SettingItemType.Int,