Repository navigation
refactor(ui): port chat metadata rendering to Solid - #171827
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: aa328ad310
ℹ️ 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".
| <Show when={effect().headCommit}>{(commit) => <code>{commit()}</code>}</Show> | ||
| <Show when={effect().url}> |
There was a problem hiding this comment.
Add separators between publication effect fields
When a publication receipt includes effect.headCommit or effect.url, these adjacent Solid children render without the whitespace previously supplied by the Lit template, producing text such as unknown.<sha>View GitHub effect. Add explicit spaces between the status text, commit, and link.
Useful? React with 👍 / 👎.
| {props.publication.options?.personal === null | ||
| ? t("githubPublication.unidentified") | ||
| : null} |
There was a problem hiding this comment.
Separate the combined no-account messages
When both shared credentials and a personal profile are unavailable, the two adjacent expressions are concatenated into a single run such as ...optional.Sign in...; the old Lit template inserted collapsible whitespace. Add an explicit separator before the personal-profile message.
Useful? React with 👍 / 👎.
| AttachmentItem, | ||
| ImageRenderOptions, | ||
| } from "./chat-message-media.ts"; | ||
| import { SentCommentAttachments, type SentCommentSource } from "./chat-sent-comments.tsx"; |
There was a problem hiding this comment.
Regenerate the boot manifest for the TSX cutover
This new boot-path import was added without regenerating ui/config/control-ui-boot-modules.json: the checked-in capture still lists the deleted chat-message-attachment-admission.ts and omits the newly loaded TSX renderers. Because the chunking configuration consumes this generated capture to classify /chat boot modules, regenerate it and verify the UI build as required for material boot-path changes.
AGENTS.md reference: ui/AGENTS.md:L69-L70
Useful? React with 👍 / 👎.
Integrate current main while retaining the Solid metadata renderers. Carry forward reconnect-aware question labels, message-scoped comment admission, and compact pull-request layout coverage.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 22ee27342d
ℹ️ 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".
| {(label) => ( | ||
| <div class="chat-question-summary__delivery"> | ||
| <span>{label()}</span> | ||
| <Show |
There was a problem hiding this comment.
Separate the retry action from its delivery label
When a failed or unconfirmed async answer exposes presentation.retry, the adjacent <span> and <Show> render without whitespace or a layout gap, so the summary displays text such as FailedRetry. Add an explicit separator or style this container with a gap.
Useful? React with 👍 / 👎.
| } | ||
| ${this.sources.map((source, index) => (this.comments[index] === null ? source.fallback : nothing))}`; | ||
| } | ||
| return solidContent(SentCommentAttachments, { comments, options, resolve }); |
There was a problem hiding this comment.
Remove the retained Lit and bridge round trip
The only production caller of this facade is the already-Solid chat-message-attachments-solid.tsx, which passes this solidContent result through LitContent; SentCommentAttachments then creates a defineSolidBridge host and another Solid root. Every sent-comment group therefore retains a Solid→Lit→Solid→bridge chain even though no legacy caller needs it. Render the Solid component directly and retire the facade and bridge while preserving the host tag if selectors require it.
AGENTS.md reference: AGENTS.md:L52-L53
Useful? React with 👍 / 👎.
Integrate current main while preserving the reviewed Solid metadata port. Exercise live speed changes and select workspace clipboard actions by their menu role.
Report only the matched category and a visible-text boolean in four real-Gateway capture guards. Preserve their textContent predicates and forbidden values so hidden private text still blocks screenshots.
Keep main's strengthened live-preference assertions and wait for the shared confirmation modal before switching gateways in packaged Workboard proof. Preserve the reviewed chat metadata port and capture diagnostics.
Keep innerText for the separate rendered-text diagnostic while preserving the original textContent capture guard. Scope each lint exception to its one intentional read.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f3d17703dc
ℹ️ 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".
| : nothing | ||
| } | ||
| </div>`; | ||
| return solidContent(AsyncQuestionSummary, { questions, presentation }); |
There was a problem hiding this comment.
Remove the remaining Solid-to-Lit-to-Solid facade
The only production consumer of this facade is the Solid chat-message-bubble-view.tsx, which passes the result into LitContent; every rendered async-question summary therefore creates a Solid→Lit→nested-Solid ownership chain instead of using AsyncQuestionSummary directly. Complete the cutover at that caller and remove this facade/re-export path; the same retained-wrapper pattern should also be removed from the newly ported question-summary and selection-annotation paths.
AGENTS.md reference: AGENTS.md:L52-L53
Useful? React with 👍 / 👎.
|
Merged via squash.
|
* refactor(ui): port chat metadata renderers to Solid * fix(ui): preserve chat metadata contracts in Solid * test(ui): await committed chat summaries * test(ui): identify private capture guard matches Report only the matched category and a visible-text boolean in four real-Gateway capture guards. Preserve their textContent predicates and forbidden values so hidden private text still blocks screenshots. * test(ui): explain visible capture diagnostic reads Keep innerText for the separate rendered-text diagnostic while preserving the original textContent capture guard. Scope each lint exception to its one intentional read. * test(ui): expect full pull request references * fix(ui): keep decorator helpers outside lazy routes * test(ui): fix chat metadata CI fixtures
What Problem This Solves
Move chat comment previews, question summaries, pull-request rows, and GitHub publication controls to Solid as part of the Control UI migration.
User Impact
The existing comment admission, question delivery/reopening, publication actions, full
owner/repo#numberreferences, and retained CI disclosures keep their behavior. Explicitly dismissing Details clears disclosure intent; temporarily parking it preserves that intent.Why This Change Was Made
Solid now owns these rendering consumers while the existing domain owners remain authoritative. Native Solid callers use the PR component directly; unused Lit publication, PR-rendering, and attachment-admission paths are removed. Thin adapters remain for active legacy callers. The growth is primarily JSX expansion and these remaining adapters; no second state owner is introduced.
The earlier bundle comparison exposed a real lazy-loading regression through the shared compiler decorator helper. Main now owns the neutral
decorator-runtimechunk, and this PR adopts that production configuration byte-for-byte. Regression coverage retains both the class-decorator route-isolation test and the stronger field-decorator/shared-stylesheet test.Release-note context: Control UI chat metadata rendering moves to Solid while preserving question, comment, and GitHub publication behavior.
Evidence
Current candidate:
65195c7c71217449a8b1b206dbd9981ed3237ba6, after an ordinary merge of actual main9f4b34b842b3375b3e182e1836fc5114ab69c0ce. The source repository's remote-tracking ref was explicitly refreshed before merging. The sole manual conflict wasui/src/types/solid-elements.d.ts: main's exportedElementProperties, native dock element contracts, catalog tags and systems-page cleanup remain intact alongside this port's typed chat CI properties and tags. The lead inspected the complete resolution.The four automatically merged test files were also inspected against current main. Secret-leak assertions and scroll thresholds are unchanged; the prior diagnostic labels remain. The question-summary test retains its content assertions under
waitForSolid. No additional runtime behavior was introduced by this integration.pnpm tsgo:uipassed once on the final integrated source.src/shared/safe-record.ts,ui/src/components/dropdown-menu-controller.ts, andui/src/components/web-awesome-popover.ts. All three files, the Knip configuration and their discovered references match incorporated main byte-for-byte. Neither tree has a production caller; the metadata port retires none. No new ignores or unnecessary full baseline rerun were added.--maxWorkers=1; earlier unchanged-input chunking 6/6 and text-chip admission 7/7 passed. No local E2E battery or redundant rerun was added for the type-only merge.65195c7c71217449a8b1b206dbd9981ed3237ba6returned completed/success: 45 successful jobs and 24 skips, including successful security and CI gates. Octopool explicitly marked the run view stale and the job list cached, so this is a recorded completed-run snapshot, not a live admission check. The native workflow must revalidate live state before landing.2d8185acd3c290302ac470611a0580791cf1a90c, run 38798317675, failed only the update-run restart-report case and its downstream gate. Its matching scheduled-main failure was attributed for that predecessor only. Earlier failed/cancelled runs remain historical; none is relabeled green or used to grant the replacement head an exception.72422c4007bff81a5d0b55b56e8439d7f83892e3and traced the metadata lane's 7 Lit files / 68 markers to the port. Every marker has an explicit disposition. This is retrospective review, not evidence that the required dry-run preceded conversion.The retained measured build stayed below the 374,285 B / one-CSS-request budget. The small extra route request is the 300 B gzip decorator runtime. The rejected intermediate bundle had added 106,904 B to chat; that result is not the final candidate.
Current diff against incorporated main
9f4b34b: 34 logical files / 35 physical paths. Production: 2,660 → 2,878 lines (+218); tests/support: 5,781 → 5,959 (+178). Counts include full changed-file contents and count renames once.The local screenshot harness initially failed before producing images because a Node-only transform helper leaked into a serialized browser callback. The corrected harness uses the canonical route-readiness predicate and exact session URL; its single final paired capture passed. This was a tooling failure, not a product failure.