Skip to content

Refactor: Extract status color utility#32

Merged
FL4TLiN3 merged 1 commit intomainfrom
refactor/extract-status-color-utility
Dec 4, 2025
Merged

Refactor: Extract status color utility#32
FL4TLiN3 merged 1 commit intomainfrom
refactor/extract-status-color-utility

Conversation

@FL4TLiN3
Copy link
Contributor

@FL4TLiN3 FL4TLiN3 commented Dec 4, 2025

Summary

  • Extract duplicated getStatusColor function to a shared utility (packages/tui/src/utils/status-color.ts)
  • Update status, tag, and unpublish wizards to use the shared utility
  • Remove duplicate implementations from 3 wizard apps

Closes #25

Test plan

  • pnpm typecheck passes
  • pnpm test passes
  • pnpm format-and-lint passes
  • pnpm check-deps passes
  • pnpm build passes

Note

Deduplicates status color logic by extracting getStatusColor to a shared util and updating status, tag, and unpublish apps to use it.

  • Utils:
    • Add getStatusColor in packages/tui/src/utils/status-color.ts; re-export via packages/tui/src/utils/index.ts.
  • Apps (TUI wizards):
    • Replace duplicated getStatusColor implementations in packages/tui/apps/status/app.tsx, packages/tui/apps/tag/app.tsx, and packages/tui/apps/unpublish/app.tsx with imports from the shared utility.

Written by Cursor Bugbot for commit 16802df. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Dec 4, 2025

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

Project Deployment Preview Comments Updated (UTC)
perstack Ready Ready Preview Comment Dec 4, 2025 4:45am

@codecov
Copy link

codecov bot commented Dec 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@FL4TLiN3 FL4TLiN3 force-pushed the refactor/extract-status-color-utility branch from 57fcb09 to 16802df Compare December 4, 2025 04:44
@FL4TLiN3 FL4TLiN3 merged commit 82057f4 into main Dec 4, 2025
8 of 9 checks passed
@FL4TLiN3 FL4TLiN3 deleted the refactor/extract-status-color-utility branch December 8, 2025 19:11
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.

Refactor: Extract status color utility

1 participant