-
Notifications
You must be signed in to change notification settings - Fork 1
chore(mono): 🚧 Update frontend/v2 with base changes of main branch #49
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
Conversation
…llery page. fixes #13
…ar nav, option to hide sidebar nav when not placed in group -> preperation for claim editor
Added mapbox-gl-draw, mapbox-gl-draw-snap-mode and turf. Area editing, creation and deletion is fully working. TODO: Turn on/off snapping -> always on is too resource heavy, redirect to advanced element editor
…ery file for better organization
…aw-ids which are not valid UUIDS for backwards compatilbility with frontend
Also remove debug logs for weird prisma error since its fixed
…themecolor to static blue [skip ci]
... and prettier
bruh prettier
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.
Pull Request Overview
This PR syncs frontend/v2 with the latest main branch by applying core dependency upgrades, formatting config updates, and widespread UI refactors—most notably renaming “BuildTeam” to “Build Region” and replacing manual <Box> wrappers with a shared ContentWrapper component.
- Dependency updates: bumped Prisma to v6, Turbo to 2.5.4, removed a Prettier plugin.
- Layout refactors: replaced per-page
<Box>margins/widths withContentWrapper, updated many pages and loading states. - Terminology standardization: renamed labels, variables, and comments from “Team” to “Region” throughout the dashboard.
Reviewed Changes
Copilot reviewed 128 out of 144 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| packages/prettier-config/index.json | Removed plugins entry for organize-imports. |
| packages/db/prisma/schema.prisma | Commented out unused binaryTargets generator option. |
| packages/db/prisma/migrations/migration_lock.toml | Grammar tweak in comment. |
| packages/db/prisma/migrations/20250613201530_update_to_prisma_v6/ | Added new migration SQL for composite PK on _builders and _members. |
| packages/db/package.json | Upgraded @prisma/client and prisma to v6; changed migrate script. |
| package.json | Bumped turbo to ^2.5.4. |
| apps/frontend/src/pages/gallery.tsx | Simplified default image hash literal; expanded map callback. |
| apps/frontend/src/components/GalleryGrid.tsx | Removed stray whitespace and a commented-out style. |
| apps/frontend/src/components/BackgroundImage.tsx | Cleaned up props, unified alt text, simplified placeholder logic. |
| apps/frontend/public/locales/en/getstarted.json | Fixed typo: “build” → “built.” |
| apps/dashboard/src/util/webhooks.ts | Added sendBtWebhook helper to post JSON webhooks. |
| apps/dashboard/src/util/transformers.ts | Renamed tooltip/error text references from “team” to “region.” |
| apps/dashboard/src/components/layout/** | Replaced <Box> with ContentWrapper, added ScrollArea, updated nav. |
| apps/dashboard/src/components/core/card/TextCard.tsx | Added optional href button, external-link icon. |
| ...many more across dashboard app layout, hooks, inputs, and APIs | Standardized styling, responsiveness, and component signatures. |
Comments suppressed due to low confidence (2)
apps/dashboard/src/components/core/card/TextCard.tsx:32
- There is an extra closing
</Group>here, which likely mis-nests the component tree and breaks the intended layout. Please remove the redundant closing tag.
>
packages/db/prisma/schema.prisma:3
- [nitpick] Consider removing or moving this commented-out
binaryTargetsline into documentation if it’s no longer needed, to keep the schema file clean.
// binaryTargets = ["native", "linux-musl","linux-musl-openssl-3.0.x"]
| return false; | ||
| } | ||
| } | ||
| } |
Copilot
AI
Jul 2, 2025
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.
The function sendBtWebhook returns false on error but does not return anything on success, leading to an inconsistent return type. Consider returning true after a successful fetch.
No description provided.