[PR #2408] [MERGED] Fix connection folder top insertion #5590

Closed
opened 2026-10-22 04:17:37 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2408
Author: @Promansis
Created: 6/6/2026
Status: ✅ Merged
Merged: 6/6/2026
Merged by: @Promansis

Base: refactor ← Head: fix/issue-2388-folder-prepend


📝 Commits (1)

  • 64a7636 Fix connection folder top insertion

📊 Changes

1 file changed (+210 additions, -1 deletions)

View changed files

📝 src-tauri/src/commands/storage/commands/entities.rs (+210 -1)

📄 Description

Linked issue

Closes #2388

Why this change

  • Connection folder creation in the refactor branch appended new folders by default, while legacy storage inserted new folders at the top and shifted existing folder order down.

What changed

  • Route connection-folders creation through a focused storage helper.
  • Insert default connection folders atomically at sortOrder/order 0.
  • Shift existing connection folders down during default create.
  • Preserve explicit positive sortOrder or legacy order values without shifting existing rows.
  • Add focused Rust coverage for default top insertion, explicit order, legacy order, and reorder validation expectations.

Refactor impact

Primary owner:

Rust storage

Impact areas reviewed:

  • Connection folder create defaults
  • Connection folder reorder validation
  • Connection folder delete/unfile behavior
  • Profile export/import preservation for connection folders

Boundary notes:

  • No React, engine, shared API, or remote-runtime boundary changes.
  • Change stays inside the Rust storage command owner.

Pressure points touched:

  • None.

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • cargo test --manifest-path src-tauri/Cargo.toml connection_folder passed: 7 tests.
  • cargo check --manifest-path src-tauri/Cargo.toml passed.
  • pnpm check passed, including line endings, scratch, architecture, frontend typecheck, Rust workspace check, docs, discovery metadata, launcher safety, and warning-only unused-code scan.
  • git diff --check passed.
  • No browser/manual UI verification performed; change is storage-only.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • Bugfix only; no new discoverable feature or workflow.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

N/A: storage-only behavior fix.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/2408 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 6/6/2026 **Status:** ✅ Merged **Merged:** 6/6/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `refactor` ← **Head:** `fix/issue-2388-folder-prepend` --- ### 📝 Commits (1) - [`64a7636`](https://github.com/Pasta-Devs/Marinara-Engine/commit/64a7636efa64b3f16bc5c7fe6ea87121864f785c) Fix connection folder top insertion ### 📊 Changes **1 file changed** (+210 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src-tauri/src/commands/storage/commands/entities.rs` (+210 -1) </details> ### 📄 Description ## Linked issue Closes #2388 ## Why this change - Connection folder creation in the refactor branch appended new folders by default, while legacy storage inserted new folders at the top and shifted existing folder order down. ## What changed - Route `connection-folders` creation through a focused storage helper. - Insert default connection folders atomically at `sortOrder`/`order` `0`. - Shift existing connection folders down during default create. - Preserve explicit positive `sortOrder` or legacy `order` values without shifting existing rows. - Add focused Rust coverage for default top insertion, explicit order, legacy `order`, and reorder validation expectations. ## Refactor impact Primary owner: Rust storage Impact areas reviewed: - Connection folder create defaults - Connection folder reorder validation - Connection folder delete/unfile behavior - Profile export/import preservation for connection folders Boundary notes: - No React, engine, shared API, or remote-runtime boundary changes. - Change stays inside the Rust storage command owner. Pressure points touched: - None. ## Validation - [ ] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [ ] Full `pnpm check` passes before PR push/handoff - [ ] Human/manual validation completed by contributor or reviewer ### Manual verification notes - `cargo test --manifest-path src-tauri/Cargo.toml connection_folder` passed: 7 tests. - `cargo check --manifest-path src-tauri/Cargo.toml` passed. - `pnpm check` passed, including line endings, scratch, architecture, frontend typecheck, Rust workspace check, docs, discovery metadata, launcher safety, and warning-only unused-code scan. - `git diff --check` passed. - No browser/manual UI verification performed; change is storage-only. ## Feature Discoverability Check exactly one: - [ ] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [ ] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - Bugfix only; no new discoverable feature or workflow. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence N/A: storage-only behavior fix. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:17:37 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5590
No description provided.