dev→main: post-card redesign (images→modal, in-place text expand) #67

Merged
bvandeusen merged 1 commits from dev into main 2026-06-04 17:32:50 -04:00
Owner

HEAD 509a795, run #524 green. No backend changes / no new migrations (alembic head stays 0036).

  • Post cards no longer expand the whole card. Compact-only now: hero / rail thumbs / the +N tile are buttons that open the post-scoped image modal (modal.open(id, { postImageIds })) so you view big and arrow through all the post's images (lazy getPostFull for posts with >6 images; +N opens at the first not-yet-shown image).
  • Only the description expands in place — a Show more / Show less toggle shown only when the text is actually truncated (server description_truncated flag OR a measured CSS-clamp overflow); expanding loads description_full and renders it unclamped.
  • Attachments now render as inline download chips on the compact card (the feed already carries download_url).
  • Removes the now-unused PostImageGrid.vue mosaic.

🤖 Generated with Claude Code

HEAD `509a795`, run #524 green. No backend changes / no new migrations (alembic head stays 0036). - **Post cards no longer expand the whole card.** Compact-only now: hero / rail thumbs / the +N tile are buttons that open the **post-scoped image modal** (`modal.open(id, { postImageIds })`) so you view big and arrow through *all* the post's images (lazy `getPostFull` for posts with >6 images; +N opens at the first not-yet-shown image). - **Only the description expands in place** — a Show more / Show less toggle shown *only* when the text is actually truncated (server `description_truncated` flag OR a measured CSS-clamp overflow); expanding loads `description_full` and renders it unclamped. - **Attachments** now render as inline download chips on the compact card (the feed already carries `download_url`). - Removes the now-unused `PostImageGrid.vue` mosaic. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
bvandeusen added 1 commit 2026-06-04 17:32:45 -04:00
feat(posts): images open the modal; only text expands in place
CI / lint (push) Successful in 2s
CI / backend-lint-and-test (push) Successful in 11s
CI / frontend-build (push) Successful in 27s
CI / integration (push) Successful in 3m2s
509a7958cf
Post cards no longer expand the whole card on click (the old two-click path
to the images). The card is compact-only now:
- Hero / rail thumbs / the +N tile are buttons that open the post-scoped image
  modal (modal.open(id, { postImageIds })) so you view big + arrow through ALL
  the post's images. The feed caps thumbnails at 6, so for posts with more we
  lazily getPostFull to get the complete id list; +N opens at the first hidden
  image.
- The description is the ONLY in-place expansion: a Show more / Show less toggle
  shown only when the text is actually truncated (server description_truncated
  flag OR a measured CSS-clamp overflow, ResizeObserver-guarded). Expanding
  loads description_full when server-truncated and renders it unclamped.
- Attachments: download chips now render inline in the compact card (the feed
  already carries download_url), since the expanded view is gone.

Removes PostImageGrid.vue (the mosaic, now unused). Tests cover show-more
visibility + image-click opening the scoped modal.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
bvandeusen merged commit 9a2617c1a2 into main 2026-06-04 17:32:50 -04:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bvandeusen/FabledCurator#67