Update dependencies in this repo. Adapt to all breaking changes and fix lint-errors.#63
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR upgrades major frontend/backend tooling (Tailwind/DaisyUI, tRPC/React Query, Prisma) and adapts the codebase/configuration to the related breaking changes, while also addressing various lint/unused-code cleanups.
Changes:
- Migrate styling/tooling to Tailwind v4 + DaisyUI v5 (CSS-first setup, PostCSS plugin change, UI class updates).
- Upgrade Prisma to v7 with generated client output under
src/generated/prisma, addprisma.config.ts, and adopt the BetterSQLite3 adapter. - Upgrade tRPC to v11 and React Query to v5, updating client configuration and query options usage.
Reviewed changes
Copilot reviewed 57 out of 59 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| vitest.config.ts | Updates Node ESM path handling for Vitest config. |
| tailwind.config.ts | Removes Tailwind config in favor of Tailwind v4 CSS-first configuration. |
| src/utils/api.ts | Updates tRPC client config/transformer usage for v11. |
| src/styles/globals.css | Switches to Tailwind v4 @import + DaisyUI @plugin config and theme variables. |
| src/server/helper/dbCallHelper.ts | Switches Prisma type import to generated Prisma client path. |
| src/server/db.ts | Introduces Prisma BetterSQLite3 adapter and normalizes SQLite file URL handling. |
| src/server/auth.ts | Adjusts PrismaAdapter typing/casting for new Prisma client/adapter types. |
| src/server/api/routers/user.ts | Removes unused ctx parameter from query. |
| src/server/api/routers/transactions.ts | Removes unused query for current user. |
| src/server/api/routers/items.ts | Aligns Prisma imports and consistently uses ctx.prisma. |
| src/server/api/routers/groupOrders.ts | Removes unused ctx destructuring and minor cleanup. |
| src/server/api/routers/clearingAccounts.ts | Simplifies updates and removes unused variables in transaction flow. |
| src/server/api/routers/categories.ts | Cleans imports and avoids destructuring unused Prisma relation fields. |
| src/pages/top-up.tsx | Replaces initials rendering with UserAvatar and updates gradient utility classes. |
| src/pages/split.tsx | Replaces initials rendering with UserAvatar and removes unused icons/imports. |
| src/pages/me/index.tsx | Replaces initials avatar markup with UserAvatar and adjusts DaisyUI input classes. |
| src/pages/index.tsx | Adjusts DaisyUI input classes and replaces lucide GitHub icon import. |
| src/pages/grouporders/index.tsx | UI updates, avatar rendering via UserAvatar, and modal/button class changes. |
| src/pages/filter-item/[filter_string].tsx | Removes unused imports/hooks and uses CenteredPage. |
| src/pages/buy.tsx | Adjusts DaisyUI input/button styling to newer patterns. |
| src/pages/api/cron/trigger.ts | Removes unused imports and unused promise handler params. |
| src/pages/all-users.tsx | Removes unused component import. |
| src/pages/admin/grouporders.tsx | Replaces React Query v4 keepPreviousData with v5 placeholderData. |
| src/pages/admin/clearingAccounts.tsx | Removes unused icon and updates DaisyUI input classes. |
| src/pages/admin/allTransactions.tsx | Replaces React Query v4 keepPreviousData with v5 placeholderData. |
| src/pages/account.tsx | Cleans unused imports/types and updates infinite query option for React Query v5. |
| src/pages/404.tsx | Removes unused icon import. |
| src/helper/dataProcessing.ts | Updates Prisma type imports and minor formatting. |
| src/env.mjs | Updates JSDoc typedef for safeParse return type. |
| src/components/PageComponents/UserOverview.tsx | Removes unused state/utils and simplifies modal close handler. |
| src/components/PageComponents/TransactionList.tsx | Refactors export flow to use api.useUtils().fetch instead of state-driven query. |
| src/components/PageComponents/SendMoney.tsx | Updates styling for Tailwind v4/DaisyUI v5 class patterns. |
| src/components/PageComponents/OrderSummaryModal.tsx | Removes unused id parameter in map callback. |
| src/components/PageComponents/InventoryOverview.tsx | Removes unused icon import. |
| src/components/PageComponents/GetMoney.tsx | Updates styling for Tailwind v4/DaisyUI v5 class patterns. |
| src/components/PageComponents/CategoryOverview.tsx | Removes unused icon import. |
| src/components/Layout/Header.tsx | Replaces initials markup with UserAvatar, removes unused icon, and adjusts dropdown styling. |
| src/components/General/UserAvatar.tsx | Adds reusable avatar component for consistent initials rendering. |
| src/components/General/ConfirmationModal.tsx | Fixes className handling and simplifies modal-box markup. |
| src/components/General/BuyItemCardBig.tsx | Switches Prisma type imports to generated Prisma client path. |
| src/components/General/BuyItemCard.tsx | Switches Prisma type imports and adjusts modal z-index class. |
| src/components/Forms/UserForm.tsx | Removes unused form-related imports. |
| src/components/Forms/ProcurementItemForm.tsx | Refactors reset logic via memoized form values; adjusts input classes. |
| src/components/Forms/ItemForm.tsx | Improves typing around zod input/output and refactors reset logic via memoization. |
| src/components/Forms/GrouporderTemplateForm.tsx | Refactors reset logic via memoization and adjusts input classes. |
| src/components/Forms/GrouporderForm.tsx | Updates schema typing/coercion and refactors reset logic; adjusts form submission typing. |
| src/components/Forms/ClearingAccountForm.tsx | Fixes effect dependency list and updates input classes. |
| src/components/Forms/CategoryForm.tsx | Refactors reset logic via memoization and updates input classes. |
| src/components/FormElements/GroupOrderSplit.tsx | Updates DaisyUI/Tailwind class strings and input sizing utilities. |
| src/components/FormElements/CategorySelector.tsx | Strengthens typing for react-hook-form Controller and react-select. |
| scripts/screenshots/seed.ts | Updates seeding to use Prisma BetterSQLite3 adapter and handles DB file reset more robustly. |
| prisma/schema.prisma | Updates Prisma generator/provider and formatting; outputs client into src/generated/prisma. |
| prisma.config.ts | Adds Prisma v7 config file to provide datasource URL and migration paths. |
| postcss.config.cjs | Switches to Tailwind v4 PostCSS plugin setup. |
| package.json | Adds ESM module type and upgrades major dependency versions (tRPC v11, React Query v5, Prisma v7, Tailwind v4). |
| eslint.config.mts | Ignores generated Prisma client output directory. |
| Dockerfile | Bumps Node base image and includes Prisma config + node_modules copy step for runtime image. |
| .gitignore | Ignores generated Prisma output and additional SQLite DB files. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
No description provided.