Skip to content

Build ECHO Next.js photo upload demo app - #3

Open
Virtualreality123 wants to merge 1 commit into
masterfrom
codex/create-next.js-web-app-echo
Open

Build ECHO Next.js photo upload demo app#3
Virtualreality123 wants to merge 1 commit into
masterfrom
codex/create-next.js-web-app-echo

Conversation

@Virtualreality123

Copy link
Copy Markdown
Owner

Motivation

  • Provide a minimal, runnable Next.js demo called ECHO that demonstrates a photo upload UI and a fake historical-doppelganger result screen for design and UX validation.

Description

  • Add package.json with next, react, and react-dom dependencies and dev/build/start scripts so the app is intended to run with npm run dev.
  • Add app/layout.js with site metadata and global stylesheet import that sets the app title to "ECHO – Find Your Doppelganger".
  • Add app/page.js as a client component implementing the upload button, image preview, fake result text "You are 82% aligned with a historical twin", and a sample match (name + short story).
  • Add app/globals.css with simple, clean styles for the card layout, upload buttons, preview image, and match card.

Testing

  • Attempted npm install to install dependencies, but it failed due to an npm registry policy error (403 Forbidden), so runtime verification (npm run dev) could not be completed.
  • Repository changes were staged and committed successfully (commit recorded), and file presence was verified via git status.

Codex Task

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ef5651d5d6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/page.js
Comment on lines +18 to +19
const objectUrl = URL.createObjectURL(file);
setImageSrc(objectUrl);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Revoke blob URLs after updating the preview

Calling URL.createObjectURL(file) for each upload without ever revoking prior URLs leaks browser memory; repeated uploads (especially large images) will keep old blobs alive for the lifetime of the tab. This can degrade performance in normal use of the demo flow where users try multiple photos, so the previous URL should be revoked when replacing the image and on component unmount.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant