[PR #2132] [MERGED] Unify profile import progress API #5451

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

📋 Pull Request Information

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

Base: refactor ← Head: chore/profile-import-api-unify


📝 Commits (2)

  • 003d57c Unify profile import progress API
  • 6c7bbb0 Fix generation agent bubble lint

📊 Changes

4 files changed (+34 additions, -71 deletions)

View changed files

📝 Dockerfile (+1 -0)
📝 src/features/runtime/generation/hooks/use-generate.ts (+0 -13)
📝 src/features/shell/settings/components/ProfileImportSection.tsx (+4 -7)
📝 src/shared/api/profile-api.ts (+29 -51)

📄 Description

Linked issue

Closes https://github.com/Pasta-Devs/Marinara-Engine/issues/2108

Why this change

  • Follow-up to profile import progress reporting: the settings UI can call the normal profile import API methods while still passing progress handlers, and the Docker server build includes frontend sources needed by Rust compile-time checks.

What changed

  • Added progress options to profileApi.importProfileFile and profileApi.importProfileUpload, delegating to the existing streaming import paths.
  • Updated the profile import settings section to use the unified import methods instead of the explicit WithProgress methods.
  • Copied src/ into the Docker builder stage so Rust compile-time references to shared frontend sources are available.

Refactor impact

Primary owner:

  • Shared API / shell settings / hostable runtime Docker build.

Impact areas reviewed:

  • Profile import file-path import, remote upload import, remote import SSE route, managed asset URL invalidation, and Docker build context.

Boundary notes:

  • Feature code continues to call the focused src/shared/api/profile-api.ts wrapper.
  • The shared API wrapper remains the transport boundary between embedded Tauri and remote runtime profile import.
  • Docker change only adds build-context input needed by existing Rust include_str! checks.

Pressure points touched:

  • None of the listed pressure points were expanded. Profile import command registration was reviewed but not changed.

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

  • Ran git diff --check: clean.
  • Ran pnpm typecheck: passed.
  • Ran pnpm check:architecture: passed.
  • Ran pnpm check: passed, including line endings, architecture, frontend typecheck, Rust workspace cargo check, docs, discovery metadata, launcher safety, and unused-code checks.
  • Not run: full Docker image build.
  • Not run: manual native Tauri or remote-runtime profile import QA.

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:

  • N/A: this unifies existing profile import API calls and fixes Docker build context; it does not add a new discoverable feature.

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

  • Docs changes not needed; the existing Docker instructions stay accurate.

  • No release notes file exists in the repo.

UI evidence

Not included; this is API wiring/build-context cleanup with no visible UI layout change.

Summary by CodeRabbit

  • Refactor
    • Reorganized profile import and upload functionality to use structured option objects for consistent progress callback handling.
    • Updated build configuration for the Rust compilation stage.

🔄 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/2132 **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:** `chore/profile-import-api-unify` --- ### 📝 Commits (2) - [`003d57c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/003d57c198beec58773d63bec2c3be521585fe53) Unify profile import progress API - [`6c7bbb0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6c7bbb00c2f4d6225dcf5543b59614910ad4a83b) Fix generation agent bubble lint ### 📊 Changes **4 files changed** (+34 additions, -71 deletions) <details> <summary>View changed files</summary> 📝 `Dockerfile` (+1 -0) 📝 `src/features/runtime/generation/hooks/use-generate.ts` (+0 -13) 📝 `src/features/shell/settings/components/ProfileImportSection.tsx` (+4 -7) 📝 `src/shared/api/profile-api.ts` (+29 -51) </details> ### 📄 Description ## Linked issue Closes https://github.com/Pasta-Devs/Marinara-Engine/issues/2108 ## Why this change - Follow-up to profile import progress reporting: the settings UI can call the normal profile import API methods while still passing progress handlers, and the Docker server build includes frontend sources needed by Rust compile-time checks. ## What changed - Added progress options to `profileApi.importProfileFile` and `profileApi.importProfileUpload`, delegating to the existing streaming import paths. - Updated the profile import settings section to use the unified import methods instead of the explicit `WithProgress` methods. - Copied `src/` into the Docker builder stage so Rust compile-time references to shared frontend sources are available. ## Refactor impact Primary owner: - Shared API / shell settings / hostable runtime Docker build. Impact areas reviewed: - Profile import file-path import, remote upload import, remote import SSE route, managed asset URL invalidation, and Docker build context. Boundary notes: - Feature code continues to call the focused `src/shared/api/profile-api.ts` wrapper. - The shared API wrapper remains the transport boundary between embedded Tauri and remote runtime profile import. - Docker change only adds build-context input needed by existing Rust `include_str!` checks. Pressure points touched: - None of the listed pressure points were expanded. Profile import command registration was reviewed but not changed. ## 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 - Ran `git diff --check`: clean. - Ran `pnpm typecheck`: passed. - Ran `pnpm check:architecture`: passed. - Ran `pnpm check`: passed, including line endings, architecture, frontend typecheck, Rust workspace `cargo check`, docs, discovery metadata, launcher safety, and unused-code checks. - Not run: full Docker image build. - Not run: manual native Tauri or remote-runtime profile import QA. ## 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. - [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: - N/A: this unifies existing profile import API calls and fixes Docker build context; it does not add a new discoverable feature. ## 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 - Docs changes not needed; the existing Docker instructions stay accurate. - No release notes file exists in the repo. ## UI evidence Not included; this is API wiring/build-context cleanup with no visible UI layout change. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Reorganized profile import and upload functionality to use structured option objects for consistent progress callback handling. * Updated build configuration for the Rust compilation stage. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <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:27 +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#5451
No description provided.