Skip to content

feat(apps): explain blocked updates and dependency refusals - #585

Merged
RentnerKev merged 3 commits into
mainfrom
rentner/feat/explain-blocked-updates
Nov 26, 2026
Merged

RentnerKev merged 3 commits into
mainfrom
rentner/feat/explain-blocked-updates

Conversation

@RentnerKev

Copy link
Copy Markdown
Member

Summary

Two gaps from the #456 acceptance audit, criterion 2: unsupported versions, extra grants and blocked dependencies must be explained.

Installed apps say why a newer release is not offered

Before After
The page hid every catalog entry of an installed app, and the manager offers only eligible updates. A newer release that needs grants or does not fit the appliance simply never appeared. Each installed row names the newest listed release when the appliance cannot offer it, with the reason: "Version 1.0.2 requires additional grants, so it is not offered." or "Version 2.0.0 is incompatible with this appliance, so it is not offered." An offered older update stays available next to the note.
  • catalogBlockedRelease and compareCatalogVersions in web/src/lib/AppCatalog/installationActions.ts use semantic version precedence, including prereleases.
  • No manager change is needed: the signed listing already carries availability for every release.

Dependency refusals get their own code

  • ResourceBusy now maps to a new dependencyBlocked lifecycle failure in core/src/app_manager/catalog.rs, instead of conflict. ResourceBusy comes from:
    • the gateway's 409 on removable / purge-data (a proxy host the app owns, a running app operation, a live generation);
    • the provider-dependency marker.
  • AlreadyExists stays conflict.
  • contract.ts accepts the new code, and all eight locales explain it.
  • The conflict text no longer mentions dependencies.

Related issue

Refs #456 (criterion 2)

Type of change

  • Bug fix
  • New feature
  • Refactoring
  • Documentation
  • CI / tooling
  • Dependency update
  • Other

Testing

  • Rust: dependency_refusals_are_reported_apart_from_conflicts checks that ResourceBusy becomes dependencyBlocked and AlreadyExists stays conflict, with the installation still running. Ran the focused app_manager::{lifecycle,catalog}::tests, plus cargo clippy --all-targets --all-features -D warnings and cargo fmt --check on Linux (Rust 1.99.1).
  • Web, new tests:
    • installation-actions.test.ts: version precedence, plus the blocked-release choice and when it stays silent.
    • Two UI tests in catalog-install-ui.test.tsx: grants-required and incompatible notes next to an offered update, and a dependency-blocked uninstall shown apart from a conflict.
    • A contract case in catalog.test.ts.
  • Web, checks run: the AppCatalog and language test files, bun --check typecheck, and oxlint with type-aware rules.

Checklist

  • I tested the relevant functionality.
  • Existing tests pass. (CI pending)
  • I added or updated tests where appropriate.
  • This PR does not include secrets, credentials, production data, or private certificates/keys.
  • I updated documentation where necessary. Not needed.
  • I linked the relevant issue for a feature or fix, or explained why no issue is needed.

Breaking changes

None. The native lifecycle error set gains dependencyBlocked. The web contract that reads it ships in the same change.

Screenshots

None.

🤖 Generated with Claude Code

- Installed apps name the newest listed release that the appliance cannot
  offer, with the reason: additional grants or an incompatible appliance.
  Previously such releases were silently missing from the update offer.
- A lifecycle refusal caused by a dependency (a proxy host the app manages,
  a running app operation, or provider dependencies) is reported as
  `dependencyBlocked` instead of a generic conflict. The conflict message no
  longer mentions dependencies.

Refs #456

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between e083198 and bfd954d.

Files selected for processing: 18

  • core/src/app_manager/catalog.rs
  • core/tests/private/app_manager/catalog_lifecycle.rs
  • web/src/features/AppCatalog/Components/InstalledAppCard.tsx
  • web/src/features/AppCatalog/Hooks/useAppCatalogLogic.ts
  • web/src/features/AppCatalog/Types/app-catalog.types.ts
  • web/src/lib/AppCatalog/contract.ts
  • web/src/lib/AppCatalog/installationActions.ts
  • web/src/lib/Language/Locales/de.json
  • web/src/lib/Language/Locales/en.json
  • web/src/lib/Language/Locales/es.json
  • web/src/lib/Language/Locales/fr.json
  • web/src/lib/Language/Locales/it.json
  • web/src/lib/Language/Locales/nl.json
  • web/src/lib/Language/Locales/pl.json
  • web/src/lib/Language/Locales/pt.json
  • web/src/tests/features/AppCatalog/catalog-install-ui.test.tsx
  • web/src/tests/lib/AppCatalog/installation-actions.test.ts
  • web/src/tests/server/AppRuntime/catalog.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@RentnerKev
RentnerKev merged commit b754ad7 into main Nov 26, 2026
32 checks passed
@RentnerKev
RentnerKev deleted the rentner/feat/explain-blocked-updates branch November 26, 2026 18:58
RentnerKev added a commit that referenced this pull request Nov 26, 2026
Keep both the dependency refusal code and the blocked-release notes from
#585 next to the outage kinds, cached flag and verified names of this
branch. The installation action fixtures now carry `name` and `cached`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant