Skip to content

Refactor: Share ErrorStep component across wizards#31

Merged
FL4TLiN3 merged 1 commit intomainfrom
refactor/share-error-step-across-wizards
Dec 4, 2025
Merged

Refactor: Share ErrorStep component across wizards#31
FL4TLiN3 merged 1 commit intomainfrom
refactor/share-error-step-across-wizards

Conversation

@FL4TLiN3
Copy link
Contributor

@FL4TLiN3 FL4TLiN3 commented Dec 4, 2025

Summary

  • Add shared ErrorStep component with useInput handler for keyboard navigation
  • Replace inline error rendering in status, tag, and unpublish wizards with the shared component
  • Fix bug where "Press any key to go back" message was displayed but keyboard input was not handled

Closes #23

Test plan

  • Verify error screen in status wizard responds to keyboard input
  • Verify error screen in tag wizard responds to keyboard input
  • Verify error screen in unpublish wizard responds to keyboard input
  • Confirm pressing any key navigates back to expert selection

Note

Introduce a shared ErrorStep component and replace inline error UIs in status, tag, and unpublish apps.

  • Components:
    • Add packages/tui/src/components/error-step.tsx exporting ErrorStep with useInput to trigger onBack on any key.
    • Export ErrorStep and ErrorStepProps from packages/tui/src/components/index.ts.
  • Apps:
    • Replace inline error rendering with ErrorStep in:
      • packages/tui/apps/status/app.tsx
      • packages/tui/apps/tag/app.tsx
      • packages/tui/apps/unpublish/app.tsx

Written by Cursor Bugbot for commit 6a5f7c3. 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:00am

@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 merged commit 9462510 into main Dec 4, 2025
8 of 9 checks passed
@FL4TLiN3 FL4TLiN3 deleted the refactor/share-error-step-across-wizards 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 ErrorStep across wizards

1 participant