From 3f4add29c0459aadef4732767ef2f36cec0d26f8 Mon Sep 17 00:00:00 2001 From: Joe Karow <58997957+JoeKarow@users.noreply.github.com> Date: Tue, 27 Aug 2024 15:29:46 -0400 Subject: [PATCH] fix: alert styling (#1398) # Pull Request type Please check the type of change your PR introduces: - [x] Bugfix - [ ] Feature - [ ] Code style update (formatting, renaming) - [ ] Refactoring (no functional changes, no API changes) - [ ] Build-related changes - [ ] Documentation content changes - [ ] Other (please describe): ## What is the current behavior? Issue Number: N/A ## What is the new behavior? - - - ## Does this introduce a breaking change? - [ ] Yes - [ ] No ## Other information ## Summary by CodeRabbit - **New Features** - Introduced a migration job for creating election alerts, enhancing the system's responsiveness to civic events. - Updated the `LocationBasedAlertBanner` component for improved styling and layout. - **Bug Fixes** - Downgraded several Prisma-related dependencies to address compatibility issues and improve stability. - **Documentation** - Enhanced the migration capabilities documentation through the addition of new export statements for better access. --- apps/app/package.json | 4 +- lambdas/cognito-user-migrate/package.json | 4 +- .../query.LocationBasedAlertBanner.handler.ts | 1 + packages/db/package.json | 6 +- .../2024-08-22_election-alert.ts | 77 +++++++++++ packages/db/prisma/data-migrations/index.ts | 1 + .../migration.sql | 3 + packages/db/prisma/schema.prisma | 1 + .../core/LocationBasedAlertBanner/index.tsx | 50 ++++--- pnpm-lock.yaml | 124 ++++++++++++------ 10 files changed, 205 insertions(+), 66 deletions(-) create mode 100644 packages/db/prisma/data-migrations/2024-08-22_election-alert.ts create mode 100644 packages/db/prisma/migrations/20240827192047_location_alert_order/migration.sql diff --git a/apps/app/package.json b/apps/app/package.json index 0f2fcdc3e4..21dc2d696c 100644 --- a/apps/app/package.json +++ b/apps/app/package.json @@ -46,7 +46,7 @@ "@opentelemetry/sdk-trace-base": "1.25.1", "@opentelemetry/sdk-trace-node": "1.25.1", "@opentelemetry/semantic-conventions": "1.26.0", - "@prisma/instrumentation": "5.19.0", + "@prisma/instrumentation": "5.18.0", "@sentry/browser": "8.27.0", "@sentry/nextjs": "8.27.0", "@sentry/node": "8.27.0", @@ -106,7 +106,7 @@ "devDependencies": { "@hookform/devtools": "4.3.1", "@playwright/test": "1.46.1", - "@prisma/nextjs-monorepo-workaround-plugin": "5.19.0", + "@prisma/nextjs-monorepo-workaround-plugin": "5.18.0", "@relative-ci/agent": "4.2.10", "@tanstack/react-query-devtools": "4.36.1", "@tanstack/react-table-devtools": "8.20.5", diff --git a/lambdas/cognito-user-migrate/package.json b/lambdas/cognito-user-migrate/package.json index c95cc1aa33..0a95c6147b 100644 --- a/lambdas/cognito-user-migrate/package.json +++ b/lambdas/cognito-user-migrate/package.json @@ -22,7 +22,7 @@ }, "dependencies": { "@aws-lambda-powertools/logger": "1.18.1", - "@prisma/client": "5.19.0", + "@prisma/client": "5.18.0", "@weareinreach/db": "workspace:*" }, "devDependencies": { @@ -35,7 +35,7 @@ "aws-lambda": "1.0.7", "eslint": "8.57.0", "prettier": "3.3.3", - "prisma": "5.19.0", + "prisma": "5.18.0", "typescript": "5.5.4" } } diff --git a/packages/api/router/component/query.LocationBasedAlertBanner.handler.ts b/packages/api/router/component/query.LocationBasedAlertBanner.handler.ts index 4b4d1928ed..fe635230db 100644 --- a/packages/api/router/component/query.LocationBasedAlertBanner.handler.ts +++ b/packages/api/router/component/query.LocationBasedAlertBanner.handler.ts @@ -24,6 +24,7 @@ export const LocationBasedAlertBanner = async ({ level: true, text: { select: { tsKey: { select: { ns: true, key: true, text: true } } } }, }, + orderBy: { order: 'asc' }, }) const formatted = alerts.map( diff --git a/packages/db/package.json b/packages/db/package.json index dedde9bb43..6f90b4e7f0 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -46,8 +46,8 @@ "@opentelemetry/sdk-trace-base": "1.25.1", "@opentelemetry/sdk-trace-node": "1.25.1", "@opentelemetry/semantic-conventions": "1.26.0", - "@prisma/client": "5.19.0", - "@prisma/instrumentation": "5.19.0", + "@prisma/client": "5.18.0", + "@prisma/instrumentation": "5.18.0", "@vercel/kv": "2.0.0", "@vercel/postgres-kysely": "0.9.0", "@weareinreach/crowdin": "workspace:*", @@ -104,7 +104,7 @@ "prettier": "3.3.3", "pretty-bytes": "6.1.1", "pretty-ms": "9.1.0", - "prisma": "5.19.0", + "prisma": "5.18.0", "prisma-dbml-generator": "0.12.0", "prisma-generator-ts-enums": "1.1.0", "prisma-query-inspector": "1.4.4", diff --git a/packages/db/prisma/data-migrations/2024-08-22_election-alert.ts b/packages/db/prisma/data-migrations/2024-08-22_election-alert.ts new file mode 100644 index 0000000000..13584a2284 --- /dev/null +++ b/packages/db/prisma/data-migrations/2024-08-22_election-alert.ts @@ -0,0 +1,77 @@ +import { addSingleKeyFromNestedFreetextCreate } from '@weareinreach/crowdin/api' +import { generateNestedFreeText } from '~db/lib/generateFreeText' +import { type MigrationJob } from '~db/prisma/dataMigrationRunner' +import { type JobDef } from '~db/prisma/jobPreRun' +/** Define the job metadata here. */ +const jobDef: JobDef = { + jobId: '2024-08-22_election-alert', + title: 'election alert', + createdBy: 'Joe Karow', + /** Optional: Longer description for the job */ + description: undefined, +} +/** + * Job export - this variable MUST be UNIQUE + */ +export const job20240822_election_alert = { + title: `[${jobDef.jobId}] ${jobDef.title}`, + task: async (ctx, task) => { + const { createLogger, formatMessage, jobPostRunner, prisma } = ctx + /** Create logging instance */ + createLogger(task, jobDef.jobId) + const log = (...args: Parameters) => (task.output = formatMessage(...args)) + /** + * Start defining your data migration from here. + * + * To log output, use `task.output = 'Message to log'` + * + * This will be written to `stdout` and to a log file in `/prisma/migration-logs/` + */ + + // Do stuff + + const alertId = 'alrt_01J5XNBQ5GREHSHK5D2QTCXRWE' + + const alertText = generateNestedFreeText({ + type: 'locationAlert', + freeTextId: 'ftxt_01J5XNC3P8HS8SWHGBB546D4RA', + itemId: alertId, + text: "🇺🇸 US Citizens: Make sure you're registered and ready to vote with pride on November 5, 2024!", + }) + + await prisma.$transaction(async (tx) => { + const crowdIn = await addSingleKeyFromNestedFreetextCreate(alertText) + + const newAlert = await tx.locationAlert.create({ + data: { + id: alertId, + level: 'WARN_PRIMARY', + text: alertText, + country: { + connect: { cca2: 'US' }, + // [ + // { cca2: 'AS' }, + // { cca2: 'GU' }, + // { cca2: 'MH' }, + // { cca2: 'MP' }, + // { cca2: 'PR' }, + // { cca2: 'PW' }, + // { cca2: 'UM' }, + // { cca2: 'US' }, + // { cca2: 'VI' }, + // ], + }, + }, + }) + log(`Created alert ${newAlert.id}. Crowdin id: ${crowdIn.id}`) + }) + + /** + * DO NOT REMOVE BELOW + * + * This writes a record to the DB to register that this migration has run successfully. + */ + await jobPostRunner(jobDef) + }, + def: jobDef, +} satisfies MigrationJob diff --git a/packages/db/prisma/data-migrations/index.ts b/packages/db/prisma/data-migrations/index.ts index 4cb95500c9..14a85dd76b 100644 --- a/packages/db/prisma/data-migrations/index.ts +++ b/packages/db/prisma/data-migrations/index.ts @@ -9,4 +9,5 @@ export * from './2024-06-27_search-page-alert' export * from './2024-06-28_new-cost-props' export * from './2024-07-29_address-visibility-update' export * from './2024-07-29_new-service-tags' +export * from './2024-08-22_election-alert' // codegen:end diff --git a/packages/db/prisma/migrations/20240827192047_location_alert_order/migration.sql b/packages/db/prisma/migrations/20240827192047_location_alert_order/migration.sql new file mode 100644 index 0000000000..66933fe256 --- /dev/null +++ b/packages/db/prisma/migrations/20240827192047_location_alert_order/migration.sql @@ -0,0 +1,3 @@ +-- AlterTable +ALTER TABLE "LocationAlert" + ADD COLUMN "order" INTEGER NOT NULL DEFAULT 0; diff --git a/packages/db/prisma/schema.prisma b/packages/db/prisma/schema.prisma index 4e0e2b3882..8945ff65be 100644 --- a/packages/db/prisma/schema.prisma +++ b/packages/db/prisma/schema.prisma @@ -1422,6 +1422,7 @@ model LocationAlert { text FreeText @relation(fields: [textId], references: [id], onDelete: Cascade, onUpdate: Cascade) textId String level LocationAlertLevel + order Int @default(0) country Country? @relation(fields: [countryId], references: [id], onDelete: Cascade, onUpdate: Cascade) countryId String? diff --git a/packages/ui/components/core/LocationBasedAlertBanner/index.tsx b/packages/ui/components/core/LocationBasedAlertBanner/index.tsx index f36a581269..348e2af0e2 100644 --- a/packages/ui/components/core/LocationBasedAlertBanner/index.tsx +++ b/packages/ui/components/core/LocationBasedAlertBanner/index.tsx @@ -1,4 +1,4 @@ -import { Box, createStyles, rem, Text } from '@mantine/core' +import { Box, createStyles, rem, Stack, Text } from '@mantine/core' import { Trans } from 'next-i18next' import { Link } from '~ui/components/core/Link' @@ -6,31 +6,28 @@ import { useCustomVariant } from '~ui/hooks/useCustomVariant' import { trpc as api } from '~ui/lib/trpcClient' const useStyles = createStyles((theme) => ({ - alertContainer: { - display: 'flex', - flexDirection: 'column', - alignItems: 'center', - justifyContent: 'flex-start', + primaryContainer: { + position: 'sticky', + marginTop: rem(-15), + [theme.fn.smallerThan('xl')]: { + marginTop: rem(-40), + }, + [theme.fn.smallerThan('sm')]: { + marginBottom: rem(-60), + }, }, + secondaryContainer: { marginBottom: rem(10) }, primary: { - display: 'flex', - alignItems: 'center', - justifyContent: 'center', + // display: 'flex', + // alignItems: 'center', + // justifyContent: 'center', textAlign: 'center', width: '100vw', borderRadius: 0, padding: `${rem(12)} 0`, ...theme.other.utilityFonts.utility1, - position: 'sticky', - marginTop: rem(-15), - [theme.fn.smallerThan('xl')]: { - marginTop: rem(-25), - }, - [theme.fn.smallerThan('sm')]: { - marginTop: rem(-25), - }, '&[data-alert-level="INFO_PRIMARY"]': { backgroundColor: theme.other.colors.secondary.cornflower, span: { @@ -52,7 +49,7 @@ const useStyles = createStyles((theme) => ({ height: 'unset', borderRadius: rem(10), padding: `${rem(8)} ${rem(12)}`, - marginBottom: rem(10), + '&[data-alert-level="INFO_SECONDARY"]': { height: 'unset', backgroundColor: theme.fn.lighten(theme.other.colors.secondary.cornflower, 0.7), @@ -78,8 +75,18 @@ export const LocationBasedAlertBanner = ({ lat, lon, type }: LocationBasedAlertB lon, }) - return isLoading || !locationBasedAlertBannerProps ? null : ( -
+ if (isLoading || !locationBasedAlertBannerProps) { + return null + } + + return ( + {locationBasedAlertBannerProps .filter((alertProps) => alertProps.level.toLowerCase().endsWith(type)) .map((alertProps) => ( @@ -92,11 +99,12 @@ export const LocationBasedAlertBanner = ({ lat, lon, type }: LocationBasedAlertB components={{ Link: , }} + // as={Text} /> ))} -
+ ) } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ae3ee98564..5c426822ad 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -168,8 +168,8 @@ importers: specifier: 1.26.0 version: 1.26.0 '@prisma/instrumentation': - specifier: 5.19.0 - version: 5.19.0 + specifier: 5.18.0 + version: 5.18.0 '@sentry/browser': specifier: 8.27.0 version: 8.27.0 @@ -343,8 +343,8 @@ importers: specifier: 1.46.1 version: 1.46.1 '@prisma/nextjs-monorepo-workaround-plugin': - specifier: 5.19.0 - version: 5.19.0 + specifier: 5.18.0 + version: 5.18.0 '@relative-ci/agent': specifier: 4.2.10 version: 4.2.10(encoding@0.1.13)(typescript@5.5.4)(webpack@5.94.0(@swc/core@1.7.18(@swc/helpers@0.5.12))) @@ -564,8 +564,8 @@ importers: specifier: 1.18.1 version: 1.18.1 '@prisma/client': - specifier: 5.19.0 - version: 5.19.0(prisma@5.19.0) + specifier: 5.18.0 + version: 5.18.0(prisma@5.18.0) '@weareinreach/db': specifier: workspace:* version: link:../../packages/db @@ -598,8 +598,8 @@ importers: specifier: 3.3.3 version: 3.3.3 prisma: - specifier: 5.19.0 - version: 5.19.0 + specifier: 5.18.0 + version: 5.18.0 typescript: specifier: 5.5.4 version: 5.5.4 @@ -965,11 +965,11 @@ importers: specifier: 1.26.0 version: 1.26.0 '@prisma/client': - specifier: 5.19.0 - version: 5.19.0(prisma@5.19.0) + specifier: 5.18.0 + version: 5.18.0(prisma@5.18.0) '@prisma/instrumentation': - specifier: 5.19.0 - version: 5.19.0 + specifier: 5.18.0 + version: 5.18.0 '@vercel/kv': specifier: 2.0.0 version: 2.0.0 @@ -1021,7 +1021,7 @@ importers: version: 5.0.0 '@snaplet/seed': specifier: 0.98.0 - version: 0.98.0(@prisma/client@5.19.0(prisma@5.19.0))(@snaplet/copycat@5.0.0)(@types/pg@8.11.6)(babel-plugin-macros@3.1.0)(better-sqlite3@9.6.0)(encoding@0.1.13)(openai@4.56.0(encoding@0.1.13)(zod@3.23.8))(pg@8.12.0) + version: 0.98.0(@prisma/client@5.18.0(prisma@5.18.0))(@snaplet/copycat@5.0.0)(@types/pg@8.11.6)(babel-plugin-macros@3.1.0)(better-sqlite3@9.6.0)(encoding@0.1.13)(openai@4.56.0(encoding@0.1.13)(zod@3.23.8))(pg@8.12.0) '@terraformer/wkt': specifier: 2.2.1 version: 2.2.1 @@ -1134,14 +1134,14 @@ importers: specifier: 9.1.0 version: 9.1.0 prisma: - specifier: 5.19.0 - version: 5.19.0 + specifier: 5.18.0 + version: 5.18.0 prisma-dbml-generator: specifier: 0.12.0 version: 0.12.0(encoding@0.1.13) prisma-generator-ts-enums: specifier: 1.1.0 - version: 1.1.0(prisma@5.19.0) + version: 1.1.0(prisma@5.18.0) prisma-query-inspector: specifier: 1.4.4 version: 1.4.4(bufferutil@4.0.8)(utf-8-validate@6.0.4) @@ -4378,6 +4378,15 @@ packages: prisma: optional: true + '@prisma/client@5.18.0': + resolution: {integrity: sha512-BWivkLh+af1kqC89zCJYkHsRcyWsM8/JHpsDMM76DjP3ZdEquJhXa4IeX+HkWPnwJ5FanxEJFZZDTWiDs/Kvyw==} + engines: {node: '>=16.13'} + peerDependencies: + prisma: '*' + peerDependenciesMeta: + prisma: + optional: true + '@prisma/client@5.19.0': resolution: {integrity: sha512-CzOpau+q1kEWQyoQMvlnXIHqPvwmWbh48xZ4n8KWbAql0p8PC0BIgSTYW5ncxXa4JSEff0tcoxSZB874wDstdg==} engines: {node: '>=16.13'} @@ -4411,6 +4420,9 @@ packages: '@prisma/engines-version@5.14.0-6.264f24ce0b2f544ff968ff76bfaa999de1161361': resolution: {integrity: sha512-XkTJYtdOIrJkJv/tzXzsaUsfyvp82IWSPx4DlR52G0cyKoqT6lC55daIdsnuEoKPM2jPcL6P7dJENYBMGHQLEg==} + '@prisma/engines-version@5.18.0-25.4c784e32044a8a016d99474bd02a3b6123742169': + resolution: {integrity: sha512-a/+LpJj8vYU3nmtkg+N3X51ddbt35yYrRe8wqHTJtYQt7l1f8kjIBcCs6sHJvodW/EK5XGvboOiwm47fmNrbgg==} + '@prisma/engines-version@5.19.0-31.5fe21811a6ba0b952a3bc71400666511fe3b902f': resolution: {integrity: sha512-GimI9aZIFy/yvvR11KfXRn3pliFn1QAkdebVlsXlnoh5uk0YhLblVmeYiHfsu+wDA7BeKqYT4sFfzg8mutzuWw==} @@ -4420,6 +4432,9 @@ packages: '@prisma/engines@5.14.0-dev.34': resolution: {integrity: sha512-RWkQHOPxSfy0ANoE0hhrDTf7SuNACILx/LTM1LINlWSYG+Ev/do+5RFbrCv6liCxi1fRZuuhtTux9sH56o01cQ==} + '@prisma/engines@5.18.0': + resolution: {integrity: sha512-ofmpGLeJ2q2P0wa/XaEgTnX/IsLnvSp/gZts0zjgLNdBhfuj2lowOOPmDcfKljLQUXMvAek3lw5T01kHmCG8rg==} + '@prisma/engines@5.19.0': resolution: {integrity: sha512-UtW+0m4HYoRSSR3LoDGKF3Ud4BSMWYlLEt4slTnuP1mI+vrV3zaDoiAPmejdAT76vCN5UqnWURbkXxf66nSylQ==} @@ -4432,6 +4447,9 @@ packages: '@prisma/fetch-engine@5.14.0-dev.34': resolution: {integrity: sha512-Ieqp/Zfq7KaZWndJAq2K0Z5r77DBPyvXlKXbztXnyvoQhce+9QTkjwJ8U3dOHUwSwNqIb6TY7j1dal3epSUZkg==} + '@prisma/fetch-engine@5.18.0': + resolution: {integrity: sha512-I/3u0x2n31rGaAuBRx2YK4eB7R/1zCuayo2DGwSpGyrJWsZesrV7QVw7ND0/Suxeo/vLkJ5OwuBqHoCxvTHpOg==} + '@prisma/fetch-engine@5.19.0': resolution: {integrity: sha512-oOiPNtmJX0cP/ebu7BBEouJvCw8T84/MFD/Hf2zlqjxkK4ojl38bB9i9J5LAxotL6WlYVThKdxc7HqoWnPOhqQ==} @@ -4459,6 +4477,9 @@ packages: '@prisma/get-platform@5.14.0-dev.34': resolution: {integrity: sha512-JlzzUMQKsj1cFMXiGMkqrdP7dl3OZtZQapEeCAoH42J6GCrEuV+qNhTOlkywyNuFDj+j1VjfE7p9HRFO1+kiiw==} + '@prisma/get-platform@5.18.0': + resolution: {integrity: sha512-Tk+m7+uhqcKDgnMnFN0lRiH7Ewea0OEsZZs9pqXa7i3+7svS3FSCqDBCaM9x5fmhhkufiG0BtunJVDka+46DlA==} + '@prisma/get-platform@5.19.0': resolution: {integrity: sha512-s9DWkZKnuP4Y8uy6yZfvqQ/9X3/+2KYf3IZUVZz5OstJdGBJrBlbmIuMl81917wp5TuK/1k2TpHNCEdpYLPKmg==} @@ -4468,9 +4489,6 @@ packages: '@prisma/instrumentation@5.18.0': resolution: {integrity: sha512-r074avGkpPXItk+josQPhufZEmGhUCb16PQx4ITPS40vWTpTPET4VsgCBZB2alIN6SS7pRFod2vz2M2HHEEylQ==} - '@prisma/instrumentation@5.19.0': - resolution: {integrity: sha512-krJx5SmFSOTPYfTgxdRYZ/fD6HR3vRHsLtqZs8upWhoPRuT2XbbY7TGFCcVXTRqlNvhaMZtRPnwoxoB3cAE4Yw==} - '@prisma/internals@5.0.0': resolution: {integrity: sha512-VGWyFk6QlSBXT8z65Alq5F3o9E8IiTtaBoa3rmKkGpZjUk85kJy3jZz4xkRv53TaeghGE5rWfwkfak26KtY5yQ==} @@ -4480,8 +4498,8 @@ packages: '@prisma/internals@5.3.1': resolution: {integrity: sha512-zkW73hPHHNrMD21PeYgCTBfMu71vzJf+WtfydtJbS0JVJKyLfOel0iWSQg7wjNeQfccKp+NdHJ/5rTJ4NEUzgA==} - '@prisma/nextjs-monorepo-workaround-plugin@5.19.0': - resolution: {integrity: sha512-OAqluu74z/b9esfNEuEHt+GQtRQkwObKj3dfQPVpTnrU1hCws7R22gtaHT4Qus+1r4xmTnVL2Wpz5vCpNVTBXQ==} + '@prisma/nextjs-monorepo-workaround-plugin@5.18.0': + resolution: {integrity: sha512-BRTytLDKe0JR/+uOrGJTeGJA+EhdgBbDM5Su+AML7t0Pz5Zi+5bjE5nHxcFLIVm/bJjDXd06P8UVkTdK6PW0VQ==} '@prisma/prisma-schema-wasm@4.17.0-26.6b0aef69b7cdfc787f822ecd7cdc76d5f1991584': resolution: {integrity: sha512-JFdsnSgBPN8reDTLOI9Vh/6ccCb2aD1LbY/LWQnkcIgNo6IdpzvuM+qRVbBuA6IZP2SdqQI8Lu6RL2P8EFBQUA==} @@ -11920,6 +11938,11 @@ packages: prisma-query-log@3.2.1: resolution: {integrity: sha512-xupR53tiMXOHwgsD/Afx0BpX5b6qCFpfy8LBeSIpW9vwKYp1EcPkhFtQpqajfOiNDkGOaB44p9Y0Y8kk4U4ziA==} + prisma@5.18.0: + resolution: {integrity: sha512-+TrSIxZsh64OPOmaSgVPH7ALL9dfU0jceYaMJXsNrTkFHO7/3RANi5K2ZiPB1De9+KDxCWn7jvRq8y8pvk+o9g==} + engines: {node: '>=16.13'} + hasBin: true + prisma@5.19.0: resolution: {integrity: sha512-Pu7lUKpVyTx8cVwM26dYh8NdvMOkMnJXzE8L6cikFuR4JwyMU5NKofQkWyxJKlTT4fNjmcnibTvklV8oVMrn+g==} engines: {node: '>=16.13'} @@ -17928,11 +17951,15 @@ snapshots: '@popperjs/core@2.11.8': {} - '@prisma/client@4.9.0(prisma@5.19.0)': + '@prisma/client@4.9.0(prisma@5.18.0)': dependencies: '@prisma/engines-version': 4.9.0-42.ceb5c99003b99c9ee2c1d2e618e359c14aef2ea5 optionalDependencies: - prisma: 5.19.0 + prisma: 5.18.0 + + '@prisma/client@5.18.0(prisma@5.18.0)': + optionalDependencies: + prisma: 5.18.0 '@prisma/client@5.19.0(prisma@5.19.0)': optionalDependencies: @@ -17958,7 +17985,8 @@ snapshots: '@prisma/debug@5.18.0': {} - '@prisma/debug@5.19.0': {} + '@prisma/debug@5.19.0': + optional: true '@prisma/debug@5.3.1': dependencies: @@ -17972,7 +18000,10 @@ snapshots: '@prisma/engines-version@5.14.0-6.264f24ce0b2f544ff968ff76bfaa999de1161361': {} - '@prisma/engines-version@5.19.0-31.5fe21811a6ba0b952a3bc71400666511fe3b902f': {} + '@prisma/engines-version@5.18.0-25.4c784e32044a8a016d99474bd02a3b6123742169': {} + + '@prisma/engines-version@5.19.0-31.5fe21811a6ba0b952a3bc71400666511fe3b902f': + optional: true '@prisma/engines@5.0.0': {} @@ -17983,12 +18014,20 @@ snapshots: '@prisma/fetch-engine': 5.14.0-dev.34 '@prisma/get-platform': 5.14.0-dev.34 + '@prisma/engines@5.18.0': + dependencies: + '@prisma/debug': 5.18.0 + '@prisma/engines-version': 5.18.0-25.4c784e32044a8a016d99474bd02a3b6123742169 + '@prisma/fetch-engine': 5.18.0 + '@prisma/get-platform': 5.18.0 + '@prisma/engines@5.19.0': dependencies: '@prisma/debug': 5.19.0 '@prisma/engines-version': 5.19.0-31.5fe21811a6ba0b952a3bc71400666511fe3b902f '@prisma/fetch-engine': 5.19.0 '@prisma/get-platform': 5.19.0 + optional: true '@prisma/engines@5.3.1': {} @@ -18021,11 +18060,18 @@ snapshots: '@prisma/engines-version': 5.14.0-6.264f24ce0b2f544ff968ff76bfaa999de1161361 '@prisma/get-platform': 5.14.0-dev.34 + '@prisma/fetch-engine@5.18.0': + dependencies: + '@prisma/debug': 5.18.0 + '@prisma/engines-version': 5.18.0-25.4c784e32044a8a016d99474bd02a3b6123742169 + '@prisma/get-platform': 5.18.0 + '@prisma/fetch-engine@5.19.0': dependencies: '@prisma/debug': 5.19.0 '@prisma/engines-version': 5.19.0-31.5fe21811a6ba0b952a3bc71400666511fe3b902f '@prisma/get-platform': 5.19.0 + optional: true '@prisma/fetch-engine@5.3.1(encoding@0.1.13)': dependencies: @@ -18104,9 +18150,14 @@ snapshots: dependencies: '@prisma/debug': 5.14.0-dev.34 + '@prisma/get-platform@5.18.0': + dependencies: + '@prisma/debug': 5.18.0 + '@prisma/get-platform@5.19.0': dependencies: '@prisma/debug': 5.19.0 + optional: true '@prisma/get-platform@5.3.1': dependencies: @@ -18131,14 +18182,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@prisma/instrumentation@5.19.0': - dependencies: - '@opentelemetry/api': 1.9.0 - '@opentelemetry/instrumentation': 0.52.1(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-trace-base': 1.25.1(@opentelemetry/api@1.9.0) - transitivePeerDependencies: - - supports-color - '@prisma/internals@5.0.0(encoding@0.1.13)': dependencies: '@antfu/ni': 0.21.4 @@ -18248,7 +18291,7 @@ snapshots: - encoding - supports-color - '@prisma/nextjs-monorepo-workaround-plugin@5.19.0': {} + '@prisma/nextjs-monorepo-workaround-plugin@5.18.0': {} '@prisma/prisma-schema-wasm@4.17.0-26.6b0aef69b7cdfc787f822ecd7cdc76d5f1991584': {} @@ -18955,7 +18998,7 @@ snapshots: string-argv: 0.3.2 uuid: 8.3.2 - '@snaplet/seed@0.98.0(@prisma/client@5.19.0(prisma@5.19.0))(@snaplet/copycat@5.0.0)(@types/pg@8.11.6)(babel-plugin-macros@3.1.0)(better-sqlite3@9.6.0)(encoding@0.1.13)(openai@4.56.0(encoding@0.1.13)(zod@3.23.8))(pg@8.12.0)': + '@snaplet/seed@0.98.0(@prisma/client@5.18.0(prisma@5.18.0))(@snaplet/copycat@5.0.0)(@types/pg@8.11.6)(babel-plugin-macros@3.1.0)(better-sqlite3@9.6.0)(encoding@0.1.13)(openai@4.56.0(encoding@0.1.13)(zod@3.23.8))(pg@8.12.0)': dependencies: '@inquirer/prompts': 5.3.8 '@langchain/core': 0.2.27(openai@4.56.0(encoding@0.1.13)(zod@3.23.8)) @@ -18989,7 +19032,7 @@ snapshots: yargs: 17.7.2 zod: 3.23.8 optionalDependencies: - '@prisma/client': 5.19.0(prisma@5.19.0) + '@prisma/client': 5.18.0(prisma@5.18.0) '@types/pg': 8.11.6 better-sqlite3: 9.6.0 pg: 8.12.0 @@ -27877,9 +27920,9 @@ snapshots: - encoding - supports-color - prisma-generator-ts-enums@1.1.0(prisma@5.19.0): + prisma-generator-ts-enums@1.1.0(prisma@5.18.0): dependencies: - '@prisma/client': 4.9.0(prisma@5.19.0) + '@prisma/client': 4.9.0(prisma@5.18.0) '@prisma/generator-helper': 4.16.2 prettier: 2.8.8 rimraf: 4.4.1 @@ -27924,11 +27967,16 @@ snapshots: dependencies: '@sqltools/formatter': 1.2.5 + prisma@5.18.0: + dependencies: + '@prisma/engines': 5.18.0 + prisma@5.19.0: dependencies: '@prisma/engines': 5.19.0 optionalDependencies: fsevents: 2.3.3 + optional: true probe-image-size@7.2.3: dependencies: