@ -103,7 +103,15 @@ see or edit which parts of your document.')
export interface BehavioralPromptContent {
title : ( ) = > string ;
content : ( . . . domArgs : DomElementArg [ ] ) = > DomContents ;
deploymentTypes : GristDeploymentType [ ] | '*' ;
showDeploymentTypes : GristDeploymentType [ ] | '*' ;
/** Defaults to `desktop`. */
showContext ? : 'mobile' | 'desktop' | '*' ;
/** Defaults to `false`. */
hideDontShowTips? : boolean ;
/** Defaults to `false`. */
forceShow? : boolean ;
/** Defaults to `true`. */
markAsSeen? : boolean ;
}
export const GristBehavioralPrompts : Record < BehavioralPrompt , BehavioralPromptContent > = {
@ -119,7 +127,7 @@ export const GristBehavioralPrompts: Record<BehavioralPrompt, BehavioralPromptCo
) ,
. . . args ,
) ,
d eploymentTypes: [ 'saas' ] ,
showD eploymentTypes: [ 'saas' ] ,
} ,
referenceColumnsConfig : {
title : ( ) = > t ( 'Reference Columns' ) ,
@ -134,7 +142,7 @@ record in that table, but you may select which column from that record to show.'
) ,
. . . args ,
) ,
d eploymentTypes: [ 'saas' ] ,
showD eploymentTypes: [ 'saas' ] ,
} ,
rawDataPage : {
title : ( ) = > t ( 'Raw Data page' ) ,
@ -144,7 +152,7 @@ including summary tables and tables not included in page layouts.')),
dom ( 'div' , cssLink ( { href : commonUrls.helpRawData , target : '_blank' } , t ( 'Learn more.' ) ) ) ,
. . . args ,
) ,
d eploymentTypes: [ 'saas' ] ,
showD eploymentTypes: [ 'saas' ] ,
} ,
accessRules : {
title : ( ) = > t ( 'Access Rules' ) ,
@ -154,7 +162,7 @@ to determine who can see or edit which parts of your document.')),
dom ( 'div' , cssLink ( { href : commonUrls.helpAccessRules , target : '_blank' } , t ( 'Learn more.' ) ) ) ,
. . . args ,
) ,
d eploymentTypes: [ 'saas' ] ,
showD eploymentTypes: [ 'saas' ] ,
} ,
filterButtons : {
title : ( ) = > t ( 'Pinning Filters' ) ,
@ -164,7 +172,7 @@ to determine who can see or edit which parts of your document.')),
dom ( 'div' , cssLink ( { href : commonUrls.helpFilterButtons , target : '_blank' } , t ( 'Learn more.' ) ) ) ,
. . . args ,
) ,
d eploymentTypes: [ 'saas' ] ,
showD eploymentTypes: [ 'saas' ] ,
} ,
nestedFiltering : {
title : ( ) = > t ( 'Nested Filtering' ) ,
@ -173,7 +181,7 @@ to determine who can see or edit which parts of your document.')),
dom ( 'div' , t ( 'Only those rows will appear which match all of the filters.' ) ) ,
. . . args ,
) ,
d eploymentTypes: [ 'saas' ] ,
showD eploymentTypes: [ 'saas' ] ,
} ,
pageWidgetPicker : {
title : ( ) = > t ( 'Selecting Data' ) ,
@ -182,7 +190,7 @@ to determine who can see or edit which parts of your document.')),
dom ( 'div' , t ( 'Use the 𝚺 icon to create summary (or pivot) tables, for totals or subtotals.' ) ) ,
. . . args ,
) ,
d eploymentTypes: [ 'saas' ] ,
showD eploymentTypes: [ 'saas' ] ,
} ,
pageWidgetPickerSelectBy : {
title : ( ) = > t ( 'Linking Widgets' ) ,
@ -192,7 +200,7 @@ to determine who can see or edit which parts of your document.')),
dom ( 'div' , cssLink ( { href : commonUrls.helpLinkingWidgets , target : '_blank' } , t ( 'Learn more.' ) ) ) ,
. . . args ,
) ,
d eploymentTypes: [ 'saas' ] ,
showD eploymentTypes: [ 'saas' ] ,
} ,
editCardLayout : {
title : ( ) = > t ( 'Editing Card Layout' ) ,
@ -203,7 +211,7 @@ to determine who can see or edit which parts of your document.')),
} ) ) ,
. . . args ,
) ,
d eploymentTypes: [ 'saas' ] ,
showD eploymentTypes: [ 'saas' ] ,
} ,
addNew : {
title : ( ) = > t ( 'Add New' ) ,
@ -211,7 +219,7 @@ to determine who can see or edit which parts of your document.')),
dom ( 'div' , t ( 'Click the Add New button to create new documents or workspaces, or import data.' ) ) ,
. . . args ,
) ,
d eploymentTypes: [ 'saas' ] ,
showD eploymentTypes: [ 'saas' ] ,
} ,
rickRow : {
title : ( ) = > t ( 'Anchor Links' ) ,
@ -225,7 +233,11 @@ to determine who can see or edit which parts of your document.')),
) ,
. . . args ,
) ,
deploymentTypes : '*' ,
showDeploymentTypes : '*' ,
showContext : '*' ,
hideDontShowTips : true ,
forceShow : true ,
markAsSeen : false ,
} ,
customURL : {
title : ( ) = > t ( 'Custom Widgets' ) ,
@ -238,7 +250,7 @@ to determine who can see or edit which parts of your document.')),
dom ( 'div' , cssLink ( { href : commonUrls.helpCustomWidgets , target : '_blank' } , t ( 'Learn more.' ) ) ) ,
. . . args ,
) ,
d eploymentTypes: [ 'saas' ] ,
showD eploymentTypes: [ 'saas' ] ,
} ,
calendarConfig : {
title : ( ) = > t ( 'Calendar' ) ,
@ -250,6 +262,6 @@ data.")),
dom ( 'div' , cssLink ( { href : commonUrls.helpCalendarWidget , target : '_blank' } , t ( 'Learn more.' ) ) ) ,
. . . args ,
) ,
d eploymentTypes: [ 'saas' ] ,
showD eploymentTypes: [ 'saas' ] ,
} ,
} ;