- Notifications
You must be signed in to change notification settings - Fork1.1k
refactor(site): migrate agent components from Stack to Tailwind (1/19)#20438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Closed
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Migrate 4 agent-related components from Emotion Stack to Tailwind CSS:- AgentLatency.tsx- AgentMetadata.tsx- AgentOutdatedTooltip.tsx- SubAgentOutdatedTooltip.tsxChanges:- Replace Stack component with div + Tailwind flex utilities- Convert spacing props to Tailwind gap classes (spacing={1} → gap-2)- Convert direction props to flex-row/flex-col- Convert alignment props to items-* and justify-* classes- Remove Stack importsThis is part 1 of 19 PRs to completely migrate away from the Stackcomponent across the codebase.Testing: TypeScript checks pass, Storybook stories remain functionalMember
aslilac commentedOct 24, 2025
(I usually don't review draft PRs, lmk if you had different expectation) |
ContributorAuthor
jaaydenh commentedOct 24, 2025
@aslilac ya, definitely wait on draft PRs, this one is part of push to test Coder Tasks. It should be fairly simple but I still need to do cleanup because LLMs still aren't perfect... =) |
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR migrates 4 agent-related components from the Emotion
Stackcomponent to Tailwind CSS flex utilities. This is part 1 of 19 planned PRs to completely remove the Stack component from the codebase.Files Migrated
src/modules/resources/AgentLatency.tsx(85 lines)src/modules/resources/AgentMetadata.tsx(237 lines)src/modules/resources/AgentOutdatedTooltip.tsx(85 lines)src/modules/resources/SubAgentOutdatedTooltip.tsx(67 lines)Changes
Stackcomponent withdiv+ Tailwind flex utilitiesspacing={0.5}→gap-1(4px)spacing={1}→gap-2(8px)spacing={2}→gap-4(16px)spacing={6}→gap-12(48px)direction="row"→flex-rowdirection="column"→flex-colalignItems="baseline"→items-baselinealignItems="center"→items-centerjustifyContent="space-between"→justify-betweenMigration Pattern
Before (Emotion Stack)
After (Tailwind)
Testing
pnpm check)AgentMetadata.stories.tsx)Stats
Progress Tracking
See
site/STACK_MIGRATION_PROGRESS.mdfor the full migration plan across all 110 files and 19 planned PRs.Next Steps
After this PR is merged, PR#2 will migrate:
AgentRowPreview.tsxAgentRow.tsxAgentDevcontainerCard.tsx