[PR #582] [MERGED] Clarify updater apply availability #4683

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

📋 Pull Request Information

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

Base: main ← Head: fix/issue-537-updater-availability


📝 Commits (2)

  • e380f7f Clarify updater apply availability
  • 1dbe665 Address updater count review feedback

📊 Changes

4 files changed (+69 additions, -18 deletions)

View changed files

➕ docs/pr-evidence/issue-537/disabled-apply-desktop.png (+0 -0)
➕ docs/pr-evidence/issue-537/disabled-apply-mobile.png (+0 -0)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+41 -18)
📝 packages/server/src/routes/updates.routes.ts (+28 -0)

📄 Description

Linked issue

Closes #537

Why this change

  • Users could see update counts and an Apply Update action even when the running install cannot apply updates from the browser. That made expected launcher/manual-update flows look like a broken updater.

What changed

  • Added update-apply capability fields to /api/updates/check so the frontend can know when browser-side apply is disabled or unsupported before a user clicks.
  • Updated the Advanced settings updater card to hide Apply Update when apply is unavailable and show install-specific guidance instead.
  • Clarified that commit counts compare the running build to origin/main and may include unreleased development commits, not just tagged releases.

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 successfully.
  • Codex checked the live branch API response from http://127.0.0.1:7861/api/updates/check and confirmed it returned applyAvailable, updatesApplyEnabled, and applyUnavailableReason.
  • Codex ran a local browser verification against http://127.0.0.1:5174 with an intercepted update-check response simulating 26 commits behind and disabled apply. It confirmed:
    • 26 commits behind origin/main rendered.
    • Commit-count explanatory copy rendered.
    • Disabled browser-apply guidance rendered.
    • No Apply Update button rendered.
  • Codex captured desktop and mobile screenshots for the disabled-apply state.
  • Not verified by Codex: Docker/Podman runtime behavior.
  • Not verified by Codex: human checklist items above remain for the contributor to tick after their own verification.

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, version, or release files were changed. This is inline updater UI/API clarity for an existing feature.

UI evidence (if applicable)

Disabled apply state, desktop:

Disabled apply updater UI on desktop

Disabled apply state, mobile:

Disabled apply updater UI on mobile

Summary by CodeRabbit

Release Notes

  • Improvements
    • Update status messaging now displays commit count information when updates aren't immediately available
    • Enhanced distinction between update scenarios where apply is disabled versus unavailable
    • Added contextual guidance tailored to specific installation types when updates cannot be applied

🔄 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/582 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/9/2026 **Status:** ✅ Merged **Merged:** 5/9/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `main` ← **Head:** `fix/issue-537-updater-availability` --- ### 📝 Commits (2) - [`e380f7f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e380f7fc9cb558e84b074afda4f8409764e05a7e) Clarify updater apply availability - [`1dbe665`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1dbe6655ccde8f8fdf16e63832cbedc7e48d9596) Address updater count review feedback ### 📊 Changes **4 files changed** (+69 additions, -18 deletions) <details> <summary>View changed files</summary> ➕ `docs/pr-evidence/issue-537/disabled-apply-desktop.png` (+0 -0) ➕ `docs/pr-evidence/issue-537/disabled-apply-mobile.png` (+0 -0) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+41 -18) 📝 `packages/server/src/routes/updates.routes.ts` (+28 -0) </details> ### 📄 Description ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes #537 ## Why this change <!-- What user problem, bug, or goal does this solve? --> - Users could see update counts and an Apply Update action even when the running install cannot apply updates from the browser. That made expected launcher/manual-update flows look like a broken updater. ## What changed <!-- List the key changes in this PR --> - Added update-apply capability fields to `/api/updates/check` so the frontend can know when browser-side apply is disabled or unsupported before a user clicks. - Updated the Advanced settings updater card to hide `Apply Update` when apply is unavailable and show install-specific guidance instead. - Clarified that commit counts compare the running build to `origin/main` and may include unreleased development commits, not just tagged releases. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [ ] `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 <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ?? If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - Codex ran `pnpm check` successfully. - Codex checked the live branch API response from `http://127.0.0.1:7861/api/updates/check` and confirmed it returned `applyAvailable`, `updatesApplyEnabled`, and `applyUnavailableReason`. - Codex ran a local browser verification against `http://127.0.0.1:5174` with an intercepted update-check response simulating `26` commits behind and disabled apply. It confirmed: - `26 commits behind origin/main` rendered. - Commit-count explanatory copy rendered. - Disabled browser-apply guidance rendered. - No `Apply Update` button rendered. - Codex captured desktop and mobile screenshots for the disabled-apply state. - Not verified by Codex: Docker/Podman runtime behavior. - Not verified by Codex: human checklist items above remain for the contributor to tick after their own verification. ## 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, version, or release files were changed. This is inline updater UI/API clarity for an existing feature. ## UI evidence (if applicable) Disabled apply state, desktop: ![Disabled apply updater UI on desktop](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/e380f7fc9cb558e84b074afda4f8409764e05a7e/docs/pr-evidence/issue-537/disabled-apply-desktop.png) Disabled apply state, mobile: ![Disabled apply updater UI on mobile](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/e380f7fc9cb558e84b074afda4f8409764e05a7e/docs/pr-evidence/issue-537/disabled-apply-mobile.png) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **Improvements** - Update status messaging now displays commit count information when updates aren't immediately available - Enhanced distinction between update scenarios where apply is disabled versus unavailable - Added contextual guidance tailored to specific installation types when updates cannot be applied <!-- 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:09:47 +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#4683
No description provided.