Skip to content

Refactor: Consolidate wizard type definitions#33

Merged
FL4TLiN3 merged 1 commit intomainfrom
refactor/consolidate-wizard-types
Dec 4, 2025
Merged

Refactor: Consolidate wizard type definitions#33
FL4TLiN3 merged 1 commit intomainfrom
refactor/consolidate-wizard-types

Conversation

@FL4TLiN3
Copy link
Contributor

@FL4TLiN3 FL4TLiN3 commented Dec 4, 2025

Summary

  • Create shared WizardExpertChoice and WizardVersionInfo types in packages/tui/src/types/wizard.ts
  • Update all wizard apps (publish, status, tag, unpublish) to import from shared location
  • Remove duplicate type definitions from 4 files

Closes #24

Test plan

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

Note

Centralizes wizard types in a shared module and updates TUI apps and perstack CLI commands to use them, removing duplicate definitions and adjusting exports.

  • Types:
    • Add shared packages/tui/src/types/wizard.ts defining WizardExpertChoice and WizardVersionInfo.
    • Re-export these types via packages/tui/src/types/index.ts and packages/tui/src/index.ts.
  • TUI Apps:
    • Update publish, status, tag, unpublish apps and renderers to import shared types and remove duplicate local definitions.
    • Align props and handlers to use WizardExpertChoice/WizardVersionInfo.
  • CLI:
    • Update packages/perstack/src/{status,tag,unpublish}.ts to use WizardVersionInfo with renderStatus/renderTag/renderUnpublish and typed version fetching.

Written by Cursor Bugbot for commit cf3333d. 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:07am

@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/consolidate-wizard-types branch from baa4645 to cf3333d Compare December 4, 2025 05:06
@FL4TLiN3 FL4TLiN3 merged commit 7e00388 into main Dec 4, 2025
8 of 9 checks passed
@FL4TLiN3 FL4TLiN3 deleted the refactor/consolidate-wizard-types 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: Consolidate wizard type definitions

1 participant