Repository navigation
refactor(ui): derive settings save presentation from status - #174117
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesReplace effect-copied save visibility with a writable derivation while preserving the existing two-second Saved indicator. Example: A settings save completes with pending changes to apply.
Review scores
ProductKind: Refactor · Worth it: Yes Merge readiness✅ Ready for maintainer review Keep this PR open: it is a focused, maintainer-directed Solid refactor with no actionable correctness or security findings. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI settings sidebar passes configuration status and action callbacks into the save indicator, which renders transient feedback without owning configuration writes. flowchart LR
A[Configuration state owner] --> B[Shell view props]
B --> C[Settings sidebar]
C --> D[Save indicator derivation]
D --> E[Footer feedback]
D --> F[Two second timer]
F --> D
Technical reviewBest possible solution: Retain the focused derivation refactor and existing presentation contracts through the normal exact-head CI gate. Do we have a high-confidence way to reproduce the issue? This is a behavior-preserving refactor rather than a reported defect; source and existing component tests define its contract, and no target code was executed during this read-only review. Is this the best way to solve the issue? The writable derivation follows the repository's Solid guidance, preserves status equality isolation, and leaves the remaining effect responsible for an external timer. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 28f8cab70da1. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -6, Tests +2. Total -4 across 2 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 16, 2026, 6:50 AM ET / 10:50 UTC. |
|
Merged via squash.
|
What Problem This Solves
The settings save indicator still copies save-status transitions into a separate visibility flag from an effect.
User Impact
No user-visible change. The indicator shows “Saved” for two seconds after saving, keeps that window across unrelated shell refreshes, and cancels its timer when removed.
Why This Change Was Made
Derive the save presentation directly from status with a writable signal. Only a
saving→savedtransition enters the timed state; the timer expires that state. This removes the owned-write escape hatch and the effect's copied-state writes. The remaining effect owns a real external timer and its cleanup.Initial
savedstatus stays quiet. Error, recovery, conflict, manual-save, and apply actions retain their existing rendering and callbacks. No CSS, markup, tag, route, dependency, or lazy-boundary changes; no visual design change requiring screenshots.Evidence
git diff --checkNo local build or E2E suite was run because this changes no boot/startup code; PR CI is the broad proof runner.
createEffectcreateRenderEffectuntrackaddEventListenerflushownedWriteProduction shrinks by six lines; the existing test gains two assertions/input lines. The typecheck initially caught a missing explicit
undefinedreturn in timer setup; that was corrected without changing runtime behavior.