mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2388] [Issue]: 10-CONN-STORAGE-folder-owner-behavior folder create appends instead of prepending #1176
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#1176
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Promansis on GitHub (Jun 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2388
Originally assigned to: @Promansis on GitHub.
Summary
10-CONN-STORAGE-folder-owner-behavior: refactor creates new connection folders at the bottom of the list, while legacy creates them at the top by shifting existing folder sort orders down.Linked parity tracker: #2384.
Expected behavior
Creating a connection folder should preserve legacy folder-owner behavior: existing folders shift down and the new folder gets
sortOrder: 0.Actual behavior
Refactor assigns the new folder
max(sortOrder/order) + 1, so new folders append to the bottom unless the caller supplies an explicit order.Steps to reproduce
sortOrder.Impact area
Environment
Logs, screenshots, or video
Proof:
sortOrder: 0:upstream/main:packages/server/src/services/storage/connection-folders.storage.ts:23,:31,:38.max(sortOrder/order) + 1:src-tauri/src/commands/storage/commands/entities.rs:1040,:1050,:1063.{ name }, so it does not override the storage default:src/features/shell/connections/components/ConnectionsPanel.tsx:369,:376;src/features/catalog/connections/hooks/use-connection-folders.ts:24,:27.Files inspected:
upstream/main:packages/server/src/services/storage/connection-folders.storage.ts:20-98upstream/main:packages/server/src/routes/connection-folders.routes.ts:21-87src-tauri/src/commands/storage/commands/entities.rs:1040-1122,:1390-1508src-tauri/src/commands/storage/contracts.rs:195,:374-379src/features/shell/connections/components/ConnectionsPanel.tsx:369-384src/features/catalog/connections/hooks/use-connection-folders.ts:24-30Regression notes
Legacy source is
upstream/main. The confirmed parity gap is limited to default placement for newly created connection folders. Folder move validation, reorder validation, and unfile-on-delete behavior were present in refactor during the same scan.Additional context
Acceptance criteria:
sortOrder: 0.Surface ID:
10-CONN-STORAGE-folder-owner-behavior.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: