Skip to content

feat(storybook): Internal Web Apps Analytics dashboard - #663

Merged
cixzhang merged 8 commits into
mainfrom
navi/feat/analytics-dashboard
Mar 26, 2026
Merged

cixzhang merged 8 commits into
mainfrom
navi/feat/analytics-dashboard

Conversation

@cvkxx

@cvkxx cvkxx commented Mar 17, 2026 •

Copy link
Copy Markdown
Contributor

Adds a two-tab analytics dashboard story to Storybook.

Overview tab

  • 4 stat cards (total tools/apps, WAU) with % change indicators
  • Daily Active Users line chart (Intern vs Nest, 14d)
  • Daily new tool/app creation line chart

Design Systems tab

  • 3 × 4 stat grids: Components, Insertions, Tools/Apps Using
  • Quick link buttons (XDS WWW internally, OSS Storybook, other internal library, internal dashboard)
  • XDS on Intern details: component count timeline, oncalls by org bar chart, searchable component adoption table with pagination

All charts are inline SVG (no external deps). All UI uses XDS components.

Mock data structured to match internal dashboard sources for easy future integration.

@cvkxx
cvkxx requested a review from cixzhang as a code owner March 17, 2026 20:39
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Mar 17, 2026
@cvkxx

cvkxx commented Mar 17, 2026

Copy link
Copy Markdown
Contributor Author

@cixzhang No need to review this; just experimenting.

@github-actions

github-actions Bot commented Mar 17, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

No new or modified components detected.

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@xds/core 11.1KB 17.6KB 2.7KB

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

@cixzhang cixzhang left a comment

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.

Left some feedback. Generally storybook changes are fine. Could be good practice though to get the agent to read comments and make updates accordingly.

gap: 8,
},
changePositive: {
color: '#16a34a',

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.

Could we get the LLM to try to use our css tokens more? A few hardcoded styles here could likely use vars.

label: 'Total Intern Tools',
value: '14,184',
change: '+5.4%',
source: 'internal_tool_data \u00b7 vs 30d ago',

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.

I noticed the \u00b7 is appearing as is. I think it's meant to be a Unicode character so we might need to write the proper character instead. All instances of these types of Unicode characters need to be updated.

@ernestt

ernestt commented Mar 18, 2026 •

Copy link
Copy Markdown
Contributor

No need to review this; just experimenting.

Cindy said that if we are just experimenting, we should mark the PR as draft so she know its not ready for review.
CleanShot 2026-03-18 at 12 45 57

@cvkxx
cvkxx marked this pull request as draft March 18, 2026 20:08
@cvkxx

cvkxx commented Mar 18, 2026

Copy link
Copy Markdown
Contributor Author

No need to review this; just experimenting.

Cindy said that if we are just experimenting, we should mark the PR as draft so she know its not ready for review. CleanShot 2026-03-18 at 12 45 57

Ah, got it. Marked as draft, ty!

@cvkxx cvkxx self-assigned this Mar 19, 2026
@cvkxx
cvkxx marked this pull request as ready for review March 25, 2026 18:37
@cvkxx
cvkxx requested a review from josephfarina as a code owner March 25, 2026 18:37
cvkxx and others added 7 commits March 26, 2026 22:34
Two-tab dashboard comparing Intern (www) vs Nest platform adoption
and design system metrics. Built entirely with XDS components.

Overview tab:
- 4 stat cards (tools, apps, WAU) with % change indicators
- DAU line chart (Intern vs Nest, 14d)
- New tool/app creation line chart

Design Systems tab:
- 3 stat grids: Components, Insertions, Tools/Apps Using
- Quick link buttons
- XDS on Intern details section with:
  - Component count timeline chart
  - Oncalls by org horizontal bar chart
  - Searchable component adoption table with pagination

Components used: XDSCard, XDSTabList, XDSTable, XDSPagination,
XDSTextInput, XDSButton, XDSLink, XDSDivider, XDSHeading, XDSText
Charts: inline SVG (no external dependencies)

Co-authored-by: Navi <[email protected]>
@cixzhang
cixzhang force-pushed the navi/feat/analytics-dashboard branch from a86e65b to 2aa188a Compare March 26, 2026 22:34
…meEditor

lineHeightDefaults was removed in #894 (token rename). Line height
tokens are now part of typeScaleDefaults (--text-*-leading).

Co-authored-by: Navi <[email protected]>
@cixzhang
cixzhang merged commit d11bc16 into main Mar 26, 2026
14 checks passed
@cixzhang
cixzhang deleted the navi/feat/analytics-dashboard branch March 26, 2026 22:47
cixzhang added a commit that referenced this pull request Apr 26, 2026
* feat(storybook): add Internal Web Apps Analytics dashboard story

Two-tab dashboard comparing Intern (www) vs Nest platform adoption
and design system metrics. Built entirely with XDS components.

Overview tab:
- 4 stat cards (tools, apps, WAU) with % change indicators
- DAU line chart (Intern vs Nest, 14d)
- New tool/app creation line chart

Design Systems tab:
- 3 stat grids: Components, Insertions, Tools/Apps Using
- Quick link buttons
- XDS on Intern details section with:
  - Component count timeline chart
  - Oncalls by org horizontal bar chart
  - Searchable component adoption table with pagination

Components used: XDSCard, XDSTabList, XDSTable, XDSPagination,
XDSTextInput, XDSButton, XDSLink, XDSDivider, XDSHeading, XDSText
Charts: inline SVG (no external dependencies)

Co-authored-by: Navi <[email protected]>

* feat(storybook): update analytics dashboard with XDSTopNav, tabs, adoption table, two-column charts

* feat(storybook): add info/refresh/link icons to chart cards, tighten spacing

* feat(storybook): search button, chart title updates, dropdown filter

* feat(storybook): dynamic library dropdown, color tokens, dialog improvements, table icons, layout refinements

* feat(storybook): add top bar and toolbar to Theme Editor

* fix: update ThemeEditor imports for current API (elevationDefaults→shadowDefaults, icon path)

* fix: replace removed lineHeightDefaults with typeScaleDefaults in ThemeEditor

lineHeightDefaults was removed in #894 (token rename). Line height
tokens are now part of typeScaleDefaults (--text-*-leading).

Co-authored-by: Navi <[email protected]>

---------

Co-authored-by: Navi <[email protected]>
Co-authored-by: cixzhang <[email protected]>
Co-authored-by: Navi <[email protected]>
cixzhang added a commit that referenced this pull request Jun 21, 2026
* feat(storybook): add Internal Web Apps Analytics dashboard story

Two-tab dashboard comparing Intern (www) vs Nest platform adoption
and design system metrics. Built entirely with XDS components.

Overview tab:
- 4 stat cards (tools, apps, WAU) with % change indicators
- DAU line chart (Intern vs Nest, 14d)
- New tool/app creation line chart

Design Systems tab:
- 3 stat grids: Components, Insertions, Tools/Apps Using
- Quick link buttons
- XDS on Intern details section with:
  - Component count timeline chart
  - Oncalls by org horizontal bar chart
  - Searchable component adoption table with pagination

Components used: XDSCard, XDSTabList, XDSTable, XDSPagination,
XDSTextInput, XDSButton, XDSLink, XDSDivider, XDSHeading, XDSText
Charts: inline SVG (no external dependencies)

Co-authored-by: Navi <[email protected]>

* feat(storybook): update analytics dashboard with XDSTopNav, tabs, adoption table, two-column charts

* feat(storybook): add info/refresh/link icons to chart cards, tighten spacing

* feat(storybook): search button, chart title updates, dropdown filter

* feat(storybook): dynamic library dropdown, color tokens, dialog improvements, table icons, layout refinements

* feat(storybook): add top bar and toolbar to Theme Editor

* fix: update ThemeEditor imports for current API (elevationDefaults→shadowDefaults, icon path)

* fix: replace removed lineHeightDefaults with typeScaleDefaults in ThemeEditor

lineHeightDefaults was removed in #894 (token rename). Line height
tokens are now part of typeScaleDefaults (--text-*-leading).

Co-authored-by: Navi <[email protected]>

---------

Co-authored-by: Navi <[email protected]>
Co-authored-by: cixzhang <[email protected]>
Co-authored-by: Navi <[email protected]>
cixzhang added a commit that referenced this pull request Jun 21, 2026
* feat(storybook): add Internal Web Apps Analytics dashboard story

Two-tab dashboard comparing Intern (www) vs Nest platform adoption
and design system metrics. Built entirely with XDS components.

Overview tab:
- 4 stat cards (tools, apps, WAU) with % change indicators
- DAU line chart (Intern vs Nest, 14d)
- New tool/app creation line chart

Design Systems tab:
- 3 stat grids: Components, Insertions, Tools/Apps Using
- Quick link buttons
- XDS on Intern details section with:
  - Component count timeline chart
  - Oncalls by org horizontal bar chart
  - Searchable component adoption table with pagination

Components used: XDSCard, XDSTabList, XDSTable, XDSPagination,
XDSTextInput, XDSButton, XDSLink, XDSDivider, XDSHeading, XDSText
Charts: inline SVG (no external dependencies)


* feat(storybook): update analytics dashboard with XDSTopNav, tabs, adoption table, two-column charts

* feat(storybook): add info/refresh/link icons to chart cards, tighten spacing

* feat(storybook): search button, chart title updates, dropdown filter

* feat(storybook): dynamic library dropdown, color tokens, dialog improvements, table icons, layout refinements

* feat(storybook): add top bar and toolbar to Theme Editor

* fix: update ThemeEditor imports for current API (elevationDefaults→shadowDefaults, icon path)

* fix: replace removed lineHeightDefaults with typeScaleDefaults in ThemeEditor

lineHeightDefaults was removed in #894 (token rename). Line height
tokens are now part of typeScaleDefaults (--text-*-leading).


---------

Co-authored-by: cixzhang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants