feat(attachments): drag/drop sort ordering for post media & files (create + edit) - #306
Merged
Merged
Conversation
Media & Files tiles and file rows in the post/comment/message composer
now carry a grip handle: drag (pointer events - mouse and touch), or
use arrow keys / Home / End on the focused grip, to set the order.
Editing a post swaps the dead-end upload panel for a reorderable
gallery of the post's existing attachments.
Order persists end-to-end: binds stamp attachmentSortIndex per doc in
client list order, PATCH /api/v1/things { id, attachmentIds } re-stamps
a bound set as a pure permutation (same-origin full-session only), and
the post + messenger read paths sort stamped docs first with legacy
docs keeping createdAt order.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
🧹 Develop S3 preview removedThe PR-specific alias and every workflow-created develop deployment were removed when this PR closed. The ordinary generated Vercel Preview remains available on the shared development runtime. |
The edit composer replaced the upload panel with the reorder gallery, so contentValid must count the post's existing bound attachments - an attachment-only post's Save was dead, making its reorder unsaveable. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ator updateThing validated post crystals without the postAttachments context creates get from route inspection, so every edit of an attachment-only post failed with the say-something rule. Bound ready attachments are server-authored state; resolving their presence at update time is as trusted as the create-time inspection. Covers PUT too via upsertThing's delegation. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
|
✅ Promoted to An earlier run stood aside on this PR; that verdict no longer applies. |
Contributor
|
✅ Promotion #311 has verified source lineage at current |
Owner
Author
|
🚀 Promotion PR for |
Merged
lopugit
added a commit
that referenced
this pull request
Aug 18, 2026
… branch Union resolutions keep both the protected moderation stamp and #306's attachmentSortIndex on the attachment doc type and in the feed/messenger aggregation projections. attachments 111/111, moderation 10/10, full nitro build green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
lopugit
added a commit
that referenced
this pull request
Aug 18, 2026
…g/drop sort ordering for post media & files (create + edit) (#306)
lopugit
added a commit
that referenced
this pull request
Aug 18, 2026
…ing pages + title/description (stacked on #306)
lopugit
added a commit
that referenced
this pull request
Aug 18, 2026
…g/drop sort ordering for post media & files (create + edit) (#306)
lopugit
added a commit
that referenced
this pull request
Aug 18, 2026
…ing pages + title/description (stacked on #306)
github-actions Bot
added a commit
that referenced
this pull request
Aug 18, 2026
…g/drop sort ordering for post media & files (create + edit) (#306)
github-actions Bot
added a commit
that referenced
this pull request
Aug 18, 2026
…ing pages + title/description (stacked on #306)
github-actions Bot
added a commit
that referenced
this pull request
Aug 19, 2026
…g/drop sort ordering for post media & files (create + edit) (#306)
github-actions Bot
added a commit
that referenced
this pull request
Aug 19, 2026
…ing pages + title/description (stacked on #306)
github-actions Bot
added a commit
that referenced
this pull request
Aug 21, 2026
…g/drop sort ordering for post media & files (create + edit) (#306)
github-actions Bot
added a commit
that referenced
this pull request
Aug 21, 2026
…ing pages + title/description (stacked on #306)
github-actions Bot
added a commit
that referenced
this pull request
Aug 21, 2026
…g/drop sort ordering for post media & files (create + edit) (#306)
github-actions Bot
added a commit
that referenced
this pull request
Aug 21, 2026
…ing pages + title/description (stacked on #306)
github-actions Bot
added a commit
that referenced
this pull request
Aug 21, 2026
…g/drop sort ordering for post media & files (create + edit) (#306)
github-actions Bot
added a commit
that referenced
this pull request
Aug 21, 2026
…ing pages + title/description (stacked on #306)
lopugit
added a commit
that referenced
this pull request
Aug 21, 2026
feat(media): masonry gallery, lightbox, media Thing pages + title/description (stacked on #306)
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.
What
Adds sort/ordering drag & drop to the post composer's Media & Files panel — when creating posts/comments (and Messenger messages) and when editing posts — as requested. Every tile and file row with 2+ items in its section gets a ⠿ grip: drag it (pointer events, so mouse AND touch work), or focus it and use Arrow keys / Home / End. The hovered drop position shows an accent outline; the move commits on release.
How order persists (end-to-end)
Follow-up fixes surfaced by the preview E2E
Notes
Verification
🤖 Generated with Claude Code