Skip to content

refactor(ui): transact sidebar update process indicators - #179241

Merged
steipete merged 1 commit into
mainfrom
solid2/comp-a-update-actions
Oct 21, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/comp-a-update-actions

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Whole-scope Solid 2 census

Whole-scope production LOC 37,089→37,101 (+12). Scope is the direct app-sidebar*, sidebar-*, and session-* production families. Counts are base c5d7bc0741f4 → this head. Prior checkpoints #179084 and #179166 are on this base; #179201 and the lazy-renderer/read family remain separate.

File family Files 1 stale intrinsic handlers 2 onCleanup calls 3 async-read candidates 4 unconverted mutation flows 5 renderer-loader candidates 6 structured signals 7 hand createComponent 8 throw-only context 9 sibling Loading 10 owner calls
app-sidebar* 42 0→0 2→2 0→0 0→0 1→1 0→0 0→0 0→0 0→0 3→3
sidebar-* 40 0→0 3→3 1→1 4→2 exceptions 2→2 2→2 0→0 0→0 0→0 0→0
session-* 72 0→0 7→7 3→3 0→0 0→0 4→4 0→0 0→0 0→0 4→4

Item 2's survivors are synchronous primitive/computation cleanup; owner calls include deliberate foreign-DOM mounts and the submenu owner calls addressed in #179201. Item 4 leaves two explicit exceptions: refresh is a document-navigation latch that must remain busy until unload; delete-agent has no renderer-owned state spanning its asynchronous calls and reconciles through the agents owner. Group-default saving already uses an action and optimistic saving. Structured signals are atomic target/status/geometry values or publications of existing mutable owners. No new data owner or refreshable slot is introduced.

What Problem This Solves

The update card manually maintained its hold and target-check process indicators across asynchronous callbacks.

User Impact

Busy controls retain their existing appearance and synchronous duplicate-request protection. Failed checks and declined holds become retryable on the same retained controls. No markup, style, selector, route or intended visual change.

Why This Change Was Made

Native generator actions now own optimistic process indicators. The overlays owner still admits and performs each operation. Target checking awaits its small action before flushing fresh presentation props and rechecking live update eligibility; flush() never runs inside the transaction. Refresh and deletion retain their owner-specific lifetimes. There is no affects()/refresh() call because this component owns no asynchronous data slot to invalidate.

Evidence

Check Result
UI typecheck (tsrs) Passed
Focused default-Bun test 22/22 passed in sidebar-update-card.test.tsx, once
Controller guard, targeted lint, format, whitespace Passed; existing style-prop warning only
Production Knip Passed
Independent Codex review through P2 Scoped-clean
Lazy/startup boundary and CI performance Existing dynamic imports remain; no boot boundary changed, so no local build under the compute rule. Same-run base/head CI comparison passed against 4fa2da58c1273b0aa3cc00d4cbde0ce33a71b85a (run 39563821473, job 119101632488). Measured head startup 326,854 B gzip, 1 CSS request (40,439 B). Chat 1,494,823→1,494,851 B (+28); New Session 1,012,702→1,012,694 B (−8). Absolute startup-cap warning remains; CI did not print base startup bytes, so no startup delta is claimed.
Full CI All three UI unit shards passed. Two E2E failures match exact failing tests in latest completed scheduled-main run 39563487228: Control UI Markdown table interactions > contains content-sized tables after restoring a percentage reading width and Control UI chat panel layout > opens this dashboard's chat and details independently without losing either draft. PR run 39563821473 has no other failing job except the aggregate gate. Native inherited-failure landing retains this failed result.

Touched production LOC 599→611 (+12, formatter-inclusive); test LOC 682→694 (+12). Two existing tests gained held/rejected request assertions; no new test case or production test seam. Refactor counts in the touched production file: two process signals→optimistic signals, two new actions; effects, cleanup, direct listeners, owner APIs and flush counts unchanged. No remote test lease or screenshots: visible states and DOM/style contract are unchanged.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 21, 2026
@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-21T07:40:26.011541Z 7d69c0d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 21, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 21, 2026
@clawsweeper

clawsweeper Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR replaces manually reset sidebar update busy indicators with Solid actions and optimistic signals.

Example: A user selects Hold 1 h for campaign-1 and the request returns false.

  • Before: The component manually clears its busy indicator so the retained button becomes retryable.
  • After: Solid action settlement clears the optimistic busy indicator so the same button becomes retryable.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and source-consistent with no actionable finding, while behavior evidence remains at the rendered-component test boundary.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored refactor is outside the ordinary contributor-proof gate; supplied coverage mounts SidebarUpdateCard with deferred callbacks in jsdom, while no live Control UI evidence exercises the changed indicators.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: The update controls need to remain busy during requests and become retryable after unsuccessful requests without losing their retained DOM identity.
Reason: The maintainer-authored direction is established, and the narrow conversion uses existing framework primitives without adding a domain owner or changing update policy.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-authored PR open: the focused refactor preserves update ownership, and no introduced correctness or security defect was found; the failing E2E signatures also occur on scheduled main.

Priority: P3
Reviewed head: 7d69c0df3043d0e8bd661d2e3782c7cd855b8023

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No supplied shipped Control UI scenario exercises the changed request indicators; the added assertions are preservation coverage without a demonstrated red/green baseline.
Agent review details

How this fits together

The Control UI sidebar consumes update snapshots and callbacks from the application overlays owner, renders update controls, and delegates status checks and hold requests back to that owner.

flowchart LR
  A[Sidebar interaction] --> B[Sidebar update card]
  B --> C[Solid action and busy indicator]
  C --> D[Application overlays owner]
  D --> E[Gateway update RPC]
  E --> D
  D --> F[Fresh presentation props]
  F --> B
Loading

Technical review

Best possible solution:

Keep the two local action conversions while leaving admission, request execution, and authoritative results with the existing overlays owner.

Do we have a high-confidence way to reproduce the issue?

This is a behavior-preserving refactor rather than a demonstrated current-main bug; source and test assertions were inspected without executing target code.

Is this the best way to solve the issue?

The change follows the existing Solid action pattern, removes manual indicator resets, and preserves the synchronous owner guards and fresh-prop flush.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 0fb57420100a.

Provenance checked

  • Sidebar busy indicators and target-check sequencing keeps the original intent (e80558a: The Solid sidebar migration preserved existing update behavior, plain TypeScript authority, and the flush before live eligibility checks.)
  • Optional callbacks and retained controls keeps the original intent (24afcdf: The adapter-removal work retained direct Solid rendering, optional callbacks, and existing update confirmation behavior.)
  • Held-campaign visibility coverage keeps the original intent (e3de98a: Scheduled update campaigns introduced one-hour holds; the extended test retains consumed-hold suppression while adding declined-request retry coverage.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

PR surface

Source +12, Tests +12. Total +24 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 23 11 +12
Tests 1 18 6 +12
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 41 17 +24

Review metrics

Metric Value Why it matters
Production versus test LOC Production +12; tests +12 Growth is limited to the two action conversions and meaningful extensions of existing retained-control coverage.

Labels

Label changes:

  • add P3: This is a focused internal UI lifecycle refactor with no intended visual, configuration, or update-policy change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a focused internal UI lifecycle refactor with no intended visual, configuration, or update-policy change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 21, 2026, 4:39 AM ET / 08:39 UTC.

@steipete
steipete merged commit 930ece0 into main Oct 21, 2026
127 of 133 checks passed
@steipete
steipete deleted the solid2/comp-a-update-actions branch October 21, 2026 08:46
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui ci:full Keep ordinary native-locale CI selection on the next PR run. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant