[PR #2126] [MERGED] Add profile import progress reporting #5454

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

📋 Pull Request Information

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

Base: refactor ← Head: feature/profile-import-progress


📝 Commits (2)

  • 45f055a Add profile import progress reporting
  • 31152b7 Address profile import review findings

📊 Changes

10 files changed (+1009 additions, -70 deletions)

View changed files

📝 src-tauri/src/commands/storage/commands/profile.rs (+43 -0)
📝 src-tauri/src/commands/storage/profile.rs (+390 -11)
📝 src-tauri/src/commands/storage/profile/legacy.rs (+164 -5)
📝 src-tauri/src/commands/storage/profile/zip_import.rs (+40 -10)
📝 src-tauri/src/http_dispatch.rs (+1 -0)
📝 src-tauri/src/http_server.rs (+84 -0)
📝 src-tauri/src/lib.rs (+1 -0)
📝 src/features/shell/settings/components/ProfileImportSection.tsx (+69 -17)
📝 src/shared/api/profile-api.ts (+167 -4)
📝 src/shared/api/remote-runtime.ts (+50 -23)

📄 Description

Linked issue

N/A

Why this change

  • Profile imports can take long enough that the Settings UI needs real progress feedback instead of a generic busy state.
  • Progress transport failures must not be able to turn an already-committed import into a reported failure or asset rollback.

What changed

  • Added progress event plumbing for selected local profile file imports and remote profile upload imports.
  • Updated the Settings profile import UI to show import phase, item counts, elapsed time, ETA, summaries, warnings, and completion state.
  • Made post-commit progress delivery best-effort so dropped channels do not corrupt import outcome reporting.
  • Added Rust regression coverage for native and legacy post-commit progress delivery failures.

Refactor impact

Primary owner:

Rust storage/profile import, shared API runtime adapter, and shell Settings UI.

Impact areas reviewed:

  • Native JSON and ZIP profile import.
  • Legacy profile table import.
  • Profile asset staging, install, commit, and rollback behavior.
  • Tauri profile import command registration.
  • Hostable runtime profile upload SSE route.
  • Shared profile API wrapper and remote runtime event parsing.
  • Settings profile import UI consumer.

Boundary notes:

  • Feature UI continues to call the typed profileApi wrapper.
  • Shared API owns the Tauri channel and remote runtime event-stream boundary.
  • Rust command and HTTP route entrypoints delegate to the storage profile owner.
  • Engine code is not touched.

Pressure points touched:

  • src-tauri/src/lib.rs command registration.
  • Profile import modules under src-tauri/src/commands/storage/profile*.
  • src-tauri/src/http_server.rs dedicated profile import event route.

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 post_commit_progress
  • cargo test --manifest-path src-tauri/Cargo.toml progress_events
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace
  • pnpm typecheck
  • pnpm check:architecture
  • pnpm check
  • Live Tauri profile import QA not run.
  • Live remote-runtime SSE import QA not run.

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, 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:

  • Existing Settings profile import entry point remains unchanged; this adds progress feedback and safer event handling to the same 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

No docs changes were made because this does not change setup, architecture guidance, or a documented user procedure.

UI evidence

Not captured. The UI change is covered by type/build checks only; live Tauri verification remains for reviewer/manual QA.


🔄 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/2126 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 6/4/2026 **Status:** ✅ Merged **Merged:** 6/4/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `refactor` ← **Head:** `feature/profile-import-progress` --- ### 📝 Commits (2) - [`45f055a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/45f055a959b840b493d4048570695891c903a0af) Add profile import progress reporting - [`31152b7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/31152b704ca609c3ef545e7b4c29b6a93aa15cf7) Address profile import review findings ### 📊 Changes **10 files changed** (+1009 additions, -70 deletions) <details> <summary>View changed files</summary> 📝 `src-tauri/src/commands/storage/commands/profile.rs` (+43 -0) 📝 `src-tauri/src/commands/storage/profile.rs` (+390 -11) 📝 `src-tauri/src/commands/storage/profile/legacy.rs` (+164 -5) 📝 `src-tauri/src/commands/storage/profile/zip_import.rs` (+40 -10) 📝 `src-tauri/src/http_dispatch.rs` (+1 -0) 📝 `src-tauri/src/http_server.rs` (+84 -0) 📝 `src-tauri/src/lib.rs` (+1 -0) 📝 `src/features/shell/settings/components/ProfileImportSection.tsx` (+69 -17) 📝 `src/shared/api/profile-api.ts` (+167 -4) 📝 `src/shared/api/remote-runtime.ts` (+50 -23) </details> ### 📄 Description ## Linked issue N/A ## Why this change - Profile imports can take long enough that the Settings UI needs real progress feedback instead of a generic busy state. - Progress transport failures must not be able to turn an already-committed import into a reported failure or asset rollback. ## What changed - Added progress event plumbing for selected local profile file imports and remote profile upload imports. - Updated the Settings profile import UI to show import phase, item counts, elapsed time, ETA, summaries, warnings, and completion state. - Made post-commit progress delivery best-effort so dropped channels do not corrupt import outcome reporting. - Added Rust regression coverage for native and legacy post-commit progress delivery failures. ## Refactor impact Primary owner: Rust storage/profile import, shared API runtime adapter, and shell Settings UI. Impact areas reviewed: - Native JSON and ZIP profile import. - Legacy profile table import. - Profile asset staging, install, commit, and rollback behavior. - Tauri profile import command registration. - Hostable runtime profile upload SSE route. - Shared profile API wrapper and remote runtime event parsing. - Settings profile import UI consumer. Boundary notes: - Feature UI continues to call the typed `profileApi` wrapper. - Shared API owns the Tauri channel and remote runtime event-stream boundary. - Rust command and HTTP route entrypoints delegate to the storage profile owner. - Engine code is not touched. Pressure points touched: - `src-tauri/src/lib.rs` command registration. - Profile import modules under `src-tauri/src/commands/storage/profile*`. - `src-tauri/src/http_server.rs` dedicated profile import event route. ## 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 post_commit_progress` - `cargo test --manifest-path src-tauri/Cargo.toml progress_events` - `cargo check --manifest-path src-tauri/Cargo.toml --workspace` - `pnpm typecheck` - `pnpm check:architecture` - `pnpm check` - Live Tauri profile import QA not run. - Live remote-runtime SSE import QA not run. ## 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, media capability, or advanced tool. - [x] 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: - Existing Settings profile import entry point remains unchanged; this adds progress feedback and safer event handling to the same 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 No docs changes were made because this does not change setup, architecture guidance, or a documented user procedure. ## UI evidence Not captured. The UI change is covered by type/build checks only; live Tauri verification remains for reviewer/manual QA. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:16:28 +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#5454
No description provided.