Skip to content

docs(Table): direct users to DataVis NITRO for most table use cases#238

Merged
horner merged 2 commits into
mainfrom
horner/table-nitro-redirect-notice
May 20, 2026
Merged

docs(Table): direct users to DataVis NITRO for most table use cases#238
horner merged 2 commits into
mainfrom
horner/table-nitro-redirect-notice

Conversation

@horner
Copy link
Copy Markdown
Member

@horner horner commented May 20, 2026

Developers reaching for Table often don't realize that DataVis NITRO covers the same ground with less manual wiring and exposes sorting, filtering, and other power-user features progressively -- so it fits both simple and complex cases. Without any guidance at the point of discovery, teams default to Table even when NITRO would serve them better.

This adds a short nudge in two places:

  • Storybook docs banner (Table.stories.tsx) -- a callout rendered at the top of the Table docs page linking directly to the NITRO docs and explaining when Table is still the right choice (genuinely lightweight situations where NITRO's overhead is unneeded).
  • JSDoc on Table (Table.tsx) -- the same guidance in-editor so it surfaces in IDE hover tooltips without opening Storybook.

No runtime behavior is changed.

Add a Storybook docs banner and JSDoc note on the Table component pointing
users to DataVis NITRO. NITRO is simple out of the box while exposing
power-user features progressively; Table should only be used in lightweight
situations where that overhead is genuinely unneeded.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 20, 2026 19:46
@garrity-miepub garrity-miepub self-requested a review May 20, 2026 19:47
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds documentation guidance to steer developers toward DataVis NITRO for most table/grid use cases, while clarifying when the lightweight Table component is still appropriate.

Changes:

  • Added a Storybook docs description callout on the Table docs page linking to DataVis NITRO docs.
  • Added JSDoc guidance on Table so the recommendation appears in IDE hover tooltips.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/components/Table/Table.tsx Adds JSDoc guidance recommending DataVis NITRO over Table for most cases.
src/components/Table/Table.stories.tsx Adds a Storybook docs description callout linking to the DataVis NITRO docs page.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/Table/Table.tsx Outdated
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 20, 2026

Deploying ui with  Cloudflare Pages  Cloudflare Pages

Latest commit: 210afea
Status: ✅  Deploy successful!
Preview URL: https://5e8ffbbd.ui-6d0.pages.dev
Branch Preview URL: https://horner-table-nitro-redirect.ui-6d0.pages.dev

View logs

The Storybook path ?path=/docs/... is not a valid URL or symbol
reference, so most JSDoc/TS renderers showed it as a broken link.
Replace with plain prose that preserves the full guidance.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@garrity-miepub garrity-miepub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@horner horner merged commit e8707e8 into main May 20, 2026
10 checks passed
@horner horner deleted the horner/table-nitro-redirect-notice branch May 20, 2026 20:04
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.

3 participants