Skip to content

Console: the create-workspace dialog shows the unpaid-organization limit refusal (UNPAID_ORGANIZATION_LIMIT_REACHED) with its next step #34221

Open

Description

@objectstack-fleet

repo:cloud#1 · os-warren · session_01JQwxbYK6SZCmyzbGnrvmkk

Filing gate: ① the console half of objectstack-ai/cloud#4308 (maintainer ruling 6904224158 on that card), named as an objectstack carrier in its contract review (objectstack-ai/cloud PR #4626, record 6904645818). Dedupe: UNPAID_ORGANIZATION_LIMIT_REACHED, organization limit console find #32043 (the member-limit sibling) and nothing on this code.
Consumer: objectstack-ai/cloud#4308 (hosted control plane).

维护者速读

  • 要做的:控制台「新建工作区」对话框认出云端新的拒绝码 UNPAID_ORGANIZATION_LIMIT_REACHED,显示服务端给的本地化说明和下一步(升级到 Team),不再显示通用错误。
  • 为什么:裁定后每个账号最多 2 个不付费组织(免费加开发者),云端第三次创建会返回这个新码;控制台现在只认 better-auth 的 YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS。
  • 需要你做的:无。

Change

  1. ui/packages/app-shell/src/console/organizations/orgErrorMessage.ts maps UNPAID_ORGANIZATION_LIMIT_REACHED the way it maps the existing organization-limit code. Prefer the producer's localized message (ruling C on Studio: an unconfigured nav item vanishes from the navigation editor after reload while still counted as a pending draft; publish dialog shows raw type names in zh #32440, Platform: user-facing refusal and advisory text comes back in the request's language, composed by its producer (ruling C on #32440, #32043) #32654); fall back to a console string in every console locale. Show details.next_step as an action where the host gives one.
  2. Optional, if the host exposes it: the dialog says before the click that the account is at its unpaid limit. Only do this if discovery or /auth/config states it; do not guess the number.
  3. Done when a test pins the mapped message for the new code and the old code still maps as before.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clouddomain:uienhancementpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions