Skip to content

Refactor: Share VersionSelector across wizards#36

Merged
FL4TLiN3 merged 2 commits intomainfrom
refactor/share-version-selector
Dec 4, 2025
Merged

Refactor: Share VersionSelector across wizards#36
FL4TLiN3 merged 2 commits intomainfrom
refactor/share-version-selector

Conversation

@FL4TLiN3
Copy link
Contributor

@FL4TLiN3 FL4TLiN3 commented Dec 4, 2025

Summary

  • Add shared wizard types (WizardExpertChoice, WizardVersionInfo) to consolidate duplicated type definitions
  • Extract getStatusColor utility function for reuse across wizard apps
  • Create shared VersionSelector component with customizable title prop

Related Issues

Closes #24
Closes #25
Closes #27

Test plan

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

Note

Extracts a reusable VersionSelector component and updates status, tag, and unpublish wizards to use it (with optional custom title).

  • Components:
    • packages/tui/src/components/version-selector.tsx: New shared VersionSelector with optional title prop and keyboard navigation; uses getStatusColor.
    • Exports: Re-export VersionSelector from packages/tui/src/components/index.ts.
  • Apps:
    • Status/Tag/Unpublish: Replace duplicated inline VersionSelector implementations with shared VersionSelector import.
    • Unpublish: Pass custom title to VersionSelector.
  • Release:
    • Changeset adds patch for @perstack/tui.

Written by Cursor Bugbot for commit 7792b9f. 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 5:28am

@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/share-version-selector branch from 5062307 to 7792b9f Compare December 4, 2025 05:27
@FL4TLiN3 FL4TLiN3 merged commit 17dfee7 into main Dec 4, 2025
9 checks passed
@github-actions github-actions bot mentioned this pull request Dec 4, 2025
@FL4TLiN3 FL4TLiN3 deleted the refactor/share-version-selector 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: Share VersionSelector across wizards Refactor: Extract status color utility Refactor: Consolidate wizard type definitions

1 participant