Skip to content

Validation: copy a finding, or every shown finding, as text (#197) - #198

Merged
jcombs-pointblue merged 1 commit into
mainfrom
copy-validation-findings
Nov 23, 2026
Merged

jcombs-pointblue merged 1 commit into
mainfrom
copy-validation-findings

Conversation

@jcombs-pointblue

@jcombs-pointblue jcombs-pointblue commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #197.

A finding in the validation panel is one button (it opens the artifact), so its text couldn't be selected.

  • Per finding: a copy button on each finding, shown on hover or keyboard focus.
  • Copy shown: in the panel head, copies every finding at the selected severities.
  • Text: reads like idm validate's line, WARNING code path: message, with the detail on the next line (findingText, unit-tested).
  • Clipboard: uses the Clipboard API. Where that's refused or missing (over plain http to another host there is no navigator.clipboard), it falls back to a selected textarea and the copy command. If that is refused too, the button says copy failed instead of doing nothing.

Checked in a local server (bin/idmweb serve on a tree with a schema warning). The preview browser refuses the Clipboard API, but the fallback put the finding on the system clipboard on a real click: WARNING schema-unknown-class drivers/Loop/driver-filter: filter class 'User' is not in the vault schema …. vitest: 57 pass.

🤖 Generated with Claude Code

Each finding gets a copy button (hover or focus) and the panel head Copy shown;
the text reads like idm validate's line. Falls back to the copy command where
the Clipboard API isn't available, and says 'copy failed' when refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jcombs-pointblue
jcombs-pointblue merged commit 1d9cc47 into main Nov 23, 2026
2 checks passed
@jcombs-pointblue
jcombs-pointblue deleted the copy-validation-findings branch November 23, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

allow copying validation item text

1 participant