Skip to content

Add bulk resource actions to web UI - #923

Open
AsoTora wants to merge 3 commits into
controlplaneio-fluxcd:mainfrom
AsoTora:add-resource-bulk-actions
Open

Add bulk resource actions to web UI#923
AsoTora wants to merge 3 commits into
controlplaneio-fluxcd:mainfrom
AsoTora:add-resource-bulk-actions

Conversation

@AsoTora

@AsoTora AsoTora commented Jun 26, 2026

Copy link
Copy Markdown

Summary

  • Add selectable resource cards and a bulk action toolbar on the Resources page.
  • Support bulk reconcile, suspend, and resume by applying the existing resource action API to each selected resource.
  • Keep non-resource user actions out of POST /api/v1/resource/action validation.

Fixes #863.

Validation

  • make web-test
  • make web-build
  • KUBEBUILDER_ASSETS="$ASSETS" go test ./internal/web -count=1
  • make test
  • make lint

AI disclosure

Assisted-by: Hermes Agent/gpt-5.5

AsoTora and others added 3 commits June 26, 2026 15:17
Signed-off-by: Andrei Shvedau <AsoTora@users.noreply.github.com>
Assisted-by: Hermes Agent/gpt-5.5
Signed-off-by: Andrei Shvedau <AsoTora@users.noreply.github.com>
Assisted-by: Hermes Agent/gpt-5.5

@matheuscscp matheuscscp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for this PR!

How does it look like? Is there a screenshot?

// Validate action type
if !fluxcdv1.IsUserAction(actionReq.Action) {
// Validate action type.
if !isResourceAction(actionReq.Action) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice catch!

@matheuscscp

Copy link
Copy Markdown
Member

We can probably get this one in but we need some screenshots to start with

@AsoTora

AsoTora commented Jun 27, 2026

Copy link
Copy Markdown
Author

something like this

No resources selected — bulk actions disabled

No resources selected — bulk actions disabled

Two resources selected — bulk actions enabled

Two resources selected — bulk actions enabled

Select all visible resources — bulk actions enabled

Select all visible resources — bulk actions enabled

@stefanprodan

Copy link
Copy Markdown
Member

UI wise this doesn't look good to me, especially on mobile this now takes the whole view. We need to redesign the listing and integrate the actions into the status bar. Also why would we show selection and actions if RBAC does not allow it?

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.

Add bulk actions (reconcile, suspend, resume, delete) for selected resources in UI

3 participants