Repository navigation
feat(roadmap-planner): chart help icons on Team Analytics Dashboard #187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
3734d9a
dec8ece
36b8e11
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,7 +34,28 @@ import './TeamAnalytics.css'; | |
| // properties resolve at paint time against the active [data-theme] / | ||
| // [data-mode], so dark mode and the Atlas theme need no per-mode | ||
| // branching here. | ||
| const PILLAR_PALETTE = ['var(--accent)', 'var(--ocean)', 'var(--amber)', 'var(--forest)', 'var(--crimson)']; | ||
| // Categorical palette for pillar bands. The semantic theme tokens | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Warning ( |
||
| // (--accent / --ocean / …) don't work here: in the default light theme | ||
| // --accent and --ocean both resolve to blue (first two slots collide), | ||
| // and the project routinely has more pillars than the 5-token semantic | ||
| // palette, so modulo wrapping causes explicit duplicates. These values | ||
| // are tuned for perceptual distance (Tableau-10 inspired) and survive | ||
| // the 0.85 opacity used by the stacked-area paint. Pillar colors carry | ||
| // no theme semantics — they're purely categorical codes — so fixed | ||
| // values are appropriate. Keep in sync with TeamAnalyticsDashboard.jsx. | ||
| const PILLAR_PALETTE = [ | ||
| '#4E79A7', // blue | ||
| '#F28E2B', // orange | ||
| '#59A14F', // green | ||
| '#E15759', // red | ||
| '#8E44AD', // purple | ||
| '#EDC948', // yellow | ||
| '#76B7B2', // teal | ||
| '#E377C2', // magenta | ||
| '#9C755F', // brown | ||
| '#17BECF', // cyan | ||
| '#7F7F7F', // gray | ||
| ]; | ||
|
|
||
| const formatHours = (h) => (h == null ? '—' : `${(+h).toFixed(1)}h`); | ||
| const formatPct = (p) => (p == null || isNaN(p) ? '—' : `${Math.round(p)}%`); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Warning (
style/compatibility): The.ta-panel:has(.ta-help__pop)CSS selector uses the:has()pseudo-class which has limited support on older browsers (not supported in IE11, limited support in older Safari versions before 15.4). Consider adding a fallback or ensuring the target browser versions support this selector.