Skip to content

Show busy spinners for Service Keys page operations - #5470

Merged
norman-abramovitz merged 1 commit into
cloudfoundry:developfrom
nabramovitz:fix/service-key-create-spinner
Jun 17, 2026
Merged

Show busy spinners for Service Keys page operations#5470
norman-abramovitz merged 1 commit into
cloudfoundry:developfrom
nabramovitz:fix/service-key-create-spinner

Conversation

@nabramovitz

Copy link
Copy Markdown
Contributor

Problem

On the Service Keys page, every busy state surfaced as text only — "Loading
service keys…", "Creating…", "Deleting…". On a slow async-job create that reads
as an unresponsive page (you click Create, nothing visibly happens for a while).

Fix

Add an animate-spin indicator to all four busy states so each reads as busy:

  • list load (GET)
  • credential load when expanding a key (GET)
  • create
  • delete

Each spinner inherits the surrounding text colour via border-current (muted on
the load messages, white on the primary Create button, danger on Delete), so it
matches its context. Display-only — the async-job flow is unchanged.

CF service keys have no update/edit operation (create / view-credentials /
delete only), so there is no edit spinner.

Tests

Adds the component's first unit spec, covering all four states (each asserts the
spinner appears only while its flag is set). Verified live in a running dev
instance: create shows "Creating…" with the spinner, and delete cleans up.

Full make check gate green (592 frontend test files, production build).

The Service Keys page surfaced its busy states as text only ('Loading…',
'Creating…', 'Deleting…'). On a slow async-job create that read as an
unresponsive page. Add an animate-spin indicator to every busy state — list
load, credential load, create, and delete — each inheriting the surrounding
text colour via border-current. Adds the component's first unit spec covering
all four states.

CF service keys have no update/edit operation (create/view/delete only), so
there is no edit spinner.

@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 and Live verification

@norman-abramovitz
norman-abramovitz merged commit be70b04 into cloudfoundry:develop Jun 17, 2026
12 checks passed
@nabramovitz
nabramovitz deleted the fix/service-key-create-spinner branch June 17, 2026 20:00
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.

2 participants