Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/css-variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1165,4 +1165,24 @@ export interface CustomCssVariables {
* header underline, left panel border, thinking step connector and dots.
*/
'--ts-var-spotterviz-border-color'?: string;

/**
* Background color of the reference-mode toggle button in the SpotterViz
* chat input when it is unselected and the user hovers over it.
*/
'--ts-var-liveboard-reference-icon-hover-background'?: string;

/**
* Icon (glyph) color for the reference-mode selected state — applies to
* both the toggle button when active and the icon badge on each
* referenced-entity chip in the chat input.
*/
'--ts-var-liveboard-reference-selected-icon-color'?: string;

/**
* Background color for the reference-mode selected state — applies to
* both the toggle button when active and the icon badge on each
* referenced-entity chip in the chat input.
*/
'--ts-var-liveboard-reference-selected-background'?: string;
Comment on lines +1169 to +1187
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To maintain consistency with other SpotterViz CSS variables (which are all prefixed with --ts-var-spotterviz-) and the action name SpotterVizReferenceMode, these new variables should be prefixed with --ts-var-spotterviz-reference- instead of --ts-var-liveboard-reference-.

Suggested change
/**
* Background color of the reference-mode toggle button in the SpotterViz
* chat input when it is unselected and the user hovers over it.
*/
'--ts-var-liveboard-reference-icon-hover-background'?: string;
/**
* Icon (glyph) color for the reference-mode selected state applies to
* both the toggle button when active and the icon badge on each
* referenced-entity chip in the chat input.
*/
'--ts-var-liveboard-reference-selected-icon-color'?: string;
/**
* Background color for the reference-mode selected state applies to
* both the toggle button when active and the icon badge on each
* referenced-entity chip in the chat input.
*/
'--ts-var-liveboard-reference-selected-background'?: string;
/**
* Background color of the reference-mode toggle button in the SpotterViz
* chat input when it is unselected and the user hovers over it.
*/
'--ts-var-spotterviz-reference-icon-hover-background'?: string;
/**
* Icon (glyph) color for the reference-mode selected state applies to
* both the toggle button when active and the icon badge on each
* referenced-entity chip in the chat input.
*/
'--ts-var-spotterviz-reference-selected-icon-color'?: string;
/**
* Background color for the reference-mode selected state applies to
* both the toggle button when active and the icon badge on each
* referenced-entity chip in the chat input.
*/
'--ts-var-spotterviz-reference-selected-background'?: string;
References
  1. When adding new code, prioritize maintaining local consistency with existing patterns in the file over introducing a new, more concise pattern if it breaks from the established convention.

}
14 changes: 14 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7879,6 +7879,20 @@ export enum Action {
* ```
*/
SpotterViz = 'spotterViz',
/**
* The reference-mode toggle button inside the SpotterViz chat input.
* When users enable reference mode, clicking tiles, filters, or
* parameters adds them as chat context. Hide this action to remove
* the reference-mode capability entirely.
* Visible by default.
* @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.8.0.cl
* @example
* ```js
* hiddenActions: [Action.SpotterVizReferenceMode]
* disabledActions: [Action.SpotterVizReferenceMode]
* ```
*/
SpotterVizReferenceMode = 'spotterVizReferenceMode',
/**
* Clears browser cache and fetches new data for liveboard ChartViz Containers.
* Requires `enableLiveboardDataCache` to be enabled.
Expand Down
Loading
Loading