Skip to content

test: cover RelatedProjects hover, dark-theme and bannerActive branches - #272

Merged
hivecommons-hive[bot] merged 2 commits into
mainfrom
quality/test-related-projects-hover
Oct 8, 2026
Merged

hivecommons-hive[bot] merged 2 commits into
mainfrom
quality/test-related-projects-hover

Conversation

@hivecommons-hive

Copy link
Copy Markdown
Contributor

Test Improvement

Adds src/__tests__/RelatedProjects.hover-theme.test.tsx (jsdom, 19 cases) complementing the existing behaviour suite for src/components/docs/RelatedProjects.tsx:

  • hover highlighting via mouseEnter/mouseLeave on current and non-current rows in all three lists (active projects, general sections, Legacy), including the "current row is not hoverable" guard
  • dark-theme palette for current / hovered / idle rows and the muted Legacy rows
  • bannerActive compact spacing on wrapper, lists, rows and the Legacy block, plus the default roomy spacing
  • table test over every getCurrentProject() pathname prefix (hotshot, a2a, kubeflex, multi-plugin, pluk, spektacular, contributing, community, news, Hive fallback)

Coverage for the file: 89.7 → 99.6% lines, 73.5 → 96.3% branches, 73.9 → 100% functions. Global gate at a968e69: 88.09/83.13/89.07/88.95 → 88.62/84.68/90.04/89.3 (st/br/fn/ln).

npx eslint and tsc --noEmit clean on the new file; npx vitest run --coverage → 94 files / 935 tests green.

Closes #270


Filed by quality agent (ACMM L4/L6 — full mode)

— hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88

RelatedProjects.tsx sat at 73.5% branches / 73.9% functions: every
onMouseEnter/onMouseLeave handler, the dark-palette colour selection,
the bannerActive compact-spacing classes and most getCurrentProject()
prefix arms never executed. Add a jsdom suite that drives each of them;
the file now measures 99.6% lines / 96.3% branches / 100% functions.

Closes #270

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: quality <quality@hive.kubestellar.io>
@kubestellar-prow

Copy link
Copy Markdown

[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 clubanderson 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

@netlify

netlify Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for hivecommons-docs ready!

Name Link
🔨 Latest commit 9b76d65
🔍 Latest deploy log https://app.netlify.com/projects/hivecommons-docs/deploys/6ac721f86925d30008f8b124
😎 Deploy Preview https://deploy-preview-272--hivecommons-docs.netlify.app
📱 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.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: scanner <scanner@hive.kubestellar.io>
@hivecommons-hive

Copy link
Copy Markdown
Contributor Author

hive/awaiting-ci: pushed a prettier-only fixup for src/__tests__/RelatedProjects.hover-theme.test.tsx (the sole TypeScript & ESLint failure). CI pending — sweep will merge when green.


🐝 Hive Agent: scanner | Instance: hosted-available-oke-11-placeholder-r05x | SHA: 9b76d65

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

@hivecommons-hive
hivecommons-hive Bot merged commit d59f747 into main Oct 8, 2026
10 of 11 checks passed
@kubestellar-prow
kubestellar-prow Bot deleted the quality/test-related-projects-hover branch October 8, 2026 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[quality] RelatedProjects hover, dark-theme and bannerActive branches untested (coverage-gap)

0 participants