Skip to content

fix(blocks): replace raw buttons with DropdownMenuItem in DataTableAdvanced export#435

Merged
Shooksie merged 2 commits intomainfrom
fix-export-dropdown-items
Apr 13, 2026
Merged

fix(blocks): replace raw buttons with DropdownMenuItem in DataTableAdvanced export#435
Shooksie merged 2 commits intomainfrom
fix-export-dropdown-items

Conversation

@Shooksie
Copy link
Copy Markdown
Contributor

Summary

  • Replaces two raw <button> elements in the export dropdown with <DropdownMenuItem> from the design system

Changes

  • src/blocks/data/DataTableAdvanced/DataTableAdvanced.tsx: Use DropdownMenuItem for CSV and JSON export items instead of manually-styled raw buttons

Why

The export dropdown was the only place in the file using raw <button> elements with hand-replicated Radix/DS styles. All other interactive items in the file use proper DS components. This aligns with the DS convention of composing over Radix primitives.

Verification

  • pnpm build passes (ESM + CJS + DTS)
  • pnpm lint passes (0 errors)
  • pnpm test passes (283/283)

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
design-system Ready Ready Preview, Comment Apr 13, 2026 10:05pm

Request Review

- DropdownMenuItem was used at lines 381-386 but not imported
- Resolves TS2552 TypeScript errors in DataTableAdvanced.tsx
@Shooksie Shooksie merged commit 83a3599 into main Apr 13, 2026
4 checks passed
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