Skip to content

refactor(ui): present custom theme imports as Solid actions - #179487

Merged
steipete merged 1 commit into
mainfrom
solid2/w-s2-custom-theme-import-action
Oct 21, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/w-s2-custom-theme-import-action

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor
Family Files Production LOC base → head 1 handlers 2 lifecycle 3 reads C/E/U/N 4 commands C/E/U/N 5 lazy 6 collections 7 JSX 8 context 9 Reveal 10 owner APIs
Agents editor / non-memory 22 5258 0 0 12C/0E/0U/0N 7C/0E/0U/0N 0 0 0 0 0 0
Agents memory 12 2702 0 0 4C/0E/0U/1N 2C/0E/0U/0N 0 0 0 0 0 0
Config Appearance / shared 13 4005 → 4055 0 0 4C/1E/0U/3N 3C/1E/0U/0N → 2C/1E/0U/1N 0 0 0 0 0 0
Config other 30 5183 0 0 4C/0E/0U/0N 4C/1E/0U/0N 0 0 0 0 0 0
Config health 3 1182 0 0 1C/0E/0U/0N 1C/0E/0U/0N 0 0 0 0 0 0
Config memory 5 1279 0 0 0C/1E/0U/1N 2C/0E/0U/0N 0 0 0 0 0 0
Config Talk 4 1394 0 0 2C/0E/0U/1N 2C/0E/0U/0N 0 0 0 0 0 0
Sessions 22 3972 0 0 4C/0E/0U/0N 7C/0E/1U/0N 0 0 0 0 0 0
Total 111 24975 → 25025 0 0 31C/2E/0U/6N 28C/2E/1U/0N → 27C/2E/1U/1N 0 0 0 0 0 0

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 main 1e48ec3a9e3f. 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

Counter Base Head
createMemo 226 227
createSignal 31 31
createStore 3 3
createProjection 1 1
createDeferred 0 0
action 0 1
createOptimistic 0 1
createOptimisticStore 0 0
isPending 0 0
latest 0 0
affects 0 0
refresh 0 0
onSettled 26 27
onCleanup 3 3
createComponent 0 0
createRoot 0 0
getOwner 0 0
runWithOwner 0 0
Loading JSX 6 7
Errored JSX 6 7
Reveal JSX 0 0
Refactor counter Base Head
createEffect 3 3
createRenderEffect 0 0
directListener 0 0
domQuery 0 0
flush 1 1
handClass 1 1
literalMemo 0 0
manualSubscribe 20 20
numericFor 0 0
oldSolidAPI 0 0
ownerAPIs 0 0
renderingController 0 0
untrack 3 3

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.

Proof Result
Custom-theme tests, single file / one worker 11/11 pass on final source; actual DOM failure/retry and A-retired/B-completed/C-started coverage
UI typecheck pass on final source
Scoped lint running
Line cap and diff check pass; Config state 999 → 998 physical lines
Production Knip running
Independent review prior scoped-clean P0–P2; exact committed-head verification running after mechanical getter/type/test repair
Paired production build + strict performance both build; strict gate retains only inherited absolute startup cap; startup 331062 → 331075 B (+13), raw 990157 unchanged, JS requests 8, CSS 40439 B / 1 request unchanged
Route bytes Chat 1499880 → 1499904 B (+24), New 1017524 → 1017541 B (+17); both below caps
Locale assets 42 assets; largest individual growth 4 B, total +11 B; every locale pair below cap
Synthetic production screenshots failure, pending, imported at 1440×1000; inspected, no page errors
Broad proof ci:full requested

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.

Custom theme inline failure before and after

Custom theme importing before and after

Custom theme imported success before and after

Custom theme failure before and after

Custom theme pending before and after

Custom theme success before and after
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; and Control 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 obsolete agents.defaults.heartbeat fixture validation error. Both absolute performance-cap violations also match main. Actual CI checkout d087d09996e20dff9d3ef0b9795d2266912963c2 has ordered parents c34ab77c5235492afb36a4441cdf7b82bc1ddca2, 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.

@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 in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

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 ✅ Completed 2026-10-21T13:08:13.086880Z dfa2be2 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +34 to +35
get completedImport(): Promise<void> | undefined {
return this.currentImport ? undefined : this.state.completion;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 21, 2026
@steipete
steipete merged commit 335d59a into main Oct 21, 2026
125 of 136 checks passed
@steipete
steipete deleted the solid2/w-s2-custom-theme-import-action branch October 21, 2026 14:44
@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. clawsweeper:intake:feature Preliminary submission classification; full source review pending. size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant