Skip to content

chore(genspec-tui): refactor TUI - #82

Merged
fredbi merged 1 commit into
go-openapi:masterfrom
fredbi:genspec-tui-refactor
Aug 4, 2026
Merged

fredbi merged 1 commit into
go-openapi:masterfrom
fredbi:genspec-tui-refactor

Conversation

@fredbi

@fredbi fredbi commented Aug 4, 2026 •

Copy link
Copy Markdown
Member

The root model held every concern at once, in 1775 lines. It is now 299, with the rest split by what owns it: cross-references, keys, source, chrome, scan flow, mouse.

The help and scanner-options modals become packages, following the contract the panels already used. ScanState, RefCycle, SearchBox and SourceWatch each take a slice of the model's state. Cross-reference resolution becomes pure functions over the indexes. One test fixture replaces eighteen, and nineteen test files become nine.

Behaviour is unchanged apart from ctrl+q, which now quits from the options popup and the search input as the keymap always claimed. The built binary committed by accident is gone from the tree.

Change type

Please select: 🆕 New feature or enhancement|🔧 Bug fix'|📃 Documentation update

Short description

Fixes

Full description

Checklist

  • I have signed all my commits with my name and email (see DCO. This does not require a PGP-signed commit
  • I have rebased and squashed my work, so only one commit remains
  • I have added tests to cover my changes.
  • I have properly enriched go doc comments in code.
  • I have properly documented any breaking change.

The root model held every concern at once, in 1775 lines. It is now 299,
with the rest split by what owns it: cross-references, keys, source,
chrome, scan flow, mouse.

The help and scanner-options modals become packages, following the
contract the panels already used. ScanState, RefCycle, SearchBox and
SourceWatch each take a slice of the model's state. Cross-reference
resolution becomes pure functions over the indexes. One test fixture
replaces eighteen, and nineteen test files become nine.

Behaviour is unchanged apart from ctrl+q, which now quits from the
options popup and the search input as the keymap always claimed. The
built binary committed by accident is gone from the tree.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
@fredbi
fredbi merged commit 1c3f5eb into go-openapi:master Aug 4, 2026
22 checks passed
@fredbi
fredbi deleted the genspec-tui-refactor branch August 4, 2026 16:27
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.

1 participant

⌂ 换网址