Skip to content

fix(forms): quote page-derived fixture strings - #451

Merged
santoshyadavdev merged 1 commit into
mainfrom
santoshyadavdev-fix-reactive-fixture-injection
Nov 4, 2026
Merged

santoshyadavdev merged 1 commit into
mainfrom
santoshyadavdev-fix-reactive-fixture-injection

Conversation

@santoshyadavdev

Copy link
Copy Markdown
Collaborator

What and why

Reactive form fixtures included page-reported paths and statuses directly in generated TypeScript, allowing malformed values to alter executable statements. Serialize those values as TypeScript string literals, keep kind and status comment fields on one line, and reject unsupported form, field, and event enum values at report ingestion.

How it was verified

  • pnpm commit:check (commit messages follow the guidelines)
  • pnpm format:check
  • pnpm typecheck (includes the ngc template checks)
  • pnpm test, pnpm test:devtools and pnpm test:panel
  • pnpm skills:check (when .claude/ changed)
  • Docs in apps/docs updated and pnpm docs:build passes (when behavior, options, UI labels or agent tools changed), or the no-docs label added with the reason below
  • pnpm extension:build and extension/ui committed (when app/ changed)
  • Checked in the browser with axe (when the UI changed)

pnpm test:axe was attempted but could not run because Playwright Chromium was unavailable; the browser download timed out. This is a package-side security fix and does not change docs-facing behavior, so docs were not changed.

Screenshots

N/A; no UI changes.

Notes for reviewers

The regression tests cover both generated-source escaping and single-line comment normalization, as well as rejection of unsupported report enum values.

Encode paths and statuses as TypeScript string literals so page-reported values cannot inject fixture statements. Normalize comment metadata and reject unsupported report enums.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 41 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7bbabd0d-aaf8-4f1d-9d69-edb2e43d4bc4
Commits

Reviewing files that changed from the base of the PR and between dcbd285 and 9a0c414.

Files selected for processing: 5
  • packages/devtools/src/__tests__/forms-cap.test.ts
  • packages/devtools/src/__tests__/forms-mcp.test.ts
  • packages/devtools/src/__tests__/forms-tools.test.ts
  • packages/devtools/src/rpc/forms-explain.ts
  • packages/devtools/src/rpc/forms-tools.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot added area: package The ng-devtools package (packages/ng-devtools) area: agents MCP server, agent tools and resources labels Nov 4, 2026
@nx-cloud

nx-cloud Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 9a0c414

Command Status Duration Result
nx affected -t test build ✅ Succeeded 1m 1s View ↗
nx build --configuration development ✅ Succeeded 35s View ↗

💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-11-04 06:04:55 UTC

@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Failed ❌

View logs ↗
9a0c414 2026-11-04T06:04:42.840Z View logs ↗

@santoshyadavdev
santoshyadavdev merged commit 4b2f1f4 into main Nov 4, 2026
11 of 12 checks passed
@santoshyadavdev
santoshyadavdev deleted the santoshyadavdev-fix-reactive-fixture-injection branch November 4, 2026 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: agents MCP server, agent tools and resources area: package The ng-devtools package (packages/ng-devtools)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant