Skip to content

Preview service plan parameters from the marketplace Plans tab - #5497

Merged
norman-abramovitz merged 3 commits into
cloudfoundry:developfrom
nabramovitz:feat/5493-plan-parameter-preview
Jun 25, 2026
Merged

Preview service plan parameters from the marketplace Plans tab#5497
norman-abramovitz merged 3 commits into
cloudfoundry:developfrom
nabramovitz:feat/5493-plan-parameter-preview

Conversation

@nabramovitz

Copy link
Copy Markdown
Contributor

The marketplace Plans tab lists plans at the summary tier, which omits the broker-advertised parameter schemas. A user evaluating a service therefore could not see what a plan would prompt for without committing to the create-instance wizard.

This adds a View parameters action to each plan row. It lazily fetches the selected plan at the details tier (the only tier that carries schemas) and shows its create-instance parameter schema as a read-only tree, or "This plan has no configurable parameters" when the broker advertises none. The summary-tier list fetch is unchanged, so the list stays light — the schema is pulled only when asked, one plan at a time.

While verifying in dark mode, the shared json-viewer component turned out to hard-code its tree colors for the light theme (keys a fixed purple, value fallback black), leaving them low-contrast or invisible on dark. Its structural colors now resolve through the content theme tokens, which also fixes the Kubernetes resource viewer and Helm release values views that share the component.

Verified in a running stack against an example broker (free/rich schema and paid/deeply-nested schema) and a real Blacksmith broker plan (no schema), in both light and dark themes.

Closes #5493

The Plans tab lists plans at the summary tier, which omits the
broker-advertised parameter schemas — so a user could not see what a
plan would prompt for without committing to the create wizard. Add a
View parameters action to each plan's row menu that lazily fetches the
plan at the details tier and shows its create-instance schema as a
read-only tree (or 'no configurable parameters' when none is set).

Closes cloudfoundry#5493
The JSON tree's structural colors (keys, value fallback, separators,
toggler) were hard-coded for the light theme — keys a fixed purple and
values black — leaving them low-contrast or invisible on the dark theme.
Route them through the content theme tokens so the tree is legible in
both themes; the syntax-accent hues stay static. Also improves the
Kubernetes resource viewer and Helm release values views, which share
this component.

@norman-abramovitz norman-abramovitz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@norman-abramovitz
norman-abramovitz merged commit 695a87c into cloudfoundry:develop Jun 25, 2026
12 checks passed
@nabramovitz
nabramovitz deleted the feat/5493-plan-parameter-preview branch June 29, 2026 07:29
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.

Surface service-plan parameter-schema status (badge + read-only preview) on marketplace plan cards

2 participants