Repository navigation
refactor(ui): retire unused Solid page bridges - #171809
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
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: 8e681e6fae
ℹ️ 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".
|
|
||
| // Keep exact polling deadlines while waiting for Solid to commit async results. | ||
| function waitForPage(assertion: () => void) { | ||
| return waitForSolid(assertion, { interval: 0 }); |
There was a problem hiding this comment.
In the tests that call vi.useFakeTimers(), this helper passes interval: 0 to vi.waitFor. Vitest documents that waitFor advances the fake clock by the configured interval between attempts when fake timers are active (Vitest documentation); if an assertion remains false, these retries therefore advance time by zero and never reach the wait's timeout, turning an ordinary regression into a runner-level hang. Use a positive interval or a bounded microtask-only settling helper that preserves the polling deadlines.
Useful? React with 👍 / 👎.
Integrate current main, retain the coordinated Custodian owner, and preserve the Labs plugin settings link.
…-b-routes # Conflicts: # ui/src/components/mcp-app-view.test.ts
|
The four progressive Models failures are now traced to a newer main commit consumed by the PR merge checkout, not the bridge-removal hunks here. Diagnostic CI The intervening The failing cases are the two early-selection/catalog-preservation cases at lines271/359 and the snapshot/ordinary catalog-publication cases at624. All four pass on the earlier scheduled main. No competing edits made to your files; please account for the owner's fix when integrating main. My earlier parent-branch comparison did not include the later merge-base change; the actual CI checkout is authoritative. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f180d34d47
ℹ️ 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".
| <openclaw-cron-page ref={(element) => (host = element)}> | ||
| <CronPageBody routeSearch={props.routeSearch} host={host} /> | ||
| </openclaw-cron-page> |
There was a problem hiding this comment.
Replace the stale bridge settlement wait
When the deferred cron.history response is resolved, ui/src/pages/cron/run-transcript.e2e.test.ts:242-244 still awaits openclaw-cron-page.updateComplete to ensure the response continuation has rendered before asserting that stale transcript content stayed hidden. This host is now an unregistered plain element, so updateComplete is undefined and the await completes immediately, allowing the regression assertion to run before the stale response is processed and falsely pass. Replace that wait with the Solid settlement/readiness contract.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e358543a1f
ℹ️ 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".
| <openclaw-model-providers-page ref={(element) => (host = element)}> | ||
| <ModelProvidersPageBody {...props} host={host} /> |
There was a problem hiding this comment.
Update loader-pending checks for the plain host
When the Models route loader remains pending, ui/src/e2e/model-providers-progressive.e2e.test.ts:258-266 and :346-354 still poll openclaw-model-providers-page.loaderPending. This replacement host is now an ordinary HTMLElement, and the component passes loaderPending only to ModelProvidersPageBody, so the DOM property remains undefined and those parametrized E2E cases time out before exercising the picker behavior. Update the tests to observe the Solid route/controller readiness contract, or explicitly retain the host property if it is intentional.
AGENTS.md reference: AGENTS.md:L85-L86
Useful? React with 👍 / 👎.
|
Merged via squash.
|
* refactor(ui): retire unused Solid page bridges * refactor(ui): preserve native page reactivity and simplify owners * test(gateway): mount setup consent through the UI route * refactor(ui): remove unused page layout adapter * test(ui): retain catalog publication failure diagnostics * test(ui): restore inherited Models loading waits * test(ui): wait for visible model defaults during route loading
What Problem This Solves
Twenty-three Solid pages still register bridge custom elements although their production consumers already render Solid. The extra roots and transitional adapters obscure ownership and repeat derived work.
User Impact
No intended visible behavior change. Existing host tags, routes, classes, selectors, keyboard/focus behavior and lazy boundaries remain intact.
Why This Change Was Made
Render the pages under their existing native hosts, memoize inputs at the equality boundaries previously supplied by bridge properties, retain bridges with real imperative callers, and delete the unused PageLayout adapter. Models progressive-loading tests now wait for visible Defaults content instead of the removed
loaderPendinghost property, while authentication remains deferred.Production LOC: 9,297 → 9,128 (−169) across 31 production files; 40 files total. The latest ordinary main integration preserves the authored patch byte-for-byte. No dependency or startup import is added.
Evidence
Current head:
a0ef6ed0a453ba55980ce8d909727c276f6341d6.pnpm tsgo:uipnpm deadcode:knip520302d8ee63fd254e88042e96c393d8dc3ec461with the identical sole unused file:extensions/oc-path/src/oc-path/jsonl/emit.ts. No UI findings or new ignoresgit diff --checkThe main refresh resolved the prior inherited setup-action/provider-login failures. It was also needed to restart GitHub's stuck
UNKNOWNmergeability computation. No CI rerun or further authored change was made.This is nonvisual polish: no screenshot or local build was added under the bounded-proof rule. CI owns both builds and strict startup comparison. The corrected Models readiness cases pass on this head.