Repository navigation
refactor: every settings page speaks refresh, entered and close - #2184
Merged
Merged
Conversation
A page's close commits its unsaved input and stops its running work, and the panel runs one close sequence on Escape and on dispose, so dispose now ends an active mouth preview. Together's and Persona's reflect and Permissions' loadMonitorsIfEnabled become refresh; Connection's and Voice's commit folds into close.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The third #2142 follow-up: every settings page speaks one lifecycle.
previewingflag releases once) and runs connection's close while its child handles exist. A second close after Escape does nothing visible: drafts are deleted before they are written, aborts and stops are idempotent.personaPage, so the rule's call pattern covers every controller.page-lifecycle: ownerpage-view.tsx:PageView(marker); patterns: a legacy member (commit/reflect/loadMonitorsIfEnabled) declared in a*-page.ts, and a panel call of one on a…Pagecontroller; child calls such asstt.current?.commit()pass.Related issues
Part of #2142
Related decisions / docs
Owner decision on #2142 (latest comment): refresh / entered / close with fixed meanings; Together's reflect becomes refresh; Connection's focus methods stay.
Runtime evidence (required for UI / DOM / runtime behavior)
N/A beyond the panel's unit suites — the visible change is that closing the settings window while a mouth preview runs now ends it; pinned by the new test.
pnpm vitest run --project unit src/ui/quick-controls src/app/settings-window: 80 files, 1037 tests pass; the open-order tests are unchanged except the renamed labels.Merge danger
Tests
qc-gain-row.test.tsx; red-run: expected called once, got 0 times).qc-voice-server.test.tsx"%s lands a typed TTS field and a typed TTS key" over the panel's teardown and Escape: the Escape row passed before the change (onClose already committed), so it guards folding commit into close. Mutation proof (testing.md rule 8): removinghandle.current?.commit();fromvoice-page.tsclose()fails both rows withexpected '' to be 'http://127.0.0.1:8088'.perms-page.test.tsx,together-page.test.tsx,connection-page.detail.test.ts:115("close() lands dirty key and endpoint inputs…"), and three titles that said "open hook".Verification
pnpm buildpasses (includes tsc typecheck)pnpm testpassespnpm lintpasses (biome format + lint)cargo test/cargo clippypass (Rust changes) — nonepnpm gatesonce ate9afd786withCONCEPT_RULES_CHANGE_OK=1(this PR adds a rule): every gate exit 0. Two independent reviews (spec: double close, order, regexes; standards): approve; their fixes are in85aec36aande9afd786.Checklist (YUI principles)
docs/reference/client-context.mdalongside the code (none)docs/agent-guide/architecture/map.jscarries every module, part, and exchange this PR adds, removes, or changes (none changed)