Skip to content

Commit 4a23edd

Browse files
committed
chore: changeset for the declared upgradeUrl links
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzfrh8TiPJf1i2kMSoa
1 parent c42d2ed commit 4a23edd

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
---
4+
5+
fix(app-shell): the upgrade links open the runtime's declared `upgradeUrl`
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`GET /api/v1/runtime/config` already serves a top-level `upgradeUrl` when the host declares one: the absolute address of the control plane's upgrade or billing page. The Console never read it, so three upgrade links opened the Cloud origin instead. On Cloud, the origin redirects to the console root, and a manager whose only organization has a running environment lands back in that environment, so the link never reaches billing.
11+
12+
The Console now reads `upgradeUrl` as served (an absent, empty or non-string value stays absent; nothing is composed in its place) and exposes it as `getUpgradeUrl()`. These links open it when it is declared:
13+
14+
- the storage-full banner's "Upgrade to continue";
15+
- the AI usage indicator's call to action;
16+
- the AI chat's quota upgrade button.
17+
18+
When the runtime declares no `upgradeUrl`, each link behaves as before: it opens `cloudConsoleUrl()`, and it is not drawn on a runtime that names no upstream cloud.

0 commit comments

Comments
 (0)