Repository navigation
Refine Sessions layout and add drag-to-copy - #121
Merged
Merged
Conversation
There was a problem hiding this comment.
🔵 Needs a closer look
Terminal-specific mouse release, grapheme highlighting, clipboard behavior, and localized header layout span multiple UI modes, so an interactive terminal check remains necessary despite strong unit coverage.
No open issues 🎉
What changed in this PR
Refines the terminal Sessions interface with improved responsive layout, drag-to-copy selection for visible output, and a scoped Clear Check action while updating documentation, localization, tests, and screenshot metadata.
Changes:
- Caps telemetry columns at 40 characters and adds responsive equal-width Sessions controls.
- Adds grapheme-aware drag selection, plain-text clipboard copying, temporary highlighting, and copy-count feedback.
- Adds Clear Check and K shortcut handling with confirmation support, localization updates, documentation, tests, and refreshed screenshot metadata.
| File | Description |
|---|---|
| README.md | Documents the revised Sessions layout, drag-to-copy behavior, and Clear Check action. |
| internal/ui/view.go | Applies selection highlighting and renders the temporary copy receipt. |
| internal/ui/session_thread_links_test.go | Updates session link interaction tests for click and release handling. |
| internal/ui/session_links.go | Makes terminal link hit testing aware of grapheme clusters. |
| internal/ui/session_links_darwin_test.go | Updates macOS session link interaction coverage for click and release handling. |
| internal/ui/monitor.go | Adds responsive Sessions header controls, Clear Check rendering, and the 40-column telemetry cap. |
| internal/ui/monitor_text_selection_test.go | Tests drag selection across detail modes, graphemes, stale content, pane boundaries, and ordinary clicks. |
| internal/ui/monitor_selection.go | Implements visible-output selection, validation, clipboard copying, highlighting, and expiry timers. |
| internal/ui/monitor_read.go | Integrates selection handling and shares result-pane geometry calculations. |
| internal/ui/monitor_profile.go | Shares profile body layout calculations between rendering and hit testing. |
| internal/ui/monitor_header_focus.go | Reserves the K shortcut for Clear Check during header focus handling. |
| internal/ui/monitor_context.go | Shares split-context body sizing between rendering and selection hit testing. |
| internal/ui/monitor_columns_test.go | Updates telemetry width and target-alignment coverage for the 40-column cap. |
| internal/ui/monitor_close_all.go | Adds scoped Check-row dismissal and confirmation state management. |
| internal/ui/monitor_close_all_test.go | Tests equal-width header controls and updated Close All rendering. |
| internal/ui/monitor_clear_check_test.go | Covers Clear Check filtering, confirmation, shortcuts, and responsive hit targets. |
| internal/ui/model.go | Adds selection state, Clear Check routing, shortcut handling, and dismissal bookkeeping. |
| internal/ui/english_snapshot_test.go | Refreshes the English presentation snapshot baseline. |
| internal/i18n/locales/zh-Hans.json | Adds Clear Check and copy-receipt translations and updates Close All wrapping. |
| internal/i18n/locales/tr.json | Adds Clear Check and copy-receipt translations and updates Close All wrapping. |
| internal/i18n/locales/sv.json | Adds Clear Check and copy-receipt translations and updates Close All wrapping. |
| internal/i18n/locales/ru.json | Adds Clear Check and copy-receipt translations and updates Close All wrapping. |
| internal/i18n/locales/pt-PT.json | Adds Clear Check and copy-receipt translations and updates Close All wrapping. |
| internal/i18n/locales/pt-BR.json | Adds Clear Check and copy-receipt translations and updates Close All wrapping. |
| internal/i18n/locales/nl.json | Adds Clear Check and copy-receipt translations and updates Close All wrapping. |
| internal/i18n/locales/nb.json | Adds Clear Check and copy-receipt translations and updates Close All wrapping. |
| internal/i18n/locales/ja.json | Adds Clear Check and copy-receipt translations and updates Close All wrapping. |
| internal/i18n/locales/it.json | Adds Clear Check and copy-receipt translations and updates Close All wrapping. |
| internal/i18n/locales/fr.json | Adds Clear Check and copy-receipt translations and updates Close All wrapping. |
| internal/i18n/locales/fi.json | Adds Clear Check and copy-receipt translations and updates Close All wrapping. |
| internal/i18n/locales/et.json | Adds Clear Check and copy-receipt translations and updates Close All wrapping. |
| internal/i18n/locales/es.json | Adds Clear Check and copy-receipt translations and updates Close All wrapping. |
| internal/i18n/locales/en-GB.json | Adds English Clear Check and copy-receipt strings and updates Close All wrapping. |
| internal/i18n/locales/de.json | Adds Clear Check and copy-receipt translations and updates Close All wrapping. |
| internal/i18n/locales/da.json | Adds Clear Check and copy-receipt translations and updates Close All wrapping. |
| assets/screenshots/manifest.json | Refreshes the Sessions screenshot frame and PNG hashes. |
Review effort: Lite
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.
Changes
Clear Check(orK) beside the Sessions controls to dismiss only matching Check* rows, including off-page matches. Codex threads and measurements keep running; pending quota-profile reviews remain visible. Strict confirmation mode adds a second action.Checks