Skip to content

Update dependencies in this repo. Adapt to all breaking changes and fix lint-errors.#63

Merged
13Bytes merged 6 commits into
mainfrom
refactor-update-dependencies
Jun 17, 2026
Merged

Update dependencies in this repo. Adapt to all breaking changes and fix lint-errors.#63
13Bytes merged 6 commits into
mainfrom
refactor-update-dependencies

Conversation

@13Bytes

@13Bytes 13Bytes commented Jun 15, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings June 15, 2026 20:43

Copilot AI 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.

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, add prisma.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.

Comment thread src/pages/grouporders/index.tsx
Comment thread src/pages/grouporders/index.tsx
Comment thread src/components/FormElements/GroupOrderSplit.tsx Outdated
Comment thread src/components/Layout/Header.tsx
Comment thread src/components/Layout/Header.tsx
Comment thread src/components/Layout/Header.tsx
Comment thread src/components/General/BuyItemCard.tsx
Comment thread src/components/General/UserAvatar.tsx Outdated
@13Bytes 13Bytes self-assigned this Jun 15, 2026
@13Bytes 13Bytes merged commit 9d35aa4 into main Jun 17, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants