Skip to content

[scanner] fix: add missing loading states on async actions#19417

Merged
clubanderson merged 4 commits into
mainfrom
scanner/fix-19409
Jun 22, 2026
Merged

[scanner] fix: add missing loading states on async actions#19417
clubanderson merged 4 commits into
mainfrom
scanner/fix-19409

Conversation

@clubanderson

Copy link
Copy Markdown
Collaborator

Fixes #19409

Adds loading indicators and disabled states to async action buttons that were missing feedback during operations:

  • ClusterOPAModal: disable toggle-mode button with spinner while patching enforcement action; disable and show spinner on delete button while deleting policy
  • TeamMemberManager: disable Add Member button with loading spinner while adding; pass isLoading to ConfirmDialog while removing a member

Copilot AI review requested due to automatic review settings June 22, 2026 16:18
@kubestellar-prow kubestellar-prow Bot added the dco-signoff: yes Indicates the PR's author has signed the DCO. label Jun 22, 2026
@netlify

netlify Bot commented Jun 22, 2026

Copy link
Copy Markdown

Deploy Preview for kubestellarconsole ready!

Name Link
🔨 Latest commit dd3ec38
🔍 Latest deploy log https://app.netlify.com/projects/kubestellarconsole/deploys/6a3969f462692e0009534a61
😎 Deploy Preview https://deploy-preview-19417.console-deploy-preview.kubestellar.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@kubestellar-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign mikespreitzer for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubestellar-prow kubestellar-prow Bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 22, 2026
@github-actions github-actions Bot added the ai-generated Pull request generated by AI label Jun 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

👋 Hey @clubanderson — thanks for opening this PR!

🤖 This project is developed exclusively using AI coding assistants.

Please do not attempt to code anything for this project manually.
All contributions should be authored using an AI coding tool such as:

This ensures consistency in code style, architecture patterns, test coverage,
and commit quality across the entire codebase.


This is an automated message.

@github-actions

Copy link
Copy Markdown
Contributor

🐝 Hi @clubanderson! I'm kubestellar-hive[bot], an automation bot for this repo.

Trusted users — org members and contributors with write access — can mention @kubestellar-hive in a comment to trigger repo automation.
On issues, that mention queues an automated fix attempt. On pull requests, it records extra context for existing automation.
This is not an interactive Q&A bot, so mentions should be treated as requests for automation rather than a conversation.

Automation may take a moment to start, and follow-up happens through workflow activity rather than chat replies.

@github-actions

Copy link
Copy Markdown
Contributor

Auto Test Generator

The following new files have no corresponding test file:

  • web/src/components/cards/opa/ClusterOPAModal.tsx
  • web/src/components/teams/TeamMemberManager.tsx

Please add tests or apply the needs-tests label to track this PR.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Test Coverage Check

All new source files in this PR have corresponding test files.

Checked web/src/hooks/ and web/src/components/ against origin/main.

Copilot AI 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.

Pull request overview

This PR addresses missing UX feedback on async actions by adding loading indicators and disabling action buttons while requests are in-flight, reducing the chance of duplicate submissions and improving perceived responsiveness.

Changes:

  • Add loading/disabled state handling for “Add member” and “Remove member” flows in TeamMemberManager.
  • Add loading/disabled state handling for OPA policy mode toggling and policy deletion actions in ClusterOPAModal.

Note: build/lint are validated by CI on the PR for this repository.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
web/src/components/teams/TeamMemberManager.tsx Adds isAdding/isRemoving state and wires loading/disabled UI to add/remove member actions.
web/src/components/cards/opa/ClusterOPAModal.tsx Adds per-action loading state for toggle-mode and delete flows, including spinners and disabled buttons.

Comment thread web/src/components/teams/TeamMemberManager.tsx Outdated
Comment thread web/src/components/teams/TeamMemberManager.tsx Fixed
Copilot and others added 2 commits June 22, 2026 12:31
Add loading/disabled states to async action buttons that were missing
user feedback during operations:

- ClusterOPAModal: disable toggle-mode button with spinner while
  patching enforcement action; disable delete button with spinner
  while deleting policy
- TeamMemberManager: disable Add Member button with loading spinner
  while adding; pass isLoading to ConfirmDialog while removing member

Fixes #19409

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Copilot <copilot@github.com>
The className prop had a syntax error with the exclamation mark
outside the string quotes. This caused the frontend build to fail.

Signed-off-by: GitHub Copilot <copilot@github.com>
Signed-off-by: Copilot <copilot@github.com>
@clubanderson clubanderson merged commit 87f14c1 into main Jun 22, 2026
36 of 44 checks passed
@kubestellar-prow kubestellar-prow Bot deleted the scanner/fix-19409 branch June 22, 2026 17:30
@github-actions

Copy link
Copy Markdown
Contributor

Thank you for your contribution! Your PR has been merged.

Check out what's new:

Stay connected: Slack #kubestellar-dev | Multi-Cluster Survey

@github-actions

Copy link
Copy Markdown
Contributor

✅ Post-Merge Verification: passed

Commit: 87f14c13321e3c482c9052a63ca3be54d9b14419
Specs run: Dashboard.spec.ts smoke.spec.ts
Report: https://github.com/kubestellar/console/actions/runs/27971548574

@github-actions

Copy link
Copy Markdown
Contributor

Post-merge build verification passed

Both Go and frontend builds compiled successfully against merge commit 87f14c13321e3c482c9052a63ca3be54d9b14419.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-generated Pull request generated by AI dco-signoff: yes Indicates the PR's author has signed the DCO. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. tier/2-standard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Auto-QA] Missing loading states on async actions

2 participants