Skip to content

Conversation

@twaugh
Copy link
Owner

@twaugh twaugh commented Nov 22, 2025

No description provided.

Standardize focus border behavior across all three screens to use
Textual's default tab cycling and theme accent color.

Changes:
- Remove custom tab binding in Phase 3, use Textual's default tab cycling
- Replace hardcoded blue focus borders with theme $accent color
- Ensure all focusable widgets follow consistent pattern:
  - Unfocused: solid white border
  - Focused: heavy accent border

Phase 1 (Block Selection):
- BlockDetailPanel: Use theme accent color instead of blue

Phase 2 (Content Editing):
- Original/Suggested panels: Change from accent to white (unfocused state)
- ContentEditor: Use theme accent color instead of blue on focus

Phase 3 (Integration Review):
- Add focus styling to journal preview (top panel)
- Add focus styling to decision list
- TargetPagePreview already uses accent color

Tab cycling now works consistently across all three focusable widgets
on Phase 3 (journal preview, decision list, target preview) using
Textual's built-in behavior with shift+tab support.

Updated snapshots (16 files):
- Phase 2 snapshots (6 files): reflect new border colors
- TargetPagePreview snapshots (10 files): blue → accent color change

Assisted-by: Claude Code
When Phase 3 screen mounts, automatically focus the decision list
(integration points) so users can immediately navigate decisions
without needing to press Tab first.

This provides a more intuitive UX by placing focus on the primary
interactive element of the screen.

Assisted-by: Claude Code
Fix inconsistent border behavior in StatusInfoPanel where it started
with a thin orange border, then changed to thick orange when focused,
and thin white when unfocused.

Now follows the standard pattern:
- Unfocused: solid white border
- Focused: heavy accent border (via :focus-within CSS)

Changes:
- Update DEFAULT_CSS: border from 'solid $accent' to 'solid white'
- Add :focus-within CSS rule for accent border on focus
- Remove programmatic on_focus/on_blur handlers (CSS handles it)

Updated 5 Phase 1 snapshots to reflect new border colors.

Assisted-by: Claude Code
@twaugh twaugh changed the title Refactor/standardize focus borders Standardize focus borders Nov 22, 2025
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.10%. Comparing base (d5d1c93) to head (d0c0a85).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #31      +/-   ##
==========================================
+ Coverage   84.86%   85.10%   +0.24%     
==========================================
  Files          48       48              
  Lines        5087     5082       -5     
==========================================
+ Hits         4317     4325       +8     
+ Misses        770      757      -13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@twaugh twaugh merged commit c0dff0a into main Nov 22, 2025
1 check passed
@twaugh twaugh deleted the refactor/standardize-focus-borders branch November 22, 2025 12:04
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.

3 participants