Skip to content

refactor: address react doctor findings - #491

Merged
fregante merged 14 commits into
mainfrom
copilot/run-react-doctor-fix-issues
Oct 7, 2026
Merged

fregante merged 14 commits into
mainfrom
copilot/run-react-doctor-fix-issues

Conversation

Copilot AI commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Run React Doctor on the React app and address actionable findings across security, accessibility, and state handling.

  • Security: Remove the dynamic syntax probe and prevent the registry proxy from automatically following upstream redirects:
    fetch(url, { ...options, redirect: 'manual' });
  • Accessibility: Make interactive controls keyboard-operable and expose graph nodes as focusable buttons.
  • Correctness and maintainability: Guard async updates against stale requests, revoke download object URLs, handle missing map entries safely, and reuse duplicated help markup.

@vercel

vercel Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
npmgraph Ready Ready Preview Oct 7, 2026 8:28am UTC

Request Review

Copilot AI changed the title [WIP] Run react-doctor and fix issues Address React Doctor findings Oct 6, 2026
Copilot AI requested a review from broofa October 6, 2026 20:36
@fregante
fregante self-requested a review October 6, 2026 20:49
Copilot AI requested a review from broofa October 6, 2026 22:33
@broofa broofa changed the title Address React Doctor findings refactor: address react doctor findings Oct 6, 2026
@broofa
broofa marked this pull request as ready for review October 6, 2026 23:34
@fregante

This comment was marked as resolved.

fregante

This comment was marked as resolved.

…RegistryInput, unfocusable graph container

Co-authored-by: fregante <[email protected]>
fregante

This comment was marked as resolved.

Comment thread lambdas/npmRegistryProxyWithCors.js Outdated
};

const response = await fetch(url, options);
const response = await fetch(url, { ...options, redirect: 'manual' });

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.

Security: Remove the dynamic syntax probe and prevent the registry proxy from automatically following upstream redirects:
fetch(url, { ...options, redirect: 'manual' });

All good except this change I don't know about and seems unrelated to react.

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.

  • Changes reverted in b7a001c to allow merging.
  • Further comments left in the issue since this PR didn't complete all react-doctor fixes

@fregante
fregante enabled auto-merge (squash) October 7, 2026 08:29
@fregante
fregante merged commit 6e749c7 into main Oct 7, 2026
10 checks passed
@fregante
fregante deleted the copilot/run-react-doctor-fix-issues branch October 7, 2026 08:31

This branch was successfully deployed

1 active deployment
Preview — 67fb2541 Deployed Oct 7, 2026 by vercel[bot]
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.

3 participants