Skip to content

[cleanup]Centralize form accessibility behavior#1391

Open
stale2000 wants to merge 1 commit into
entireio:mainfrom
stale2000:codex/unify-uiform-accessibility
Open

[cleanup]Centralize form accessibility behavior#1391
stale2000 wants to merge 1 commit into
entireio:mainfrom
stale2000:codex/unify-uiform-accessibility

Conversation

@stale2000

@stale2000 stale2000 commented Jun 9, 2026

Copy link
Copy Markdown

Entire Logs: https://entire.io/gh/stale2000/cli/session/019ea9df-d0d9-7c41-a8dc-91ed5d127d35

Summary

  • Route the remaining manual huh form construction through uiform.New
  • Remove the now-unused strategy-local accessibility helper
  • Add a source-level guard test so production huh.NewForm usage stays centralized in uiform

Verification

  • go test ./cmd/entire/cli/uiform ./cmd/entire/cli/versioncheck ./cmd/entire/cli/strategy
  • mise run lint
  • mise run check reached the full test phase after passing fmt/lint, but failed on existing unrelated TestRunAuthStatus_RendersSessionsTable date expectation: expected 2026-01-01, rendered 2025-12-31.

Checkpoint Metadata

Commit includes Entire-Checkpoint: 9234c35440b2.

@stale2000 stale2000 requested a review from a team as a code owner June 9, 2026 01:10
@stale2000 stale2000 force-pushed the codex/unify-uiform-accessibility branch from 4f6d19a to a2492d6 Compare June 9, 2026 01:59
@stale2000 stale2000 closed this Jun 9, 2026
@stale2000 stale2000 reopened this Jun 9, 2026
@stale2000 stale2000 changed the title Centralize form accessibility behavior [cleanup]Centralize form accessibility behavior Jun 9, 2026
@stale2000 stale2000 force-pushed the codex/unify-uiform-accessibility branch from e4bab32 to a2492d6 Compare June 9, 2026 02:49
The CLI already has a uiform helper for applying the standard huh theme and ACCESSIBLE handling. Routing the remaining manual form construction through that helper keeps accessibility behavior from drifting across prompts.

Constraint: Accessibility behavior is an explicit CLI contract and should have one production form-construction path.

Constraint: Keep the strategy package's isAccessibleMode helper available for prompts that cannot use uiform.New directly.

Confidence: high

Scope-risk: narrow

Directive: New production huh forms should go through uiform.New rather than calling huh.NewForm directly.

Tested: go test ./cmd/entire/cli/uiform ./cmd/entire/cli/versioncheck ./cmd/entire/cli/strategy; mise run lint

Not-tested: Full mise run check still has the known unrelated TestRunAuthStatus_RendersSessionsTable date expectation failure
Entire-Checkpoint: b67692b53719
@stale2000 stale2000 force-pushed the codex/unify-uiform-accessibility branch from a2492d6 to 0cc8b18 Compare June 9, 2026 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant