Skip to content

feat(config): icon-only source column with explanatory tooltip#46

Open
Terracosmos wants to merge 1 commit into
masterfrom
norman/config-source-tooltip
Open

feat(config): icon-only source column with explanatory tooltip#46
Terracosmos wants to merge 1 commit into
masterfrom
norman/config-source-tooltip

Conversation

@Terracosmos

Copy link
Copy Markdown
Collaborator

Closes #45.

The Administration > Configuration table's "source" column now shows the source ICON only, instead of the icon + text label. Hovering the icon opens a v-tooltip (project convention: all tooltips are v-tooltip, never the native title attribute) with:

  • the human-readable source name (bold);
  • a short business explanation of what that source means.

sourceExplanation() maps the known source types (systemEnvironment, systemProperties, applicationConfig, database, classpath) to i18n keys under system.config.source.* (EN + FR, plugin-local, merged at install()). Unknown source types fall back to the raw source string. CSV export is unchanged (still exports the readable label via exportValue: sourceLabel).

Alignment note: the issue mentions left-aligning the column. With an icon-only cell the column was kept CENTER-aligned, which reads better for a single glyph; happy to switch to left if preferred.

Tests: vitest 32/32 (4 new in system-configuration-source.test.js) + npm run build OK. Verified at runtime on the real configuration set (icon only, bold name + explanation tooltip, unknown-source fallback).

Replace the source pill text with an icon-only cell; the readable name and
a business explanation now live in a v-tooltip (project convention: tooltips
are v-tooltip, never native title). Unknown source types fall back to the
raw source string. Adds FR/EN i18n under system.config.source and a test
covering icon-only rendering, the tooltip, and the fallback.

Refs #45
@Terracosmos Terracosmos requested a review from fdaugan June 29, 2026 13:18
@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Table align of configuration source

1 participant