mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Add behavioral and coaching call popups
Summary: Adds a new category of popups that are shown dynamically when certain parts of the UI are first rendered, and a free coaching call popup that's shown to users on their site home page. Test Plan: Browser tests. Reviewers: jarek Reviewed By: jarek Differential Revision: https://phab.getgrist.com/D3706
This commit is contained in:
@@ -94,6 +94,10 @@ export interface ViewSectionRec extends IRowModel<"_grist_Views_section">, RuleO
|
||||
// changes to their filters. (True indicates unsaved changes)
|
||||
filterSpecChanged: Computed<boolean>;
|
||||
|
||||
// Set to true when a second pinned filter is added, to trigger a behavioral prompt. Note that
|
||||
// the popup is only shown once, even if this observable is set to true again in the future.
|
||||
showNestedFilteringPopup: Observable<boolean>;
|
||||
|
||||
// Customizable version of the JSON-stringified sort spec. It may diverge from the saved one.
|
||||
activeSortJson: modelUtil.CustomComputed<string>;
|
||||
|
||||
@@ -432,6 +436,8 @@ export function createViewSectionRec(this: ViewSectionRec, docModel: DocModel):
|
||||
return use(this.filters).some(col => !use(col.filter.isSaved) || !use(col.pinned.isSaved));
|
||||
});
|
||||
|
||||
this.showNestedFilteringPopup = Observable.create(this, false);
|
||||
|
||||
// Save all filters of fields/columns in the section.
|
||||
this.saveFilters = () => {
|
||||
return docModel.docData.bundleActions(`Save all filters in ${this.titleDef()}`,
|
||||
|
||||
Reference in New Issue
Block a user