Skip to content

Conversation

@sumn2u
Copy link
Owner

@sumn2u sumn2u commented Oct 6, 2025

Image search demo application added

@vercel
Copy link

vercel bot commented Oct 6, 2025

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

Project Deployment Preview Comments Updated (UTC)
learn-javascript Ready Ready Preview Comment Oct 6, 2025 11:52am

@sumn2u sumn2u requested a review from Copilot October 6, 2025 11:51
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 PR adds a live demo section to the image search beginner project documentation, providing users with an interactive CodeSandbox embed to see the application in action.

  • Added a Live Demo section with an embedded CodeSandbox iframe
  • Configured the iframe with appropriate sandbox permissions and styling

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.


## Live Demo
<div align="center">
<iframe src="https://codesandbox.io/embed/9xkmxr?view=preview&module=%2Fstyles.css"
Copy link

Copilot AI Oct 6, 2025

Choose a reason for hiding this comment

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

The CodeSandbox URL appears to be incomplete or invalid. The embed ID '9xkmxr' seems too short for a typical CodeSandbox URL format, which usually contains longer alphanumeric identifiers.

Suggested change
<iframe src="https://codesandbox.io/embed/9xkmxr?view=preview&module=%2Fstyles.css"
<iframe src="https://codesandbox.io/embed/new?view=preview&module=%2Fstyles.css"

Copilot uses AI. Check for mistakes.
<iframe src="https://codesandbox.io/embed/9xkmxr?view=preview&module=%2Fstyles.css"
style="width:100%; height: 500px; border:0; border-radius: 4px; overflow:hidden;"
title="image-search"
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking"
Copy link

Copilot AI Oct 6, 2025

Choose a reason for hiding this comment

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

The iframe allows excessive permissions that are unnecessary for an image search demo. Consider limiting to only required permissions like 'allow-scripts allow-same-origin' to follow the principle of least privilege.

Suggested change
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking"
allow="allow-scripts; allow-same-origin"

Copilot uses AI. Check for mistakes.
@sumn2u sumn2u merged commit b7e201f into main Oct 6, 2025
5 checks passed
@sumn2u sumn2u deleted the image-search branch October 6, 2025 11:52
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