(core) Adds new view as banner

Summary:
Diff removes view-as pill in the document breadcrumbs and add new view-as banner.

Note: Banners are still missing mechanism to handle several banners. As of now both doc-usage and view-as banners could show up at the same time.

Test Plan: Refactored existing test.

Reviewers: jarek

Reviewed By: jarek

Subscribers: jarek

Differential Revision: https://phab.getgrist.com/D3732
This commit is contained in:
Cyprien P
2023-01-03 11:52:25 +01:00
parent c0e9c18128
commit cabac3d9d8
15 changed files with 282 additions and 132 deletions

View File

@@ -567,7 +567,6 @@
"Reset": "Reset",
"AddTableRules": "Add Table Rules",
"AddUserAttributes": "Add User Attributes",
"Users": "Users",
"UserAttributes": "User Attributes",
"AttributeToLookUp": "Attribute to Look Up",
"LookupTable": "Lookup Table",
@@ -591,7 +590,13 @@
"RemoveRulesMentioningTable": "Remove {{- tableId }} rules",
"RemoveRulesMentioningColumn": "Remove column {{- colId }} from {{- tableId }} rules",
"RemoveUserAttribute": "Remove {{- name }} user attribute",
"MemoEditorPlaceholder": "Type a message..."
"MemoEditorPlaceholder": "Type a message...",
"ViewAs": "View As"
},
"ViewAsDropdown": {
"ViewAs": "View As",
"UsersFrom": "Users from table",
"ExampleUsers": "Example Users"
},
"PermissionsWidget": {
"AllowAll": "Allow All",
@@ -729,7 +734,7 @@
"PluginColon": "Plugin: ",
"SectionColon": "Section: "
},
"Drafts": {
"Drafts": {
"UndoDiscard":"Undo discard",
"RestoreLastEdit":"Restore last edit"
},
@@ -777,6 +782,9 @@
"ValidationPanel": {
"RuleLength":"Rule {{length}}",
"UpdateFormula":"Update formula (Shift+Enter)"
},
"ViewAsBanner": {
"UnknownUser": "Unknown User"
}
}
}