Skip to content

fix(ui): match fullscreen table presentation - #125692

Merged
clawsweeper merged 4 commits into
mainfrom
brzezowski/table-dialog-restyle
Aug 18, 2026
Merged

clawsweeper merged 4 commits into
mainfrom
brzezowski/table-dialog-restyle

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Aug 18, 2026 •

Copy link
Copy Markdown
Member

Related: #125245
Related: #125219

What Problem This Solves

Fixes an issue where expanding a transcript Markdown table rendered the fullscreen clone with the legacy table card styling because the native dialog is attached to document.body, outside the transcript selector scope introduced by #125219.

Why This Change Was Made

The transcript and fullscreen dialog now share one table presentation selector, so background, borders, row separators, wrapping, and header treatment stay identical without duplicating a second style block. The dialog also uses a bounded rounded surface, supports light-dismiss outside its bounds, preserves X and Escape dismissal, and restores focus to the expand action.

User Impact

Expanded Markdown tables now look and wrap like their inline transcript source instead of reverting to the previous bordered card design. Operators can also dismiss the fullscreen view by clicking outside it.

Evidence

  • node scripts/run-vitest.mjs ui/src/components/markdown-tables.test.ts ui/src/components/markdown.test.ts — 101 tests passed on the rebased exact head (AWS Crabbox run_5b4d1d3d9b81).
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-markdown-table-interactions.e2e.test.ts — 1 Chromium E2E passed on the rebased exact head, covering nonempty computed-style parity, copy feedback, backdrop/Escape dismissal, and focus restoration (AWS Crabbox run_bbf3ab156329).
  • The Chromium run captured a dark-theme fullscreen screenshot; visual inspection confirmed the detached dialog matches the inline table presentation.
  • pnpm check:changed — passed the full changed type/lint/guard plan on the rebased exact tree (AWS Crabbox run_77291132fcd2).
  • .agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main --stream-engine-output — clean; no accepted/actionable findings.
  • git diff --check passed.

Review Resolution

Resolved the latest ClawSweeper finding by replacing camelCase getPropertyValue() inputs with valid CSS declaration names and failing fast on empty computed values. The requested refreshed Chromium proof and stale-base refresh are complete; no re-review was requested because the post-review changes only addressed that finding and mechanically rebased the branch.

@clawsweeper

clawsweeper Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Aug 18, 2026
@vyctorbrzezowski vyctorbrzezowski self-assigned this Aug 18, 2026
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review August 18, 2026 07:30
@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: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 18, 2026
@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed August 18, 2026, 5:53 AM ET / 09:53 UTC.

ClawSweeper review

What this changes

This PR makes fullscreen Markdown tables share inline transcript styling, adds outside-click dismissal and copy-success icon feedback, and expands table interaction coverage.

Regression provenance

Possible regression — probable (reviewed change; known regression link). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep open. The shared selector targets the real detached-dialog boundary, but the current-head style-parity E2E still passes empty values because it supplies camelCase member names to getPropertyValue(); the prior P2 blocker remains unresolved.

Priority: P3
Reviewed head: 6c39114c90ffab5178e431be2b115bff6cca7eea

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The targeted UI approach is credible, but the central browser parity assertion is currently ineffective.
Proof confidence 🌊 off-meta tidepool Not applicable: The author is a repository MEMBER, so the external-contributor proof gate does not apply; the PR nevertheless reports remote Chromium runs, while the invalid style probe remains a separate correctness blocker.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The author is a repository MEMBER, so the external-contributor proof gate does not apply; the PR nevertheless reports remote Chromium runs, while the invalid style probe remains a separate correctness blocker.
Evidence reviewed 5 items Current-main gap: Current main scopes the simplified table rules to transcript bubbles, while the dialog is attached outside that subtree; this leaves fullscreen tables on the older dialog presentation.
Owner boundary and proposed repair: The transcript delegates table actions to the table interaction owner, and the PR gives the detached dialog the chat-text class plus a selector shared with the inline wrapper.
Ineffective style assertion: The E2E passes camelCase names such as backgroundColor and borderCollapse to CSSStyleDeclaration.getPropertyValue(). Those are not CSS declaration names, so the equality checks compare empty values rather than computed presentation.
Findings 1 actionable finding [P2] Use CSS declaration names in the style probe
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-markdown-table-interactions.e2e.test.ts

Result: FAIL (partial) — step 2 expect_output Control UI Markdown table interactions: expected terminal output was not visible within 30 seconds: "Control UI Markdown table interactions"

node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-markdown-table-interactions.e2e.test.ts
runner@runnervmzvulz:/tmp/clawsweeper-live-proof-125692-tJD8ne/target$ node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoad
er runner ui/src/e2e/chat-markdown-table-interactions.e2e.test.ts

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-125692-tJD8ne/target

node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-markdown-table-interactions.e2e.test.ts
 ✓  ui-e2e  ui/src/e2e/chat-markdown-table-interactions.e2e.test.ts (1 test) 6409ms
     ✓ contains overflow, copies TSV, and restores focus after fullscreen  3913ms

 Test Files  1 passed (1)
      Tests  1 passed (1)
   Start at  09:54:26
   Duration  15.40s (transform 162ms, setup 78ms, import 243ms, tests 6.41s, environment 0ms)

runner@runnervmzvulz:/tmp/clawsweeper-live-proof-125692-tJD8ne/target$ node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoad
er runner ui/src/e2e/chat-markdown-table-interactions.e2e.test.ts

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-125692-tJD8ne/target

 ✓  ui-e2e  ui/src/e2e/chat-markdown-table-interactions.e2e.test.ts (1 test) 3983ms
     ✓ contains overflow, copies TSV, and restores focus after fullscreen  3584ms

 Test Files  1 passed (1)
      Tests  1 passed (1)
   Start at  09:54:42
   Duration  12.11s (transform 359ms, setup 342ms, import 259ms, tests 3.98s, environment 0ms)

runner@runnervmzvulz:/tmp/clawsweeper-live-proof-125692-tJD8ne/target$






















Assertions:

  • FAIL expect_output: Control UI Markdown table interactions

How this fits together

Control UI renders Markdown tables inside chat transcript bubbles and can clone a table into a native dialog for focused viewing. The detached dialog needs the same table CSS as the transcript wrapper so fullscreen content retains the inline presentation.

flowchart LR
  A[Markdown transcript] --> B[Inline table wrapper]
  B --> C[Table interaction handler]
  C --> D[Native fullscreen dialog]
  B --> E[Shared table CSS]
  D --> E
  E --> F[Consistent inline and fullscreen presentation]
Loading

Before merge

  • Use CSS declaration names in the style probe (P2) - getPropertyValue() receives camelCase member names such as backgroundColor and borderCollapse, so it returns empty strings and all three equality checks pass even when fullscreen styling diverges. Use hyphenated declaration names or correctly typed member access; the latest commit changed the probe but retained the invalid keys.
  • Resolve merge risk (P1) - The branch is behind current main and changes the same shared chat stylesheet; refresh the exact merge result before merge so recent unrelated chat-text styling is visibly preserved.
  • Resolve merge risk (P1) - Production grows by 28 lines for a presentation repair, including extra copy-feedback and dismissal behavior; the repaired browser proof should cover the combined interaction surface.
  • Complete next step (P2) - The remaining blocker is a narrow, mechanical repair to the changed E2E probe; current main still lacks this detached-dialog styling fix.

Findings

  • [P2] Use CSS declaration names in the style probe — ui/src/e2e/chat-markdown-table-interactions.e2e.test.ts:108-125
Agent review details

Security

None.

PR surface

Source +28, Tests +58. Total +86 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 2 57 29 +28
Tests 2 60 2 +58
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 117 31 +86

Review metrics

Metric Value Why it matters
Production vs test LOC production +57/-29; tests +60/-2 The visual repair is net +28 production lines and adds focused interaction and parity coverage, so the added behavior needs working browser proof.

Root-cause cluster

Relationship: canonical
Canonical: #125692
Summary: This PR is the remaining presentation-parity work for the dialog introduced by the related merged table-interaction change.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Mantis proof suggestion

A redacted web chat capture would directly show whether the expanded Markdown table retains the inline presentation. A maintainer can ask Mantis to capture proof by posting this exact PR comment:

@openclaw-mantis web UI chat proof: verify that an expanded Markdown table matches the inline table presentation and capture redacted before/after evidence.

Merge-risk options

Maintainer options:

  1. Repair the parity probe and refresh browser proof (recommended)
    Use hyphenated CSS declaration names or correctly typed property access, rebase onto current main, and rerun the focused Chromium table interaction proof.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Replace camelCase names passed to getPropertyValue with CSS declaration names or typed member access, rebase onto current main, and rerun the focused Chromium table-interactions test with updated proof.

Technical review

Best possible solution:

Keep one shared inline/dialog CSS selector, repair the computed-style probe with CSS declaration names, then validate the rebased exact head in Chromium before merge.

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

Yes, for the review defect: the current E2E sends camelCase keys to getPropertyValue(), making the asserted computed values empty rather than testing the browser styles.

Is this the best way to solve the issue?

Mostly yes for the product fix: the shared selector is the right ownership boundary, but the parity proof must use valid CSS property names before it can establish the result.

Full review comments:

  • [P2] Use CSS declaration names in the style probe — ui/src/e2e/chat-markdown-table-interactions.e2e.test.ts:108-125
    getPropertyValue() receives camelCase member names such as backgroundColor and borderCollapse, so it returns empty strings and all three equality checks pass even when fullscreen styling diverges. Use hyphenated declaration names or correctly typed member access; the latest commit changed the probe but retained the invalid keys.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.99

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 227230024d06.

Labels

Label changes:

  • add merge-risk: 🚨 other: The branch is behind current main on a shared chat stylesheet, while its current style-parity assertion cannot detect divergence.

Label justifications:

  • P3: The item is a bounded Control UI presentation and interaction refinement without data, security, or availability impact.
  • merge-risk: 🚨 other: The branch is behind current main on a shared chat stylesheet, while its current style-parity assertion cannot detect divergence.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The author is a repository MEMBER, so the external-contributor proof gate does not apply; the PR nevertheless reports remote Chromium runs, while the invalid style probe remains a separate correctness blocker.

Evidence

Acceptance criteria:

  • [P1] node scripts/run-vitest.mjs ui/src/components/markdown-tables.test.ts ui/src/components/markdown.test.ts.
  • [P1] node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-markdown-table-interactions.e2e.test.ts.
  • [P1] git diff --check.

What I checked:

Likely related people:

  • vyctorbrzezowski: Authored the merged table-interaction and table-styling changes that own the dialog and inline presentation, in addition to this branch. (role: introduced merged table behavior and recent area contributor; confidence: high; commits: cbe3116e1491, 86fb87c60246, 6c39114c90ff; files: ui/src/components/markdown-tables.ts, ui/src/styles/chat/text.css, ui/src/e2e/chat-markdown-table-interactions.e2e.test.ts)
  • steipete: Recent history includes the earlier Markdown-table polish that established adjacent Control UI table presentation. (role: adjacent UI styling contributor; confidence: medium; commits: 22e6f5b5e0dc; files: ui/src/styles/chat/text.css)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Repair the computed-style probe with valid CSS declaration names and rerun the focused Chromium E2E on the refreshed head.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-18T07:50:13.469Z sha fb38c44 :: needs changes before merge. :: [P1] Use the CSS property API for the style probe
  • reviewed 2026-08-18T09:10:07.698Z sha 6c39114c90ffab5178e431be2b115bff6cca7eea :: needs changes before merge. :: [P2] Use CSS property names in the computed-style probe

@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. label Aug 18, 2026
@clawsweeper
clawsweeper force-pushed the brzezowski/table-dialog-restyle branch from 6c39114 to 8613a7f Compare August 18, 2026 10:44
@clawsweeper
clawsweeper merged commit 40597e2 into main Aug 18, 2026
266 of 268 checks passed
@clawsweeper

Copy link
Copy Markdown
Contributor

Merged via squash.

@clawsweeper
clawsweeper deleted the brzezowski/table-dialog-restyle branch August 18, 2026 10:56
steipete added a commit that referenced this pull request Aug 18, 2026
…line (#125800)

Two landed-PR races left main red (run 32131816085):

- #125692's rewritten markdown-tables dialog test drives every interaction
  through direct handler calls except the reopen, which used a raw
  expand.click() that only worked via a leaked cross-file document listener
  in the shared lane; #125766 moved the file to the isolated lane where no
  such listener exists. Reopen now uses the file's own handler idiom.
- Accumulated startup-JS creep from landed features put main 50 B over its
  gzip budget (344395 B vs 343289 B baseline + 1056 B tolerance). Baseline
  updated to main's CI-measured bytes via the script's --update-baseline
  contract.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 20, 2026
* fix(ui): match fullscreen table presentation

* fix(ui): confirm copied tables with check icon

* test(ui): type table style probe safely

* test(ui): repair table style parity probe

---------

Co-authored-by: RoboClaw <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 20, 2026
…line (openclaw#125800)

Two landed-PR races left main red (run 32131816085):

- openclaw#125692's rewritten markdown-tables dialog test drives every interaction
  through direct handler calls except the reopen, which used a raw
  expand.click() that only worked via a leaked cross-file document listener
  in the shared lane; openclaw#125766 moved the file to the isolated lane where no
  such listener exists. Reopen now uses the file's own handler idiom.
- Accumulated startup-JS creep from landed features put main 50 B over its
  gzip budget (344395 B vs 343289 B baseline + 1056 B tolerance). Baseline
  updated to main's CI-measured bytes via the script's --update-baseline
  contract.
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 maintainer Maintainer-authored PR merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. 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: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants