refactor: start refactoring Emotion CSS components#5732
Conversation
🦋 Changeset detectedLatest commit: 766ffde The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile SummaryThis proof of concept migrates the Table component from Emotion to Tailwind and expands visual-development infrastructure.
Confidence Score: 4/5This PR should not merge until responsive cards expose the newly supported server-side sorting controls. The Prime Leaderboard reward table uses sortable-only columns and a responsive breakpoint, but its only mobile sorting control filters those columns out and therefore disappears. Files Needing Attention: apps/evm/src/components/Table/types.ts, apps/evm/src/components/Table/TableCards/index.tsx
|
| Filename | Overview |
|---|---|
| apps/evm/src/components/Table/types.ts | Adds the server-side sortable column contract, but responsive cards do not honor it. |
| apps/evm/src/components/Table/TableCards/index.tsx | Migrates card styling to Tailwind while retaining a client-sort-only option filter that drops server-sortable columns. |
| apps/evm/src/components/Table/Head/index.tsx | Migrates header and sort-indicator styling to Tailwind and correctly recognizes both client- and server-sortable columns. |
| apps/evm/src/components/Table/index.tsx | Replaces the main Table Emotion styles with Tailwind and wires controlled ordering into desktop and card presentations. |
| apps/evm/.storybook/preview.tsx | Adds query, wallet, and analytics providers to the global Storybook decorator. |
| apps/evm/playwright.config.ts | Adds desktop and mobile Playwright projects with optional app or Storybook server startup. |
Reviews (1): Last reviewed commit: "refactor: start refactoring Emotion CSS ..." | Re-trigger Greptile
Coverage Report for ./apps/evm
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changes
This PR serves as a proof of concept to refactor components using Emotion CSS and Style Components using LLMs so that they use Tailwind CSS instead. A Playwright config is added for LLMs to render the components and ensure the UI is exactly the same after each refactor. Other components will be refactored in subsequent PRs.
Tablecomponent to use Tailwind CSS classes instead of Emotion CSS