mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Removing warnings about deprecated shortcuts.
Summary: Warnings about deprecated shortcuts are no longer needed. As a side effect it fixes a bug that caused those warnings to not persist its state on pages with charts. Test Plan: Removed Reviewers: georgegevoian Reviewed By: georgegevoian Differential Revision: https://phab.getgrist.com/D3820
This commit is contained in:
@@ -23,7 +23,7 @@ export interface UserPrefs extends Prefs {
|
||||
recordSignUpEvent?: boolean;
|
||||
// Theme-related preferences.
|
||||
theme?: ThemePrefs;
|
||||
// List of deprecated warnings user have seen.
|
||||
// List of deprecated warnings user have seen. Kept for historical reasons as some users have them in their prefs.
|
||||
seenDeprecatedWarnings?: DeprecationWarning[];
|
||||
// List of dismissedPopups user have seen.
|
||||
dismissedPopups?: DismissedPopup[];
|
||||
@@ -61,11 +61,16 @@ export type OrgPrefs = Prefs;
|
||||
* All of them are marked as seen for new users in FlexServer.ts (welcomeNewUser handler).
|
||||
* For now we use then to mark which keyboard shortcuts are deprecated, so those keys
|
||||
* are also used in commandList.js.
|
||||
*
|
||||
* Source code for this feature was deprecated itself :). Here is a link to the latest revision:
|
||||
* https://github.com/gristlabs/grist-core/blob/ec20e7fb68786e10979f238c16c432c50a9a7464/app/client/components/DeprecatedCommands.ts
|
||||
*/
|
||||
export const DeprecationWarning = StringUnion(
|
||||
'deprecatedInsertRowBefore',
|
||||
'deprecatedInsertRecordAfter',
|
||||
'deprecatedDeleteRecords',
|
||||
// Those are not checked anymore. They are kept here for historical reasons (as some users have them marked as seen
|
||||
// so they should not be reused).
|
||||
// 'deprecatedInsertRowBefore',
|
||||
// 'deprecatedInsertRecordAfter',
|
||||
// 'deprecatedDeleteRecords',
|
||||
);
|
||||
export type DeprecationWarning = typeof DeprecationWarning.type;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user