Skip to content

feat!: remove formatters and rebuild docs preview and demos - #72

Merged
sapatmohit merged 10 commits into
mainfrom
feat/remove-formatters
Oct 19, 2026
Merged

sapatmohit merged 10 commits into
mainfrom
feat/remove-formatters

Conversation

@sapatmohit

@sapatmohit sapatmohit commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Description

Carries two changes: #73 was merged into this branch instead of main, so its docs work lands here.

Remove LocaleNumber and RelativeTime (#66)

  • They wrap Intl formatters and render bare text, with no UI of their own.
  • Removes both components, barrel exports, registry items, tests, demos and the Formatters docs section.
  • Breaking: npm consumers importing them must switch to Intl.NumberFormat / Intl.RelativeTimeFormat directly.

Docs preview, code tab and demos (#64, reviewed in #73)

  • Preview / Code use Fumadocs tabs and its code block (title, copy, capped height with scroll).
  • Preview toolbar: shadcn accent theme picker and dark mode (shared, persisted), reset, Open in v0 / Lovable / Bolt.
  • Demos are one component and its props; sample data in src/lib/elements-config.ts.
  • Removes the custom preview shell, code panel and their CSS.

Closes #66
Closes #64

Type of change

  • Enhancement
  • Documentation / website

Checklist

  • bun run lint passes
  • bun run typecheck passes
  • bun run test passes
  • CI checks pass

Components move to shadcn semantic tokens so they inherit the consuming
app's theme. motion and lucide-react become runtime dependencies.

Closes #58
They wrap Intl formatters and render bare text, with no UI of their own.

BREAKING CHANGE: LocaleNumber and RelativeTime are no longer exported, and
their registry items are gone.

Closes #66
@sapatmohit sapatmohit added enhancement New feature or request component New or modified component labels Oct 19, 2026
@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 30 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cd28898d-5ff0-428b-88f8-56e7d0f91b11
📥 Commits

Reviewing files that changed from the base of the PR and between 1eade56 and 433db07.

📒 Files selected for processing: 26
  • ARCHITECTURE.md
  • content/docs/components/formatters/locale-number.mdx
  • content/docs/components/formatters/meta.json
  • content/docs/components/formatters/relative-time.mdx
  • content/docs/components/meta.json
  • content/docs/getting-started/shadcn-cli.mdx
  • src/app/globals.css
  • src/components/docs/code-panel.tsx
  • src/components/docs/language-switcher-demo.tsx
  • src/components/docs/language-switcher-pill-demo.tsx
  • src/components/docs/locale-number-demo.tsx
  • src/components/docs/navbar-demo.tsx
  • src/components/docs/phone-input-demo.tsx
  • src/components/docs/preview-card.tsx
  • src/components/docs/preview-components.tsx
  • src/components/docs/preview-shell.tsx
  • src/components/docs/preview-themes.ts
  • src/components/docs/relative-time-demo.tsx
  • src/components/docs/source.ts
  • src/components/docs/translation-widget-demo.tsx
  • src/lib/elements-config.ts
  • src/registry/components/index.ts
  • src/registry/components/locale-number.tsx
  • src/registry/components/relative-time.tsx
  • src/registry/registry.ts
  • test/locale-formatters.test.tsx
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Base automatically changed from feat/redesign-translation-widget to main October 19, 2026 19:06
sapatmohit and others added 2 commits October 20, 2026 00:37
@sapatmohit sapatmohit changed the title feat!: remove LocaleNumber and RelativeTime feat!: remove formatters and rebuild docs preview and demos Oct 19, 2026
@sapatmohit
sapatmohit merged commit 96941d8 into main Oct 19, 2026
2 checks passed
@sapatmohit
sapatmohit deleted the feat/remove-formatters branch October 19, 2026 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component New or modified component enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove LocaleNumber and RelativeTime until they are real components Rebuild docs component preview and demos

1 participant