fix(crash-report): stabilize community review table and add one-click copy#5959
Merged
Conversation
… 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 · starsand the submitted date were wrappingcharacter-by-character. Switched it to
table-layout: fixedwith explicitcolumn widths (new
.reg-tableclass +<colgroup>), so no column is squeezedbelow 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-btncopied/failed feedback already inshell.ts.Notes
manifestsnapshot lives onpackage_versions(frontmatter only), so itis intentionally not in the copy blob;
source/repo_urlare the pointersto the actual reviewable content.
esc(); verified round-trip(quotes,
<,&, newlines all survive) with no attribute break-out.Deploy
Merging to
main-v2triggersdeploy-crash-worker.yml→wrangler deploytocrash.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.