Skip to content

chore(core): cover key state controller keyboard branches - #344

Merged
coryrylan merged 1 commit into
mainfrom
topic/upkeep/coverage/key-state-controller
Sep 26, 2026
Merged

coryrylan merged 1 commit into
mainfrom
topic/upkeep/coverage/key-state-controller

Conversation

@cursor

@cursor cursor Bot commented Sep 26, 2026

Copy link
Copy Markdown

Selected task: coverage for projects/core/src/internal/controllers/key-state.controller.ts.

Selector rationale: "1 uncovered lines, 98.41% lines and 81.25% branches, the smallest gap below the 90% threshold".

Before and after, from projects/core unit coverage:

  • Lines: 98.41% (62/63) to 100% (63/63)
  • Branches: 81.25% (26/32) to 96.87% (31/32)
  • Functions: 94.11% (16/17) to 100% (17/17)
  • Statements: 93.33% (70/75) to 98.66% (74/75)

No other file's coverage decreased. No public API changed. Production code is untouched.

Left alone: the duplicate-subscribe return in DocumentKeyStateSource.subscribe. The controller subscribes a host only after leaving the previous source, so that branch is not reachable through the public controller surface.

Validation: projects/core lint, test, test:coverage (2197 tests), test:types, test:axe, test:ssr, test:lighthouse, and test:visual passed. Root pnpm run ci passed. git diff --check passed.

Open in Web View Automation 

@cursor
cursor Bot marked this pull request as ready for review September 26, 2026 06:41
@coryrylan coryrylan added the upkeep label Sep 26, 2026 — with Cursor
@coderabbitai

coderabbitai Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: NVIDIA/elements/.coderabbit.yaml

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 1dabb557-c2b0-4192-b787-aefccc02cfdc

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@github-code-quality

github-code-quality Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Code Coverage Overview

Languages: TypeScript

TypeScript / code-coverage/vitest

The overall line coverage in commit ce2cce3 in the topic/upkeep/coverag... branch remains at 99%, unchanged from commit 8b43846 in the main branch.

Show a line coverage summary of the most impacted files.
File main 8b43846 topic/upkeep/coverag... ce2cce3 +/-
projects/core/s...e.controller.ts 98% 100% +2%

Updated September 26, 2026 12:37 UTC

Adds unit tests for the enabled getter, repeated keydown,
unheld keyup, visible document changes, empty blur, and blur
updates limited to hosts watching the cleared key.

Line coverage rises from 98.41% (62/63) to 100% (63/63), and
branch coverage rises from 81.25% (26/32) to 96.87% (31/32).
No behavior change.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>
@coryrylan
coryrylan force-pushed the topic/upkeep/coverage/key-state-controller branch from 7c4d229 to ce2cce3 Compare September 26, 2026 12:28
@coryrylan
coryrylan enabled auto-merge (rebase) September 26, 2026 12:29
@coryrylan
coryrylan merged commit 7a82fb5 into main Sep 26, 2026
15 checks passed
@coryrylan
coryrylan deleted the topic/upkeep/coverage/key-state-controller branch September 26, 2026 12:43
@coryrylan

Copy link
Copy Markdown
Collaborator

🎉 This issue has been resolved in version 2.7.1 🎉

Changelog

@coryrylan

Copy link
Copy Markdown
Collaborator

🎉 This issue has been resolved in version 2.2.7 🎉

Changelog

@coryrylan

Copy link
Copy Markdown
Collaborator

🎉 This issue has been resolved in version 2.10.0 🎉

Changelog

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.

2 participants