You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In industries where the sequence of images matters (like determining the order of a property slideshow), users need a visual way to reorder files. (Note: This PR relies on the backend capability to store file positions, as described in feature request #21726 ).
Current behavior
There is no way to visually drag and drop thumbnails to change their order in the sequence. The order is static, usually based on upload time.
Expected behavior
Position Indicator: Show the numerical position of the file right before its name in the gallery view (e.g., "1. LivingRoom.jpg", "2. Kitchen.jpg").
Drag-and-Drop Reordering: Users should be able to click, hold, and drag thumbnails within the grid to physically change their order in the sequence. The UI should provide visual feedback (like a ghost image or a drop indicator line) during the drag.
Technical inputs
Integrate @dnd-kit/core and @dnd-kit/sortable (which are already used in the Twenty codebase) around the FileGallery grid component to handle the visual reordering of the thumbnails.
Implement an optimistic UI update to instantly reflect the new order locally onDragEnd.
Trigger the updateAttachmentPositions (or the equivalent mutation defined in the backend PR) passing the new array of ordered IDs to persist the sequence in the database.
This discussion was converted from issue #21730 on June 17, 2026 13:22.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Scope & Context
In industries where the sequence of images matters (like determining the order of a property slideshow), users need a visual way to reorder files.
(Note: This PR relies on the backend capability to store file positions, as described in feature request #21726 ).
Current behavior
There is no way to visually drag and drop thumbnails to change their order in the sequence. The order is static, usually based on upload time.
Expected behavior
Technical inputs
@dnd-kit/coreand@dnd-kit/sortable(which are already used in the Twenty codebase) around theFileGallerygrid component to handle the visual reordering of the thumbnails.onDragEnd.updateAttachmentPositions(or the equivalent mutation defined in the backend PR) passing the new array of ordered IDs to persist the sequence in the database.All reactions