mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-04 21:23:07 +00:00
fix(profiles): enable drag-and-drop reordering for built-in profiles
Wrap built-in profiles section with DndContext and SortableContext to allow reordering of pre-configured profiles, matching the behavior available for custom profiles. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
This commit is contained in:
@@ -311,5 +311,24 @@
|
|||||||
"skipTests": false,
|
"skipTests": false,
|
||||||
"model": "sonnet",
|
"model": "sonnet",
|
||||||
"thinkingLevel": "none"
|
"thinkingLevel": "none"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "feature-1765374057950-og96suob2",
|
||||||
|
"category": "Other",
|
||||||
|
"description": "I found an issue u can reorder custom profiles created by our self but the pre build in when u try to drag nothing happend",
|
||||||
|
"steps": [],
|
||||||
|
"status": "verified",
|
||||||
|
"startedAt": "2025-12-10T13:40:58.991Z",
|
||||||
|
"imagePaths": [
|
||||||
|
{
|
||||||
|
"id": "img-1765374055642-rdjksh8g1",
|
||||||
|
"path": "/Users/shirone/Library/Application Support/automaker/images/1765374055641-o7pu97zuz_SCR-20251210-namv.png",
|
||||||
|
"filename": "SCR-20251210-namv.png",
|
||||||
|
"mimeType": "image/png"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"skipTests": true,
|
||||||
|
"model": "sonnet",
|
||||||
|
"thinkingLevel": "medium"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -598,16 +598,27 @@ export function ProfilesView() {
|
|||||||
Pre-configured profiles for common use cases. These cannot be
|
Pre-configured profiles for common use cases. These cannot be
|
||||||
edited or deleted.
|
edited or deleted.
|
||||||
</p>
|
</p>
|
||||||
<div className="space-y-3">
|
<DndContext
|
||||||
{builtInProfiles.map((profile) => (
|
sensors={sensors}
|
||||||
<SortableProfileCard
|
collisionDetection={closestCenter}
|
||||||
key={profile.id}
|
onDragEnd={handleDragEnd}
|
||||||
profile={profile}
|
>
|
||||||
onEdit={() => {}}
|
<SortableContext
|
||||||
onDelete={() => {}}
|
items={builtInProfiles.map((p) => p.id)}
|
||||||
/>
|
strategy={verticalListSortingStrategy}
|
||||||
))}
|
>
|
||||||
</div>
|
<div className="space-y-3">
|
||||||
|
{builtInProfiles.map((profile) => (
|
||||||
|
<SortableProfileCard
|
||||||
|
key={profile.id}
|
||||||
|
profile={profile}
|
||||||
|
onEdit={() => {}}
|
||||||
|
onDelete={() => {}}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</SortableContext>
|
||||||
|
</DndContext>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user