Skip to content

feat(ui): image gallery in the ticket header, image count on the card - #5

Open
bchbib wants to merge 1 commit into
eigenpair:mainfrom
bchbib:feat/ticket-image-gallery
Open

bchbib wants to merge 1 commit into
eigenpair:mainfrom
bchbib:feat/ticket-image-gallery

Conversation

@bchbib

@bchbib bchbib commented Dec 1, 2026

Copy link
Copy Markdown

Description

Problem. A ticket with several images shows only the first one - as the cover of its card and as the header of the ticket view. The other images sit in the attachment list at the bottom of the ticket, where they are easily missed, and on the board nothing tells you the ticket has more than the one picture (the paperclip count is for all attachments).

Change.

  • Card: when a ticket holds more than one image, its cover carries a small badge with the number of images.
  • Ticket view: with more than one image the header becomes a small gallery. Previous / next buttons on the image, or the left / right arrow keys, step through the images and wrap around. A counter shows the position (2 / 3), and the first image is marked Cover - the one the card shows on the board.
  • The arrow keys are left alone while you type in a field (title, description, comment, checklist item), while the full-screen preview is open, and when a modifier key is held.

Tickets with one image or none look exactly as before. Frontend only: Card.svelte and TicketModal.svelte, no API or .wipe/ change.

Follow-up I'd like to propose separately: a "Make cover" button on the image in view, so any of a ticket's images can become the one its card shows. Since the cover is "the first image attachment", the smallest way I see is an operation in wipe-core that moves an attachment to the front (plus the daemon route and a wipe media subcommand) - no new field in the ticket file. If you would rather have an explicit cover field, tell me and I'll do it that way.

How I tested (Vite dev UI against wipe serve 1.1.4 on a throwaway board, Windows 11, Chromium):

  • a ticket with three images: badge 3 on the card's cover; a ticket with one image: no badge;
  • in the ticket view: right arrow three times (2, 3, wraps to 1), left arrow (wraps to 3), the next button twice; counter and Cover mark follow;
  • arrow key pressed inside the comment box: the image stays;
  • svelte-check: 0 errors, 0 warnings; vite build passes.

Not tested: the Tauri desktop shell, touch devices, Safari / Firefox.

Checklist

  • I've described the change and the motivation above
  • Tests were added or updated to cover this change (or N/A, with reason) - N/A: frontend only, and apps/desktop has no test suite; tested by hand as listed above
  • cargo fmt passes with no diff - not run: no Rust files changed
  • cargo clippy --workspace --all-targets -- -D warnings passes - not run: no Rust files changed
  • cargo test --workspace passes - not run: no Rust files changed
  • All .wipe writes still go through wipe-core's deterministic
    serializer (no ad-hoc JSON serialization added) - nothing is written
  • The PR title follows Conventional Commits
    (e.g. feat(cli): add wipe ticket archive command)

🤖 Generated with Claude Code

…t on the card

A ticket with several images showed only the first one: on its card and as
the header of the ticket view. The others sat in the attachment list at the
bottom of the ticket and were easy to miss; on the board nothing said they
were there.

- Card: when a ticket holds more than one image, its cover carries a small
  badge with the number of images.
- Ticket view: with more than one image the header is a small gallery.
  Previous / next buttons on the image, or the left and right arrow keys,
  step through the images and wrap around; a counter shows the position and
  the first image is marked "Cover" (the one the card shows).
- The arrow keys are left alone while typing in a field, while the
  full-screen preview is open and when a modifier is held.

Frontend only; tickets with one image or none look as before.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@bchbib bchbib mentioned this pull request Dec 1, 2026
4 of 7 tasks
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