Skip to content

feat(ui/ossie): info tooltip explaining the fact-dataset picker - #1589

Open
buggtb wants to merge 1 commit into
developmentfrom
feature/ossie-fact-dataset-tooltip
Open

feat(ui/ossie): info tooltip explaining the fact-dataset picker#1589
buggtb wants to merge 1 commit into
developmentfrom
feature/ossie-fact-dataset-tooltip

Conversation

@buggtb

@buggtb buggtb commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Adds a small ⓘ info tooltip next to the Fact dataset label in the Ossie schema-tree sidebar, so users understand what that selector actually does.

Why

The fact-dataset dropdown is a load-bearing choice in an Ossie model (it sets the query's anchor/grain and drives auto-join), but the only guidance was the terse hint "Metrics reference the fact dataset. Cross-dataset joins are auto-injected." — which doesn't tell a new user what to pick or why it matters.

What

  • An Info icon (lucide) beside the label, wrapped in the existing bits-ui Tooltip primitive (side="right", cursor: help).
  • Tooltip copy: "The anchor table for this query. Metrics aggregate at its grain, and fields you add from other datasets are auto-joined onto it via the model's relationships. Pick the central fact table your metrics are built on — dimensions join out from it."
  • The existing inline hint stays; this is the on-demand deeper explanation.

Notes

  • Purely presentational — no query/store logic changed.
  • npm run check: 0 errors; eslint: clean.
  • Reuses $lib/components/ui Tooltip (no new deps).

Adds a small info (ⓘ) icon beside the 'Fact dataset' label in the Ossie
schema tree, with a help tooltip explaining what the selector does: the
fact dataset is the query's anchor table — metrics aggregate at its grain
and fields from other datasets are auto-joined onto it via the model's
relationships. Reuses the existing bits-ui Tooltip primitive; the terse
inline hint below the dropdown stays as-is.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

1 participant