[PR #893] [MERGED] Add profile import progress feedback #4827

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/893
Author: @cha1latte
Created: 5/15/2026
Status: ✅ Merged
Merged: 5/15/2026
Merged by: @cha1latte

Base: staging ← Head: feat/issue-792-import-progress-v2


📝 Commits (1)

  • 033faa0 Add profile import progress feedback

📊 Changes

4 files changed (+754 additions, -336 deletions)

View changed files

➕ docs/pr-evidence/issue-792/profile-import-progress.png (+0 -0)
➕ docs/pr-evidence/issue-792/profile-import-success.png (+0 -0)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+311 -20)
📝 packages/server/src/routes/backup.routes.ts (+443 -316)

📄 Description

Linked issue

Closes #792

Why this change

  • Profile imports can take long enough, especially on mobile or with large data files, that users cannot tell whether the import started, stalled, or finished.

What changed

  • Adds progress-stream support to /api/backup/import-profile when the client requests text/event-stream, while preserving the existing JSON response for non-streaming callers.
  • Emits profile import lifecycle updates for start, per-item progress, completion, and error states.
  • Shows Settings > Import profile progress with a disabled importing button, progress bar, elapsed time, ETA when calculable, imported-so-far counts, and success/error feedback.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Codex ran pnpm check; it passed.
  • Codex ran a direct SSE profile import proof against /api/backup/import-profile with a 1500-file profile envelope. The stream emitted started, 1500 progress events, then done.
  • Codex ran the app locally and used browser automation to import the same profile through Settings > Import. The UI showed in-progress count/ETA/imported-so-far feedback, then a completion state with the final 1500/1500 count.
  • Codex ran Bunny review on the current diff before commit; Bunny passed after fixing the success-state count to preserve the real total.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

No docs, schema, dependency, version, or release files were changed.

UI evidence (if applicable)

In-progress profile import feedback:

Profile import progress

Completed profile import feedback:

Profile import success


🔄 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/893 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/15/2026 **Status:** ✅ Merged **Merged:** 5/15/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `staging` ← **Head:** `feat/issue-792-import-progress-v2` --- ### 📝 Commits (1) - [`033faa0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/033faa01afd303ab4870d95257da4ac950e0e700) Add profile import progress feedback ### 📊 Changes **4 files changed** (+754 additions, -336 deletions) <details> <summary>View changed files</summary> ➕ `docs/pr-evidence/issue-792/profile-import-progress.png` (+0 -0) ➕ `docs/pr-evidence/issue-792/profile-import-success.png` (+0 -0) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+311 -20) 📝 `packages/server/src/routes/backup.routes.ts` (+443 -316) </details> ### 📄 Description ## Linked issue Closes #792 ## Why this change - Profile imports can take long enough, especially on mobile or with large data files, that users cannot tell whether the import started, stalled, or finished. ## What changed - Adds progress-stream support to `/api/backup/import-profile` when the client requests `text/event-stream`, while preserving the existing JSON response for non-streaming callers. - Emits profile import lifecycle updates for start, per-item progress, completion, and error states. - Shows Settings > Import profile progress with a disabled importing button, progress bar, elapsed time, ETA when calculable, imported-so-far counts, and success/error feedback. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Codex ran `pnpm check`; it passed. - Codex ran a direct SSE profile import proof against `/api/backup/import-profile` with a 1500-file profile envelope. The stream emitted `started`, 1500 `progress` events, then `done`. - Codex ran the app locally and used browser automation to import the same profile through Settings > Import. The UI showed in-progress count/ETA/imported-so-far feedback, then a completion state with the final `1500/1500` count. - Codex ran Bunny review on the current diff before commit; Bunny passed after fixing the success-state count to preserve the real total. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) No docs, schema, dependency, version, or release files were changed. ## UI evidence (if applicable) In-progress profile import feedback: ![Profile import progress](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/033faa01afd303ab4870d95257da4ac950e0e700/docs/pr-evidence/issue-792/profile-import-progress.png) Completed profile import feedback: ![Profile import success](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/033faa01afd303ab4870d95257da4ac950e0e700/docs/pr-evidence/issue-792/profile-import-success.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:10:59 +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#4827
No description provided.