gristlabs_grist-core/app/client/widgets
Cyprien P 693f2f6325 (core) Brings welcome tour and hide behind a flag
Summary:
This diff brings in the new welcome tour. It builds upon `client/ui/OnBoardingPopup` that was committed to that purposes. Per this diff,  the tour is accessible behind a flag and won't be visible to user: few caveats listed below needs to be adressed first.

This diff also brings few changes to onboarding module.
  - allow to refer to element with selector
     - usually dynamic selection of element sounds useful for when the
     element does not exist yet when the tour starts. But the actual
     reason when add it here, is to allow selecting the first cell.
     - if the selector yields undefined (missing element), the popup
     is simply skipped
  - got rid of the internal registry to link between popup contents
  and popup options. All is now define in the same interface. Registry
  overall felt overkill and not needed.
  - adds an option to show message as a simple modal that is centered
  on the screen

This diff also brings the new welcome tour and hide it behind a flag

CAVEATS that need to be addressed in follow up commit:
 - The url needs cleanup, #repeat-welcome-tour sticks to it and so even when navigating to home page. This could eventually become an issue: if user opens another document it would starts the onboarding tour again.
 - For now you have to manually make sure the right panel is opened with the Column tab selected before starting the tour.
  - On boarding tours were not designed with mobile support in mind. So probably a good idea to disable.
  - Backend support needs to be done (persistence of first time user).

Test Plan:
Updated `projects/OnBoardingPopup` and adds new `nbrowser/welcomeTour`
To launch the tour:
  - open any document
  - open manually the right panel and the field tab
  - append the flag `#repeat-welcome-tour` at the end of the url in the url bar and reload the page

Reviewers: dsagal

Reviewed By: dsagal

Differential Revision: https://phab.getgrist.com/D2917
2021-07-19 16:30:53 +02:00
..
AbstractWidget.js (core) Add new color select to the app 2021-03-02 16:41:37 +01:00
AttachmentsEditor.ts (core) Readonly editors 2021-06-17 19:12:16 +02:00
AttachmentsWidget.css (core) Revamp attachment editor + preview UI, and support more types, including PDFs. 2020-11-19 21:30:09 -05:00
AttachmentsWidget.ts (core) Revamp attachment editor + preview UI, and support more types, including PDFs. 2020-11-19 21:30:09 -05:00
BaseEditor.js (core) Change how formula columns can be converted to data. 2021-03-05 12:42:57 -05:00
CheckBox.css (core) Making cells colors effective also in Card and Card List views 2021-02-09 15:08:44 +01:00
CheckBox.js (core) Add new color select to the app 2021-03-02 16:41:37 +01:00
CheckBoxEditor.js (core) Readonly editors 2021-06-17 19:12:16 +02:00
ChoiceEditor.js (core) Enhance autocomplete and choice colors 2021-07-16 09:10:51 -07:00
ChoiceListCell.ts (core) Enhance autocomplete and choice colors 2021-07-16 09:10:51 -07:00
ChoiceListEditor.ts (core) Enhance autocomplete and choice colors 2021-07-16 09:10:51 -07:00
ChoiceListEntry.ts (core) Enhance autocomplete and choice colors 2021-07-16 09:10:51 -07:00
ChoiceTextBox.ts (core) Enhance autocomplete and choice colors 2021-07-16 09:10:51 -07:00
ChoiceToken.ts (core) Enhance autocomplete and choice colors 2021-07-16 09:10:51 -07:00
DateEditor.js (core) Readonly editors 2021-06-17 19:12:16 +02:00
DateTextBox.js (core) Formatting date time editor 2021-07-13 09:22:39 +02:00
DateTimeEditor.css (core) move client code to core 2020-10-02 13:24:21 -04:00
DateTimeEditor.js (core) Readonly editors 2021-06-17 19:12:16 +02:00
DateTimeTextBox.js (core) Formatting date time editor 2021-07-13 09:22:39 +02:00
DiffBox.ts (core) Configure more comprehensive eslint rules for Typescript 2021-04-26 18:54:55 -04:00
EditorButtons.ts (core) Add support for editing on mobile. 2021-02-03 23:10:51 -05:00
EditorPlacement.ts (core) Add support for editing on mobile. 2021-02-03 23:10:51 -05:00
EditorTooltip.ts (core) Add a button and a tooltip to Access Rules page item, in View-As mode. 2021-03-08 16:08:21 -05:00
ErrorDom.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
FieldBuilder.css (core) move client code to core 2020-10-02 13:24:21 -04:00
FieldBuilder.ts (core) Brings welcome tour and hide behind a flag 2021-07-19 16:30:53 +02:00
FieldEditor.ts (core) Fix reporting of errors when saving cells by clicking away, and deduplicate memos. 2021-06-23 08:50:42 -04:00
FormulaEditor.ts (core) Add 'value' to trigger formula autocomplete 2021-07-12 15:07:16 -07:00
HyperLinkEditor.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
HyperLinkTextBox.ts (core) Navigate hyperlinks in the same document without a page reload 2021-05-21 12:21:27 +02:00
NewAbstractWidget.ts (core) Add new color select to the app 2021-03-02 16:41:37 +01:00
NewBaseEditor.ts (core) Readonly editors 2021-06-17 19:12:16 +02:00
NTextBox.ts (core) Add new color select to the app 2021-03-02 16:41:37 +01:00
NTextEditor.ts (core) Readonly editors 2021-06-17 19:12:16 +02:00
NumericTextBox.ts (core) Convert a few widgets to typescript and grainjs. 2020-11-23 09:49:55 -05:00
Reference.css (core) move client code to core 2020-10-02 13:24:21 -04:00
Reference.ts (core) Add cell formatting options to reference columns 2021-06-08 14:59:03 -07:00
ReferenceEditor.ts (core) Enhance autocomplete and choice colors 2021-07-16 09:10:51 -07:00
Spinner.css (core) move client code to core 2020-10-02 13:24:21 -04:00
Spinner.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
Switch.css (core) Making cells colors effective also in Card and Card List views 2021-02-09 15:08:44 +01:00
Switch.js (core) Add new color select to the app 2021-03-02 16:41:37 +01:00
TextBox.css (core) Readonly editors 2021-06-17 19:12:16 +02:00
TextEditor.css (core) Readonly editors 2021-06-17 19:12:16 +02:00
TextEditor.js (core) Readonly editors 2021-06-17 19:12:16 +02:00
UserType.js (core) Add color options to choice config UI 2021-07-09 12:07:38 -07:00
UserTypeImpl.js (core) Add ChoiceList type, cell widget, and editor widget. 2021-05-12 10:38:32 -04:00