Skip to content

Conversation

@HughParry
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 28, 2025 11:48
@netlify
Copy link

netlify bot commented May 28, 2025

Deploy Preview for bundle-demo ready!

Name Link
🔨 Latest commit 1c78d0d
🔍 Latest deploy log https://app.netlify.com/projects/bundle-demo/deploys/6836f8225bfce400084c8820
😎 Deploy Preview https://deploy-preview-1871--bundle-demo.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.

@HughParry HughParry enabled auto-merge (squash) May 28, 2025 11:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This hotfix streamlines configuration formatting across packages, adjusts TypeScript typesVersions, and cleans up the frictionless CAPTCHA demo HTML by removing duplicated markup and setting up explicit rendering.

  • Unify browserslist formatting in all package.json files
  • Simplify typesVersions arrays in the datasets package
  • Refactor frictionless-implicit.html demo: remove duplicate sections, restructure script, and use render

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/procaptcha-react/package.json Inline browserslist array formatting
packages/procaptcha-pow/package.json Inline browserslist array formatting
packages/procaptcha-frictionless/package.json Inline browserslist array formatting
packages/procaptcha-common/package.json Inline browserslist array formatting
packages/procaptcha-bundle/package.json Inline browserslist array formatting
packages/datasets/package.json Simplify typesVersions to inline arrays
demos/client-bundle-example/src/frictionless-implicit.html Remove duplicate HTML, consolidate scripts, use render
.changeset/odd-frogs-type.md Add patch-level changeset for lint hotfix

Comments suppressed due to low confidence (1)

demos/client-bundle-example/src/frictionless-implicit.html:33

  • The inline onclick handler calls onActionHandler(), but this function is not defined in the script, leading to a runtime error. Define the handler or remove the attribute.
<button type="button" class="mui-btn mui-btn--raised" onclick="onActionHandler()" data-cy="submit-button">Submit</button>

<script type="module">
// Pattern to avoid race condition between Procaptcha script loading and Procaptcha render function call
import { render } from "%VITE_BUNDLE_URL%"
import { render } from "%VITE_BUNDLE_URL%" // Replace with the actual bundle URL
Copy link

Copilot AI May 28, 2025

Choose a reason for hiding this comment

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

[nitpick] Add a semicolon at the end of the import statement to follow consistent JavaScript syntax.

Suggested change
import { render } from "%VITE_BUNDLE_URL%" // Replace with the actual bundle URL
import { render } from "%VITE_BUNDLE_URL%"; // Replace with the actual bundle URL

Copilot uses AI. Check for mistakes.

window.updateCaptchaStatus('CAPTCHA render function called with widget ID: ' + widgetId, 'info');

// The rest of this
Copy link

Copilot AI May 28, 2025

Choose a reason for hiding this comment

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

[nitpick] This comment appears incomplete and should be removed or clarified to avoid confusion.

Suggested change
// The rest of this

Copilot uses AI. Check for mistakes.
@HughParry HughParry marked this pull request as draft July 29, 2025 09:29
auto-merge was automatically disabled July 29, 2025 09:29

Pull request was converted to draft

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.

2 participants