Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Conversation

@jaaydenh
Copy link
Contributor

Summary

This PR migrates 4 agent-related components from the EmotionStack component 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

  • ReplaceStack component withdiv + Tailwind flex utilities
  • Convert spacing props to Tailwind gap classes:
    • spacing={0.5}gap-1 (4px)
    • spacing={1}gap-2 (8px)
    • spacing={2}gap-4 (16px)
    • spacing={6}gap-12 (48px)
  • Convert direction props:
    • direction="row"flex-row
    • direction="column"flex-col
  • Convert alignment props:
    • alignItems="baseline"items-baseline
    • alignItems="center"items-center
    • justifyContent="space-between"justify-between
  • Remove Stack imports

Migration Pattern

Before (Emotion Stack)

import{Stack}from"components/Stack/Stack";<Stackdirection="row"spacing={2}alignItems="center"><Child1/><Child2/></Stack>

After (Tailwind)

<divclassName="flex flex-row items-center gap-4"><Child1/><Child2/></div>

Testing

  • ✅ TypeScript checks pass (pnpm check)
  • ✅ Biome linting passes
  • ✅ Storybook stories remain functional (AgentMetadata.stories.tsx)
  • ✅ All existing functionality preserved

Stats

  • Files changed: 5 (4 component files + 1 tracking doc)
  • Lines changed: 183 lines (162 insertions, 21 deletions)
  • Stack imports removed: 4
  • PR size: ~474 lines of component code (well under 1000 line limit)

Progress Tracking

Seesite/STACK_MIGRATION_PROGRESS.md for the full migration plan across all 110 files and 19 planned PRs.

Next Steps

After this PR is merged, PR#2 will migrate:

  • AgentRowPreview.tsx
  • AgentRow.tsx
  • AgentDevcontainerCard.tsx

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 functional
@aslilac
Copy link
Member

(I usually don't review draft PRs, lmk if you had different expectation)

@jaaydenh
Copy link
ContributorAuthor

@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... =)

@github-actionsgithub-actionsbot added the staleThis issue is like stale bread. labelNov 1, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@aslilacaslilacAwaiting requested review from aslilac

@buenos-nachosbuenos-nachosAwaiting requested review from buenos-nachos

Assignees

@jaaydenhjaaydenh

Labels

staleThis issue is like stale bread.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@jaaydenh@aslilac

[8]ページ先頭

©2009-2025 Movatter.jp