Install Vercel Web Analytics with latest docs - #1
Draft
vercel[bot] wants to merge 415 commits into
Draft
Conversation
Each recent mint tile now links to its token page and keeps the token ID visible directly beneath the image for quick access. Made-with: Cursor
Register four new hand overlays in the backend composer and expose them with clear labels in the Hand dropdown so they can be selected in the editor. Made-with: Cursor
Keep the render status text centered inside the asset frame and ensure the token ID suggestion dropdown stays above lower controls. Made-with: Cursor
Prevent token suggestions from overlapping other controls by rendering the list in normal flow and refresh dropdown styling with a cleaner responsive two-column layout. Made-with: Cursor
Stabilize dropdown card spacing to prevent section overlap and convert the four Dr. Bombay hand PNG backgrounds to transparency for clean compositing. Made-with: Cursor
Keep Dr. Bombay entries at the top of the Hand list and enforce readable text colors for dropdown headers and latest mint labels against dark surfaces. Made-with: Cursor
This captures the latest frontend styling and app behavior refinements, etherscan service adjustments, backend app tweak, and regenerated production build outputs. Made-with: Cursor
Wire the glitter cowboy hat option to its backend asset and fix a missing comma in the specific hats set so plunger/special-hat checks behave correctly. Made-with: Cursor
Expand the Minted AFAs panel to list all minted tokens with lazy-loaded previews, and load the clicked token into the editor instead of linking out. Co-authored-by: Cursor <cursoragent@cursor.com>
Replace sticky preview behavior on small screens so editing panels scroll smoothly, while keeping quick actions pinned above the safe area. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Keep the ape visible while scrolling panels without pinning Reset, Randomize, and Frame It to the bottom of the screen. Co-authored-by: Cursor <cursoragent@cursor.com>
Add afa-editor.app CORS origins and apply tokenId/trait query params when opening the editor from mint or share links. Co-authored-by: Cursor <cursoragent@cursor.com>
Enforce mint checks on the API and frontend, and link unminted token IDs to apefacingapes.com/claim. Co-authored-by: Cursor <cursoragent@cursor.com>
Return newest mints first from the API, dedupe IDs consistently, and use the mint set for the displayed count. Co-authored-by: Cursor <cursoragent@cursor.com>
Refresh afa_db from Etherscan, prefer on-chain mint data when stale, and let users sort the gallery by mint date or token ID. Co-authored-by: Cursor <cursoragent@cursor.com>
Keep the sort control on the same row as the Minted AFAs title so the gallery uses no extra vertical space. Co-authored-by: Cursor <cursoragent@cursor.com>
Override inherited center text alignment so the title stays flush left while the sort control remains on the right. Co-authored-by: Cursor <cursoragent@cursor.com>
Apply selected hat assets after trait composition so editor hat picks render on apes that have no original hat layer. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Show the cached mint list immediately and refresh from Etherscan in the background only when needed. Co-authored-by: Cursor <cursoragent@cursor.com>
Reuse face.png favicon assets and JS frame cycling from the mint progress app for consistent branding across both sites. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…pp Engine. Co-authored-by: Cursor <cursoragent@cursor.com>
Surface apefacingapes.com and afa-progress.com in the footer so users can reach minting and the grid view from the editor. Co-authored-by: Cursor <cursoragent@cursor.com>
## Vercel Web Analytics Integration
Successfully installed and configured Vercel Web Analytics for this React application.
### Changes Made:
**1. Installed Dependencies:**
- Added `@vercel/analytics` version 2.0.1 to package.json
- Used `--legacy-peer-deps` flag to resolve peer dependency conflicts with existing TypeScript versions
- Updated package-lock.json with new dependencies
**2. Integrated Analytics Component:**
- Modified `frontend/src/App.js`:
- Added import: `import { Analytics } from '@vercel/analytics/react';`
- Added `<Analytics />` component at the end of the App component's return statement, just before the closing `</div>`
- Followed the official Vercel documentation for React applications
**3. Verification:**
- Build completed successfully (`npm run build`)
- Tests passed with no errors
- Bundle size increased by ~1.51 kB (expected for analytics integration)
- No linting errors introduced
### Implementation Notes:
This project uses Create React App (CRA) with React 18.2.0, so the React integration pattern was used as per the official Vercel Analytics quickstart guide. The Analytics component was placed at the end of the main App component to ensure it loads on all pages while not blocking the main content rendering.
The analytics will automatically track page views once the application is deployed to Vercel. You'll need to enable Web Analytics in your Vercel project dashboard to start collecting data.
### Next Steps:
1. Deploy the application to Vercel
2. Enable Web Analytics in the Vercel project dashboard
3. Verify analytics data collection by checking the Network tab for requests to the analytics endpoint
4. Optionally configure custom events if needed (requires Pro/Enterprise plans)
Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
Author
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Vercel Web Analytics Integration
Successfully installed and configured Vercel Web Analytics for this React application.
Changes Made:
1. Installed Dependencies:
@vercel/analyticsversion 2.0.1 to package.json--legacy-peer-depsflag to resolve peer dependency conflicts with existing TypeScript versions2. Integrated Analytics Component:
frontend/src/App.js:import { Analytics } from '@vercel/analytics/react';<Analytics />component at the end of the App component's return statement, just before the closing</div>3. Verification:
npm run build)Implementation Notes:
This project uses Create React App (CRA) with React 18.2.0, so the React integration pattern was used as per the official Vercel Analytics quickstart guide. The Analytics component was placed at the end of the main App component to ensure it loads on all pages while not blocking the main content rendering.
The analytics will automatically track page views once the application is deployed to Vercel. You'll need to enable Web Analytics in your Vercel project dashboard to start collecting data.
Next Steps:
View Project · Web Analytics
Created by Cophi (cophi-dev) with Vercel Agent