GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — web: review rules settings panel with recommended preset button (PK10 T6) by scuttletoby · Pull Request #318 · scuttletoby/t3code Conversation
|
| Case | What happens |
|---|---|
| Settings file without the key | Reads as off. The panel shows "Off". Turn off is disabled because there is nothing to save. A server too old to send the key also reads as off. |
| Hand-set value with extra fields | The button replaces the whole value (the replace patch rule). Before saving, a confirm lists the fields that will be removed ("Saving removes the fields set by hand: small findings, repository config."). Cancel saves nothing. |
| Clicking twice | Both buttons are disabled while a save is in flight. Once saved, the stored value equals the button's value, so that button stays disabled ("same" plan) and nothing is written again. |
| Save fails | The panel shows "Not saved. The review rules stay as they were." and the settings toast appears too. If another environment saved, it says instead "Not saved on X. Saved on Y." The panel keeps showing the server's old value, and the buttons work again. |
| Bad stored value (read as off, text kept) | A warning shows the stored text (cut to 600 characters). The summary says "Off: the stored value cannot be read". Either button, and resetting a project override, asks first and says the text will be lost. |
| Project override from an older client | The server keeps an override the client does not send (T1's kept-when-left-out rule). The panel shows it as "this project overrides" with its effective values, or as the warning if it cannot be read. A save from this panel replaces it whole. |
| Stops half-way across several environments | Each environment saves on its own. The ones that fail show the toast and the row shows the mixed state. Clicking again is safe because every write is the same whole value. |
General. The panel, the planner line and the docs contain no project facts: no repository names, paths, machines or runner choices beyond the contract's own recommended preset.
SettingsPanels.tsx: one import and one mount line next to the WaitsAndSlotsSettings mount.scopedSettings.ts: || key === "reviewRules" on the fork's existing waitChecks replace-whole branch.fork-seam-check.cjs origin/main HEAD) is green. Neither upstream file is in the seam list, and both edits stay inside existing fork lines or are single lines.reviewRulesSettings.logic.test.ts: 13 tests. They cover a file with no key, bad and long stored values, preset and hand-set rows, off with hand fields, project descriptions, the button values and the whole replace via applyServerSettingsPatch, a second click, a project's first override, the confirms, and clearing an override.ReviewRulesSettings.browser.test.tsx: 5 tests (chromium). They cover one click with the second blocked until saved, a failed save that keeps the old value, the effective values plus a confirm before dropping hand fields, the unreadable warning plus Cancel, and a project override.scopedSettings.test.ts: 2 new tests. A project-scope reviewRules save is stored whole, and an unreadable environment value does not leak into the override.forkDocs.test.ts: still green.Red checks (I removed each guard, saw the tests fail, then restored it):
scopedSettings tests fail: the override was merged with the environment's fields.Rebased onto main. Each finding:
useScopedSettings's onFailed now gets the labels where the save failed and where it saved (nothing when nothing was sent). The panel names them; it says "stay as they were" only when no environment saved.{"preset":"recommended"}; and the button stays enabled when the environment already has exactly the preset.accessibility lens, which sorts before approach by name.Tests (touched files only): unit 53/53 (scopedSettings, reviewRulesSettings.logic), browser 7/7. Typecheck (apps/web), format and lint clean; seam check green.
Red checks (break the guard, run, restore):
| Guard | Result |
|---|---|
| Row reset uses upstream's clear | 2 scopedSettings tests red (reviewRules and MCP profile with a second override) |
| Bulk reset uses upstream's clear | 1 scopedSettings test red |
| Partial failure message always "stay as they were" | 1 logic + 1 browser test red |
| Project uses the environment's value as the one it replaces | 1 browser test red |
| Approach-first sort removed | 1 logic test red |
🤖 Generated with Claude Code
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
lens: correctness verdict: NOT SAFE (head 24d6ead5) Scope: correctness, tests and state, for the panel, the logic helpers and the Major1. "Use the environment's review rules" (the project reset) does nothing when the project has any other override. See
Minor2. A partial failure tells the person nothing was saved. See 3. Untested guard: "in a project, only its own override is replaced". See 4. Nit: "approach first" sorting is untested. See Checked and correct
Mutation checks (break, run, restore)
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
… T6)
Settings > Threads gets a Review rules section: on/off, the effective
values a lens would run with (each marked preset or set by hand), a
"Use recommended review rules" button ({"preset":"recommended"}) and a
"Turn off" button ({"preset":"off"}). A project shows its override or
that it uses the environment's. A button asks first before it drops
hand-set fields or an unreadable value; a second click saves nothing.
The project-scope planner merged a reviewRules save with the
environment's fields; it now replaces the value whole, as waitChecks.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ve message, tests) - Project reset of a kept fork key (reviewRules, mcpProfile, playtest, handoff) now sends its clear value through the fork's clearProjectSettingsOverridesWithForkKeys, in both web clear planners. Before, a project with any other override kept the stored value, because the server keeps a fork project key an entry leaves out. - A save that fails on some environments and saves on others names them instead of saying nothing changed (onFailed now gets where it failed and saved). - Tests: reset with a second override (planner and bulk reset, run through the server's keep step), project without an override replaces nothing of the environment's, approach lens first. Co-Authored-By: Claude Opus 5.5 <[email protected]>
24d6ead to
9a988e1
Compare
|
lens: correctness r2 verdict: SAFE (head 9a988e1) Scope: round 2 for correctness, tests and state. I checked the fix for the round-1 major, the partial-save message, the thin change to Round-1 major: closed
Partial-save message: true in every case
An offline environment is skipped by The change to KnipCI Lint job for this head (run 44160464443, job "Lint", headSha 9a988e1): step "Check unused code" ran State question
Mutation checks (break, run, restore)
Minor (not must-fix; for the follow-up issue)
No blocker or major. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…ecked (#385) (#426) * fork seam check: refuse a pull request's own malformed list (format only) (#385) A pull request is judged by main's list, so its own list was never parsed before merge. A malformed one (bad JSON, the old plain-number "lost", an unknown kind, or a deleted list) then made every later pull request and fork-follow run exit 3, including the pull request that fixes it. The PR run now parses the head's list when the change edits it (format only, never its rules) and refuses a malformed one with exit 1. parseConfig also refuses unknown top-level keys and unknown seam-entry keys ("//..." keys stay comments), so a misspelt block cannot guard nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork: give upstream lines back in pending files (#385) From upstream (as fork-follow runs the seam check) these files lost upstream lines that the fork did not need to touch: - OrchestratorMcpService.ts: delegate_task's generator stays hugged by Effect.fn (Effect.scoped as its pipeable on the closing line), so upstream's 141 re-indented lines come back unchanged; the paced target is named pacedTarget so upstream's `target` lines stay. 147 lost lines -> 4. - EffectWorker.ts: the admitted claim is built first, so upstream's pipe chain keeps its indentation. 8 -> 2. - Imports the fork extended now add a line of their own beside upstream's (ChatMarkdown.tsx, cliRelease test; a split that would grow a file on a pull request is left for later), and runtimeLayer.test.ts keeps upstream's import order. No behaviour change. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seams: the list fits main from upstream (lost block, ceilings, 3 files) (#385) `fork-seam-check.cjs --from-upstream <base tag> HEAD` (fork-follow's run) refused main. Now it exits 0: - cli/connect.ts and cloud/CloudLink.ts (#313, also before #277) are seam files with their 5 fork lines each; cloud/linkEnvironment.test.ts (#313) is pending (34). - Pending ceilings set to the counts from upstream: raised where #318 and #332 grew a file before #277 set the counts (SettingsPanels, scopedSettings and its test, useScopedSettings, shared/package.json), lowered where the previous commit gave lines back. - A "lost" block in the {"lines", "gone"} form: 34 files, 20 lines that may move unseen (166 in the block #380 proposed). Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
… T6) (#318) * web: review rules settings panel with recommended preset button (PK10 T6) Settings > Threads gets a Review rules section: on/off, the effective values a lens would run with (each marked preset or set by hand), a "Use recommended review rules" button ({"preset":"recommended"}) and a "Turn off" button ({"preset":"off"}). A project shows its override or that it uses the environment's. A button asks first before it drops hand-set fields or an unreadable value; a second click saves nothing. The project-scope planner merged a reviewRules save with the environment's fields; it now replaces the value whole, as waitChecks. Co-Authored-By: Claude Opus 5.5 <[email protected]> * web: review rules panel fixes (reset with other overrides, partial save message, tests) - Project reset of a kept fork key (reviewRules, mcpProfile, playtest, handoff) now sends its clear value through the fork's clearProjectSettingsOverridesWithForkKeys, in both web clear planners. Before, a project with any other override kept the stored value, because the server keeps a fork project key an entry leaves out. - A save that fails on some environments and saves on others names them instead of saying nothing changed (onFailed now gets where it failed and saved). - Tests: reset with a second override (planner and bulk reset, run through the server's keep step), project without an override replaces nothing of the environment's, approach lens first. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…ecked (#385) (#426) * fork seam check: refuse a pull request's own malformed list (format only) (#385) A pull request is judged by main's list, so its own list was never parsed before merge. A malformed one (bad JSON, the old plain-number "lost", an unknown kind, or a deleted list) then made every later pull request and fork-follow run exit 3, including the pull request that fixes it. The PR run now parses the head's list when the change edits it (format only, never its rules) and refuses a malformed one with exit 1. parseConfig also refuses unknown top-level keys and unknown seam-entry keys ("//..." keys stay comments), so a misspelt block cannot guard nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork: give upstream lines back in pending files (#385) From upstream (as fork-follow runs the seam check) these files lost upstream lines that the fork did not need to touch: - OrchestratorMcpService.ts: delegate_task's generator stays hugged by Effect.fn (Effect.scoped as its pipeable on the closing line), so upstream's 141 re-indented lines come back unchanged; the paced target is named pacedTarget so upstream's `target` lines stay. 147 lost lines -> 4. - EffectWorker.ts: the admitted claim is built first, so upstream's pipe chain keeps its indentation. 8 -> 2. - Imports the fork extended now add a line of their own beside upstream's (cliRelease test; ChatMarkdown.tsx has them from #17 on since the fold for #475; a split that would grow a file on a pull request is left for later), and runtimeLayer.test.ts keeps upstream's import order. No behaviour change. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seams: the list fits main from upstream (lost block, ceilings, 3 files) (#385) `fork-seam-check.cjs --from-upstream <base tag> HEAD` (fork-follow's run) refused main. Now it exits 0: - cli/connect.ts and cloud/CloudLink.ts (#313, also before #277) are seam files with their 5 fork lines each; cloud/linkEnvironment.test.ts (#313) is pending (34). - Pending ceilings set to the counts from upstream: raised where #318 and #332 grew a file before #277 set the counts (SettingsPanels, scopedSettings and its test, useScopedSettings, shared/package.json), lowered where the previous commit gave lines back. - A "lost" block in the {"lines", "gone"} form: 34 files, 20 lines that may move unseen (166 in the block #380 proposed). Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Claude Fable 5.2 <[email protected]>
… T6) (#318) * web: review rules settings panel with recommended preset button (PK10 T6) Settings > Threads gets a Review rules section: on/off, the effective values a lens would run with (each marked preset or set by hand), a "Use recommended review rules" button ({"preset":"recommended"}) and a "Turn off" button ({"preset":"off"}). A project shows its override or that it uses the environment's. A button asks first before it drops hand-set fields or an unreadable value; a second click saves nothing. The project-scope planner merged a reviewRules save with the environment's fields; it now replaces the value whole, as waitChecks. Co-Authored-By: Claude Opus 5.5 <[email protected]> * web: review rules panel fixes (reset with other overrides, partial save message, tests) - Project reset of a kept fork key (reviewRules, mcpProfile, playtest, handoff) now sends its clear value through the fork's clearProjectSettingsOverridesWithForkKeys, in both web clear planners. Before, a project with any other override kept the stored value, because the server keeps a fork project key an entry leaves out. - A save that fails on some environments and saves on others names them instead of saying nothing changed (onFailed now gets where it failed and saved). - Tests: reset with a second override (planner and bulk reset, run through the server's keep step), project without an override replaces nothing of the environment's, approach lens first. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…ecked (#385) (#426) * fork seam check: refuse a pull request's own malformed list (format only) (#385) A pull request is judged by main's list, so its own list was never parsed before merge. A malformed one (bad JSON, the old plain-number "lost", an unknown kind, or a deleted list) then made every later pull request and fork-follow run exit 3, including the pull request that fixes it. The PR run now parses the head's list when the change edits it (format only, never its rules) and refuses a malformed one with exit 1. parseConfig also refuses unknown top-level keys and unknown seam-entry keys ("//..." keys stay comments), so a misspelt block cannot guard nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork: give upstream lines back in pending files (#385) From upstream (as fork-follow runs the seam check) these files lost upstream lines that the fork did not need to touch: - OrchestratorMcpService.ts: delegate_task's generator stays hugged by Effect.fn (Effect.scoped as its pipeable on the closing line), so upstream's 141 re-indented lines come back unchanged; the paced target is named pacedTarget so upstream's `target` lines stay. 147 lost lines -> 4. - EffectWorker.ts: the admitted claim is built first, so upstream's pipe chain keeps its indentation. 8 -> 2. - Imports the fork extended now add a line of their own beside upstream's (cliRelease test; ChatMarkdown.tsx has them from #17 on since the fold for #475; a split that would grow a file on a pull request is left for later), and runtimeLayer.test.ts keeps upstream's import order. No behaviour change. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seams: the list fits main from upstream (lost block, ceilings, 3 files) (#385) `fork-seam-check.cjs --from-upstream <base tag> HEAD` (fork-follow's run) refused main. Now it exits 0: - cli/connect.ts and cloud/CloudLink.ts (#313, also before #277) are seam files with their 5 fork lines each; cloud/linkEnvironment.test.ts (#313) is pending (34). - Pending ceilings set to the counts from upstream: raised where #318 and #332 grew a file before #277 set the counts (SettingsPanels, scopedSettings and its test, useScopedSettings, shared/package.json), lowered where the previous commit gave lines back. - A "lost" block in the {"lines", "gone"} form: 34 files, 20 lines that may move unseen (166 in the block #380 proposed). Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Claude Fable 5.2 <[email protected]>
… T6) (#318) * web: review rules settings panel with recommended preset button (PK10 T6) Settings > Threads gets a Review rules section: on/off, the effective values a lens would run with (each marked preset or set by hand), a "Use recommended review rules" button ({"preset":"recommended"}) and a "Turn off" button ({"preset":"off"}). A project shows its override or that it uses the environment's. A button asks first before it drops hand-set fields or an unreadable value; a second click saves nothing. The project-scope planner merged a reviewRules save with the environment's fields; it now replaces the value whole, as waitChecks. Co-Authored-By: Claude Opus 5.5 <[email protected]> * web: review rules panel fixes (reset with other overrides, partial save message, tests) - Project reset of a kept fork key (reviewRules, mcpProfile, playtest, handoff) now sends its clear value through the fork's clearProjectSettingsOverridesWithForkKeys, in both web clear planners. Before, a project with any other override kept the stored value, because the server keeps a fork project key an entry leaves out. - A save that fails on some environments and saves on others names them instead of saying nothing changed (onFailed now gets where it failed and saved). - Tests: reset with a second override (planner and bulk reset, run through the server's keep step), project without an override replaces nothing of the environment's, approach lens first. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…ecked (#385) (#426) * fork seam check: refuse a pull request's own malformed list (format only) (#385) A pull request is judged by main's list, so its own list was never parsed before merge. A malformed one (bad JSON, the old plain-number "lost", an unknown kind, or a deleted list) then made every later pull request and fork-follow run exit 3, including the pull request that fixes it. The PR run now parses the head's list when the change edits it (format only, never its rules) and refuses a malformed one with exit 1. parseConfig also refuses unknown top-level keys and unknown seam-entry keys ("//..." keys stay comments), so a misspelt block cannot guard nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork: give upstream lines back in pending files (#385) From upstream (as fork-follow runs the seam check) these files lost upstream lines that the fork did not need to touch: - OrchestratorMcpService.ts: delegate_task's generator stays hugged by Effect.fn (Effect.scoped as its pipeable on the closing line), so upstream's 141 re-indented lines come back unchanged; the paced target is named pacedTarget so upstream's `target` lines stay. 147 lost lines -> 4. - EffectWorker.ts: the admitted claim is built first, so upstream's pipe chain keeps its indentation. 8 -> 2. - Imports the fork extended now add a line of their own beside upstream's (cliRelease test; ChatMarkdown.tsx has them from #17 on since the fold for #475; a split that would grow a file on a pull request is left for later), and runtimeLayer.test.ts keeps upstream's import order. No behaviour change. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seams: the list fits main from upstream (lost block, ceilings, 3 files) (#385) `fork-seam-check.cjs --from-upstream <base tag> HEAD` (fork-follow's run) refused main. Now it exits 0: - cli/connect.ts and cloud/CloudLink.ts (#313, also before #277) are seam files with their 5 fork lines each; cloud/linkEnvironment.test.ts (#313) is pending (34). - Pending ceilings set to the counts from upstream: raised where #318 and #332 grew a file before #277 set the counts (SettingsPanels, scopedSettings and its test, useScopedSettings, shared/package.json), lowered where the previous commit gave lines back. - A "lost" block in the {"lines", "gone"} form: 34 files, 20 lines that may move unseen (166 in the block #380 proposed). Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Claude Fable 5.2 <[email protected]>
… T6) (#318) * web: review rules settings panel with recommended preset button (PK10 T6) Settings > Threads gets a Review rules section: on/off, the effective values a lens would run with (each marked preset or set by hand), a "Use recommended review rules" button ({"preset":"recommended"}) and a "Turn off" button ({"preset":"off"}). A project shows its override or that it uses the environment's. A button asks first before it drops hand-set fields or an unreadable value; a second click saves nothing. The project-scope planner merged a reviewRules save with the environment's fields; it now replaces the value whole, as waitChecks. Co-Authored-By: Claude Opus 5.5 <[email protected]> * web: review rules panel fixes (reset with other overrides, partial save message, tests) - Project reset of a kept fork key (reviewRules, mcpProfile, playtest, handoff) now sends its clear value through the fork's clearProjectSettingsOverridesWithForkKeys, in both web clear planners. Before, a project with any other override kept the stored value, because the server keeps a fork project key an entry leaves out. - A save that fails on some environments and saves on others names them instead of saying nothing changed (onFailed now gets where it failed and saved). - Tests: reset with a second override (planner and bulk reset, run through the server's keep step), project without an override replaces nothing of the environment's, approach lens first. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…ecked (#385) (#426) * fork seam check: refuse a pull request's own malformed list (format only) (#385) A pull request is judged by main's list, so its own list was never parsed before merge. A malformed one (bad JSON, the old plain-number "lost", an unknown kind, or a deleted list) then made every later pull request and fork-follow run exit 3, including the pull request that fixes it. The PR run now parses the head's list when the change edits it (format only, never its rules) and refuses a malformed one with exit 1. parseConfig also refuses unknown top-level keys and unknown seam-entry keys ("//..." keys stay comments), so a misspelt block cannot guard nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork: give upstream lines back in pending files (#385) From upstream (as fork-follow runs the seam check) these files lost upstream lines that the fork did not need to touch: - OrchestratorMcpService.ts: delegate_task's generator stays hugged by Effect.fn (Effect.scoped as its pipeable on the closing line), so upstream's 141 re-indented lines come back unchanged; the paced target is named pacedTarget so upstream's `target` lines stay. 147 lost lines -> 4. - EffectWorker.ts: the admitted claim is built first, so upstream's pipe chain keeps its indentation. 8 -> 2. - Imports the fork extended now add a line of their own beside upstream's (cliRelease test; ChatMarkdown.tsx has them from #17 on since the fold for #475; a split that would grow a file on a pull request is left for later), and runtimeLayer.test.ts keeps upstream's import order. No behaviour change. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seams: the list fits main from upstream (lost block, ceilings, 3 files) (#385) `fork-seam-check.cjs --from-upstream <base tag> HEAD` (fork-follow's run) refused main. Now it exits 0: - cli/connect.ts and cloud/CloudLink.ts (#313, also before #277) are seam files with their 5 fork lines each; cloud/linkEnvironment.test.ts (#313) is pending (34). - Pending ceilings set to the counts from upstream: raised where #318 and #332 grew a file before #277 set the counts (SettingsPanels, scopedSettings and its test, useScopedSettings, shared/package.json), lowered where the previous commit gave lines back. - A "lost" block in the {"lines", "gone"} form: 34 files, 20 lines that may move unseen (166 in the block #380 proposed). Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Claude Fable 5.2 <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.