Repository navigation
refactor(ui): present custom theme imports as Solid actions - #179487
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dfa2be282d
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| get completedImport(): Promise<void> | undefined { | ||
| return this.currentImport ? undefined : this.state.completion; |
There was a problem hiding this comment.
Preserve pending import state across section remounts
When a user starts an import, switches from the Appearance theme section to the UI section, and returns before the fetch settles, view.tsx remounts AppearanceSection while this page owner survives. The component’s local createOptimistic(false) therefore resets, and this getter hides the only pending receipt whenever currentImport exists, so the remounted button appears enabled instead of showing “Importing”; clicking it launches a duplicate request, replaces currentImport, and causes the first response to be discarded. Keep the owner’s pending state observable to newly mounted renderers (or retain the renderer across section changes).
AGENTS.md reference: AGENTS.md:L20-L20
Useful? React with 👍 / 👎.
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
C/E/U/N: outstanding candidate / allowed exception / unresolved assessment / native group. Other columns count remaining applicable candidates. Only Custom theme import changes classification; unmerged family work receives no credit.
Base
4700321df3dcb14910c90852545f7453013c58ad; 111 production files; stable AST snapshot at 2026-10-21T12:42:08.853Z; zero syntax diagnostics. Recipes are absent at this base and latest checked main1e48ec3a9e3f. Current rc.16 cheatsheet/idioms/checklist apply.The retained exceptions are primitive-owned cleanup, imperative non-component imports, synchronous preference writes, OS notification permission handoff, System info polling without a read presenter, and advisory Memory schema support. The remaining command/read groups are candidates, not exceptions.
Native/refactor counters
Custom-theme imports should use Solid's native command lifecycle while the existing owner keeps URL, config, page and Gateway admission. Previously the import control kept a separate busy bit and asynchronous error message around the fetch.
The Appearance renderer now presents the admitted completion through an action and a co-written optimistic Importing flag. The same owner-held terminal receipt feeds inline Loading/Errored, preserving success and synchronous validation messages. The plain owner still decides which request may apply a theme; retirement settles its presentation receipt immediately so an unresolved old transport cannot hold the next import.
No theme payload is predictable before the external response, and this command has no separately read asynchronous server slot to mark with affects/refresh. Successful application continues through the existing settings/theme authority. The terminal-receipt getter keeps the pending action from blocking its own onSettled admission. No dependency or chunk-boundary change.
Builds used identical synthetic build metadata on the same machine with compile/build caches disabled. Main is already over the startup cap; this head adds 13 B against its own base, below the 64 B no-growth allowance. No budget exception or baseline edit.
The focused tests retain URL/config/Gateway/page retirement, first-import theme selection, and failure/retry coverage. Existing SettingsSegmented strict-read diagnostics are separately tracked in #179453; this PR does not claim zero dev diagnostics.
Production LOC: touched production 1821 → 1871 (+50); whole scoped production 24975 → 25025 (+50); changed tests/support 368 → 449 (+81). The growth exposes the actual owner-admitted completion and replaces presentation flags with native action/error boundaries. Simplification removed the stored busy bit and stored asynchronous error text without another authority or module.
Visual comparison: before on the left, after on the right; all fixture data synthetic.
Inherited CI evidence: exact failing tests are
manual code folding through a real Gateway;Control UI command palette search with a real Gateway;Control UI agent file lifecycle with a real Gateway > reads and saves the selected agent workspace through an isolated Gateway; andControl UI profile page real Gateway E2E > shows the authenticated user instead of the default agent through a real Gateway. Each fails on scheduled main39608923095 with the same obsoleteagents.defaults.heartbeatfixture validation error. Both absolute performance-cap violations also match main. Actual CI checkoutd087d09996e20dff9d3ef0b9795d2266912963c2has ordered parentsc34ab77c5235492afb36a4441cdf7b82bc1ddca2,dfa2be282d197312828f678073b27a00f6eee747; inspected failed inputs are unchanged. CI paired route deltas are Chat +27 B, New +21 B. Native inherited-failure evidence retains the failed gate rather than relabeling it green.