Skip to content

feat(web): toggle issue attachments between thumbnails and a list - #25

Merged
cornedor merged 1 commit into
mainfrom
attachments-list-view
Nov 17, 2026
Merged

cornedor merged 1 commit into
mainfrom
attachments-list-view

Conversation

@cornedor

Copy link
Copy Markdown
Owner

The issue panel shows image and video attachments as big thumbnails, which leaves no room for who added a file or when. This adds a list layout next to it and remembers the choice.

  • jira.Attachment now carries Author and Created from Jira's attachment JSON (zero when Jira leaves them out); the TUI doesn't use them.
  • Attachments section: a toggle button in its head, or alt+i in the panel, switches between thumbnails and a list. Pref issue.files (list, or empty for thumbnails, the default).
  • A list row: a small preview (or file icon), name, uploader, date (relative, full date on hover), size and a download link on hover. A click on an image or video opens the viewer; other files download. Non-media files use the same row in the thumbnail layout, so they show uploader and date too.
  • Dutch strings, the layout-grid Lucide icon, and the README's issue-panel keys.

Tests: TestIssueAttachmentUploader (Go) and alt+i lists the attachments with who added them, and it stays (Playwright) both fail on main and pass here. go vet, gofmt, go test ./internal/jira ./internal/web ./internal/i18n and tests/issue.spec.mjs (10) pass. Checked by eye on the demo in both layouts.

@cornedor
cornedor force-pushed the attachments-list-view branch from a2dc581 to 23778b6 Compare November 17, 2026 13:25
@cornedor
cornedor merged commit 16ad4ef into main Nov 17, 2026
7 checks passed
@cornedor
cornedor deleted the attachments-list-view branch November 17, 2026 13:31
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.

1 participant