Skip to content

🌱 test(web): add unit tests for untested components - #24665

Merged
hivecommons-hive[bot] merged 1 commit into
mainfrom
scanner/fix-24663
Oct 28, 2026
Merged

hivecommons-hive[bot] merged 1 commit into
mainfrom
scanner/fix-24663

Conversation

@hivecommons-hive

@hivecommons-hive hivecommons-hive Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Adds unit tests for several components flagged without coverage. Fixes #24663 — remaining listed components left for follow-up PRs per the issue's keep-PRs-small guidance; Auto-QA re-detects them next run.

— hive: agent=scanner backend=copilot model=claude-fable-5 copilot=1.0.88 requested_by=@clubanderson

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
@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 eeshaansa 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 dco-signoff: yes Indicates the PR's author has signed the DCO. label Oct 28, 2026
@netlify

netlify Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for kubestellarconsole ready!

Name Link
🔨 Latest commit b84cd7a
🔍 Latest deploy log https://app.netlify.com/projects/kubestellarconsole/deploys/6ae1535946a7a82ccf66eca3
😎 Deploy Preview https://deploy-preview-24665.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.

@github-actions github-actions Bot added the ai-generated Pull request generated by AI label Oct 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

👋 Hey @hivecommons-hive[bot] — 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.

@kubestellar-prow kubestellar-prow Bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Oct 28, 2026
@hivecommons-hive

Copy link
Copy Markdown
Contributor Author

hive/awaiting-ci: CI pending — sweep will merge when green.


🐝 Hive Agent: scanner | Instance: hosted-kubestellar-console-4vkt | SHA: 9da56969d06ad0c3630e893907f9cb41d810b74f

— hive: agent=scanner backend=copilot model=claude-fable-5 copilot=1.0.88

@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.

@hivecommons-hive hivecommons-hive Bot added author/hive This repository's own hive (the App or one of its agent lanes) authored this PR dco All commits are DCO signed-off role/trusted Author is trusted for unattended merge (trusted-author role or registry/claim tier in require_tiers) stage/050-review-pending Review swarm requested; awaiting a verdict for the current head labels Oct 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

♿ Accessibility Audit (WCAG 2.1 AA)

✅ No WCAG 2.1 AA violations detected in audited routes.


Powered by axe-core. Target: WCAG 2.1 AA compliance.

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Read both components at head b84cd7a against the new tests; the tests describe real behavior, not assumed behavior:

  • BatchSummary.test.tsx matches BatchSummary.tsx: the progressbar's aria-valuenow/min/max and the fill color logic (completed && failed === 0 → --s-success, failed > 0 → --s-warning, else --s-info) are exactly what the component renders, and the four breakdown items (✓ ✗ – ⊙) are each guarded by > 0 as the zero/partial-count tests assert.
  • ProviderSelector.test.tsx matches ProviderSelector.tsx: button id stellar-provider-selector-btn, auto label when session is null, unavailable CLI agents filtered by .filter(a => a.available), user/global provider mapping, and the error + Retry path via loadProviders.

All test shards, coverage-gate, and detect-untested are green. The Fixes #24663 with deliberately partial scope is explained in the body (issue's keep-PRs-small guidance; Auto-QA re-detects the rest). Looks correct to me — maintainer approval is all that's left.

— hive: agent=reviewer backend=copilot model=claude-fable-5 copilot=1.0.88

@hivecommons-hive
hivecommons-hive Bot merged commit 3cd10cb into main Oct 28, 2026
59 of 60 checks passed
@kubestellar-prow
kubestellar-prow Bot deleted the scanner/fix-24663 branch October 28, 2026 02:24
@hivecommons-hive

Copy link
Copy Markdown
Contributor Author
Evidence bundle `#24665b84cd7a` sha256:597b771c3f40f568da2dfe6c71b4da7882a3efed0c39dfbbae02e05440367313 — download from the dashboard or `hivectl review evidence #24665`.

@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

@hivecommons-hive hivecommons-hive Bot removed role/trusted Author is trusted for unattended merge (trusted-author role or registry/claim tier in require_tiers) stage/050-review-pending Review swarm requested; awaiting a verdict for the current head labels Oct 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge build verification passed ✅

Both Go and frontend builds compiled successfully against merge commit 3cd10cbf2ca8e7f2a4c835fc28c56d791989fbab.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Post-Merge Verification: passed

Commit: 3cd10cbf2ca8e7f2a4c835fc28c56d791989fbab
Specs run: smoke.spec.ts
Report: https://github.com/kubestellar/console/actions/runs/40620691387

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 author/hive This repository's own hive (the App or one of its agent lanes) authored this PR dco All commits are DCO signed-off dco-signoff: yes Indicates the PR's author has signed the DCO. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. tier/1-lightweight

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Auto-QA] Components missing test coverage

0 participants