Skip to content

fix(crash-report): stabilize community review table and add one-click copy#5959

Merged
esengine merged 1 commit into
main-v2from
fix/community-review-table-copy
Jul 5, 2026
Merged

fix(crash-report): stabilize community review table and add one-click copy#5959
esengine merged 1 commit into
main-v2from
fix/community-review-table-copy

Conversation

@esengine

@esengine esengine commented Jul 5, 2026

Copy link
Copy Markdown
Owner

What

Two improvements to the Community moderation console (workers/crash-report):

1. Fix the review table layout. The table relied on the browser's auto
table-layout, so a long summary in the first column starved the meta columns —
version · installs · stars and the submitted date were wrapping
character-by-character. Switched it to table-layout: fixed with explicit
column widths (new .reg-table class + <colgroup>), so no column is squeezed
below its content.

2. Add a per-row "Copy for review" button. One click copies the whole
submission (kind, source, repo_url, homepage, tags, summary, README) to the
clipboard, so a reviewer can hand a pending skill/MCP off for review without
hand-copying each field. Reuses the existing [data-copy] handler and
.copy-btn copied/failed feedback already in shell.ts.

Notes

  • The manifest snapshot lives on package_versions (frontmatter only), so it
    is intentionally not in the copy blob; source / repo_url are the pointers
    to the actual reviewable content.
  • The copy blob is HTML-attribute-escaped via esc(); verified round-trip
    (quotes, <, &, newlines all survive) with no attribute break-out.

Deploy

Merging to main-v2 triggers deploy-crash-worker.ymlwrangler deploy to
crash.reasonix.io.

Test

Rendered the real CSS + table markup in a standalone page and confirmed the
meta columns no longer wrap per-character and the copy button copies the full
submission intact.

… copy

The community moderation table used the browser's auto table-layout, so the
long summary in the first column starved the meta columns: version/installs/
stars and the submitted date wrapped character-by-character. Switch that table
to table-layout:fixed with explicit column widths (new .reg-table + colgroup)
so no column is squeezed below its content.

Add a per-row "Copy for review" button that copies the whole submission (kind,
source, repo_url, homepage, tags, summary, README) to the clipboard in one
click, reusing the existing [data-copy] handler and .copy-btn feedback. A
reviewer can hand a submission off without hand-copying fields one by one. The
manifest snapshot lives on package_versions (frontmatter only), so source and
repo_url stay the pointers to the actual reviewable content.
@esengine esengine requested a review from SivanCola as a code owner July 5, 2026 02:09
@github-actions github-actions Bot added the v2 Go rewrite (1.x) — main-v2 branch, active development label Jul 5, 2026
@esengine esengine enabled auto-merge (squash) July 5, 2026 02:11
@esengine esengine merged commit f5fb4c5 into main-v2 Jul 5, 2026
15 checks passed
@esengine esengine deleted the fix/community-review-table-copy branch July 5, 2026 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant