-
Notifications
You must be signed in to change notification settings - Fork 1
REWRITE EVERYTHING!! #573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REWRITE EVERYTHING!! #573
Conversation
… into react-rewrite
Rebuild from scratch
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. WalkthroughThis PR performs a comprehensive project restructuring: migrates from pnpm to Bun as package manager, transitions from Svelte to React Router framework, adds Convex backend with Better Auth authentication, introduces 20+ utility tool routes, establishes a complete ShadCN/UI component library, and updates all CI/CD workflows accordingly. Includes new environment variable schema for Vite/PostHog and setup scripts for worktree configuration. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Areas requiring extra attention:
Possibly related PRs
Suggested reviewers
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (22)
📒 Files selected for processing (107)
⛔ Files not processed due to max files limit (30)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the final PR Bugbot will review for you during this billing cycle
Your free Bugbot reviews will reset on January 20
Details
You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
| lastIndex = regex.lastIndex; | ||
|
|
||
| if (!flags.global) break; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| onClick={() => { | ||
| setIndentation(2); | ||
| if (output && !error) formatJson(); | ||
| }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: JSON formatter uses stale indentation value after state change
When clicking the indentation buttons (2 Spaces / 4 Spaces), setIndentation() is called immediately followed by formatJson(). However, React state updates are asynchronous, so formatJson() captures the old indentation value from the closure rather than the newly set value. The output won't reflect the selected indentation until a second format action is triggered.
Additional Locations (1)
| COPY --from=production-dependencies-env /app/node_modules /app/node_modules | ||
| COPY --from=build-env /app/build /app/build | ||
| WORKDIR /app | ||
| CMD ["npm", "run", "start"] No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Dockerfile uses npm but project migrated to bun
The Dockerfile uses npm ci with package-lock.json, but the project has migrated to bun (as seen in README, GitHub workflows, and setup scripts). The package-lock.json file won't exist when using bun (which generates bun.lockb), causing the Docker build to fail when copying or installing dependencies.
| .catch((error) => { | ||
| if (error == "AbortError: Share canceled") return; | ||
| toast.error("Failed to share"); | ||
| }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Share cancellation incorrectly triggers error toast
The error handling in the share function compares an Error object to a string using error == "AbortError: Share canceled". When users cancel the Web Share dialog, the browser throws a DOMException object with name === "AbortError", not a string. This comparison will always be false, causing "Failed to share" toast to appear whenever users intentionally cancel sharing. The check needs to compare error.name === "AbortError" instead.
| if (ctx) { | ||
| ctx.fillStyle = bgColor; | ||
| ctx.fillRect(0, 0, size, size); | ||
| ctx.drawImage(img, 0, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: QR code download renders wrong size when exceeding preview cap
The QR code preview is capped at 280px (size > 280 ? 280 : size) but the download function creates a canvas at the user-selected size. Since ctx.drawImage(img, 0, 0) is called without explicit dimensions, the 280px SVG is drawn at its native size on a potentially 512px canvas. When a user selects 512px, they get a 512x512 PNG with the QR code only occupying a 280x280 area in the top-left corner. The comment claims "real size for download" but the SVG dimensions are what get drawn.
Note
Remove bundled game assets and static tool content (Cookie Clicker, BitLife, etc.) from the repo.
static/_app/tools/cookieclicker/assets (scripts, images, locales, HTML, mods), including major JS files (eg.DungeonGen.js,ajax.js,dungeons.js), sound/image lists, and localization files (loc/CS.js,loc/DE.js).static/_app/tools/bitlife/(index.html,TemplateData/UnityProgress.js).static/_app/tools/directory.Written by Cursor Bugbot for commit f92ae54. This will update automatically on new commits. Configure here.
Summary by CodeRabbit
New Features
Infrastructure
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.