sda.dashboard.config#

Dashboard Configuration.


Central configuration for the SDA Dashboard including: - Column name standardization - Default settings - UI styling constants - Spark brand colors and design system

Attributes#

STANDARD_COLUMN_NAMES

COLUMN NAME CONSISTENCY FIX:

BLACKLIST_COLUMNS

This list defines columns that should be excluded from dashboard processing.

DEFAULT_TEST

SPARK_COLORS

GRAPH_CONFIG

FILTER_COLUMNS

This list defines which columns will be available as filter options in the

Functions#

get_resolved_theme()

Get the resolved theme mode (light/dark/system), handling system theme detection.

Module Contents#

sda.dashboard.config.get_resolved_theme()#

Get the resolved theme mode (light/dark/system), handling system theme detection.

Returns:

Either “light”, “dark”, or “system”. For “system”, the client resolves the actual browser preference.

Return type:

str

sda.dashboard.config.STANDARD_COLUMN_NAMES: dict[str, list[str]]#

COLUMN NAME CONSISTENCY FIX: This dictionary has been temporarily disabled to fix the E2E test failures. The Column Name Consistency Requirement states that column names displayed in UI dropdowns MUST exactly match the column names in processed data.

Previously, this mapping was transforming: - “Générateur” -> “générateur” (case change) - “Torche” -> “torche” (case change) - “Tension NRP (kV)” -> “tension (kV)” (case + name change) - “Débit gaz in (slm)” -> “débit (SL/m)” (case + format change)

This caused the UI to display original names but the data pipeline to use transformed names, resulting in visualization callbacks receiving empty data.

By disabling these transformations, we preserve the original column names throughout the entire data pipeline, ensuring UI and data consistency.

TODO: Future enhancement - implement proper column name standardization that updates both the data processing AND the UI components to use the same standardized names.

sda.dashboard.config.BLACKLIST_COLUMNS: list[str] = []#

This list defines columns that should be excluded from dashboard processing. Any column matching these names (case-sensitive) will be removed from the data before visualization and filtering. This allows for a more flexible approach where any column not blacklisted can be used for filtering and plotting.

sda.dashboard.config.DEFAULT_TEST = 'T183'#
sda.dashboard.config.SPARK_COLORS: Dict[str, Any]#
sda.dashboard.config.GRAPH_CONFIG#
sda.dashboard.config.FILTER_COLUMNS = ['Générateur', 'Torche', 'Test', 'Fréquence (kHz)', 'Tension NRP (kV)', 'Débit gaz in (slm)',...#

This list defines which columns will be available as filter options in the dashboard’s UI (e.g., in the Scatter and Line tabs).