Skip to content

Refactor: Use KEY_HINTS constants in wizard apps#43

Merged
FL4TLiN3 merged 1 commit intomainfrom
refactor/use-key-hints-constants
Dec 4, 2025
Merged

Refactor: Use KEY_HINTS constants in wizard apps#43
FL4TLiN3 merged 1 commit intomainfrom
refactor/use-key-hints-constants

Conversation

@FL4TLiN3
Copy link
Contributor

@FL4TLiN3 FL4TLiN3 commented Dec 4, 2025

Summary

  • Add missing KEY_HINTS constants (ESC_BACK, QUIT, CTRL_QUIT, CONFIRM)
  • Replace hardcoded key hint strings in wizard apps with KEY_HINTS references
  • Unify hint format with space separators (matching src/ convention)

Affected Files

  • packages/tui/src/constants.ts - Added new KEY_BINDINGS and KEY_HINTS
  • packages/tui/apps/status/app.tsx - Replaced 2 hardcoded hints
  • packages/tui/apps/tag/app.tsx - Replaced 2 hardcoded hints
  • packages/tui/apps/unpublish/app.tsx - Replaced 1 hardcoded hint

Closes #40


Note

Centralizes key hint UI by adding missing constants and replacing hardcoded hints in status, tag, and unpublish wizards.

  • Core:
    • Update packages/tui/src/constants.ts:
      • Add KEY_BINDINGS.QUIT and KEY_BINDINGS.CTRL_QUIT.
      • Add KEY_HINTS.ESC_BACK, KEY_HINTS.QUIT, KEY_HINTS.CTRL_QUIT, KEY_HINTS.CONFIRM.
  • TUI Wizards:
    • Replace hardcoded key hint strings with KEY_HINTS in:
      • packages/tui/apps/status/app.tsx (navigation/selection/back/quit hints).
      • packages/tui/apps/tag/app.tsx (confirm/back/ctrl-quit in input; navigation/selection/back/quit in confirm).
      • packages/tui/apps/unpublish/app.tsx (navigation/selection/back/quit in confirm).
    • Unify hint display format using space-separated KEY_HINTS.

Written by Cursor Bugbot for commit 1f419bd. 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 6:01am

@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 072956b into main Dec 4, 2025
8 of 9 checks passed
@FL4TLiN3 FL4TLiN3 deleted the refactor/use-key-hints-constants 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: Use KEY_HINTS constants in wizard apps

1 participant