feat(grid): copy a long cell value without opening the viewer - #748
Merged
Merged
Conversation
A long value, such as the statement SHOW CREATE TABLE returns, could be copied only by opening the full-content viewer and using its Copy (#739). Cells that offer the expand button now offer Copy beside it, with the same hover visibility, and a check mark for a moment once the value is on the clipboard. It copies the value as stored, not the viewer's reformatted text, and copies bytes as hex, as the viewer does. That hex encoding moves into lib/blob.ts as toHex(), and the viewer uses it too. The click does not reach the row, so copying does not change the selection. The viewer already wraps long lines, which covers the issue's expand/wrap ask. Closes #739. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SCNjpC4VgppHSFs7P6rkZg
Merged
EVWorth
added a commit
that referenced
this pull request
Oct 5, 2026
Version bump across the three manifests and the two lockfile entries that record the app's own version. What 1.2.0 contains since 1.1.0: - Each editor tab runs on its own server session, so SET @var, temporary tables and multi-run transactions carry across runs (#734) - Separate connection lanes for the agent and for backups/restores, so neither can starve the editor; the pool-exhausted message says what is holding the pool (#732, #727) - Copy button beside Expand for long cell values, such as SHOW CREATE TABLE (#748) - Linux/Wayland: WebKitGTK's DMABUF renderer is turned off, for the black area left after resizing the window (#742) - Tauri 2.12 on both the npm and Rust sides (#749), and the dependency roll-up in #740 - rustls TLS 1.3 advisory RUSTSEC-2026-0285 patched (#728) Also the first release built with rustup in place of dtolnay/rust-toolchain (#746), so the release jobs' toolchain step runs on Windows and macOS for the first time. Claude-Session: https://claude.ai/code/session_01SCNjpC4VgppHSFs7P6rkZg Co-authored-by: Claude <noreply@anthropic.com>
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.
Closes #739.
What changed
Copying a long value, such as the statement
SHOW CREATE TABLEreturns, used to mean opening the full-content viewer and using its Copy. Any cell that shows the expand (⤢) button now also shows a Copy button next to it:lib/blob.tsastoHex(), and the viewer now uses it too.The issue's "expand/wrap" ask is already covered: the viewer wraps long lines (
wordWrap: "on").Tests
TruncatedCell.test.tsxgets 4 new cases:Verification
vitest run src/components/grid src/lib: 1151/1151 pass.npm run lint: 0 errors, and the warning count (162) is unchanged from main.npm run type-checkanddprint check: clean.vitest.browser.config.ts) couldn't run in my container because its Chromium doesn't match the repo's Playwright version; CI runs them.🤖 Generated with Claude Code
https://claude.ai/code/session_01SCNjpC4VgppHSFs7P6rkZg
Generated by Claude Code