Comfy-Org / Comfy-Org/ComfyUI_frontend

billing: project legacy Stripe reactivation through server capabilities

Open
#16,034 0 comments 0 reactions 1 assignee Claimed by @wei-hai View on GitHub
Dominant language
TypeScript
Stars
2k
Forks
699
Avg merge
1d 7h
Merged PRs (30d)
490

Description

## Problem / Goal

PR #15967 must fall back to client-derived subscription lifecycle policy because the server capabilities response does not project `can_reactivate` for `legacy_stripe` workspaces. That leaves frontend policy deciding when the server answer applies and risks the compatibility fallback becoming permanent.

The server capability should be authoritative for legacy-rail reactivation.

## Proposed Solution

- Coordinate the backend capability projection for `legacy_stripe` workspaces.
- Return the correct `can_reactivate` value from the capabilities endpoint.
- Once deployed, remove the frontend membership fallback and consume the generated capability directly.

## Acceptance Criteria

- The capabilities endpoint returns authoritative reactivation state for `legacy_stripe` workspaces.
- Frontend policy no longer branches to membership-derived reactivation permission.
- Generated contracts and focused frontend/backend tests cover legacy and workspace billing rails.
- Rollout order preserves compatibility while backend and frontend changes deploy.

Follow-up from the explicitly non-blocking review thread on #15967:
https://github.com/Comfy-Org/ComfyUI_frontend/pull/15967#discussion_r3862053299

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.