Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
4b3c84d
Bump storybook from 9.1.12 to 9.1.16
dependabot[bot] Nov 17, 2025
6f1dbb2
Bump @types/validator from 13.15.2 to 13.15.9
dependabot[bot] Nov 17, 2025
c5514de
Bump eslint-config-next from 15.5.5 to 15.5.6
dependabot[bot] Nov 17, 2025
bf1d8f1
Bump @prisma/client from 6.17.1 to 6.19.0
dependabot[bot] Nov 17, 2025
d5af904
Merge pull request #528 from complexdatacollective/dependabot/npm_and…
jthrilly Nov 17, 2025
c81905f
Merge pull request #531 from complexdatacollective/dependabot/npm_and…
jthrilly Nov 17, 2025
be64aa4
Merge pull request #529 from complexdatacollective/dependabot/npm_and…
jthrilly Nov 17, 2025
aedefb4
Merge pull request #530 from complexdatacollective/dependabot/npm_and…
jthrilly Nov 17, 2025
5d6b9b6
update dependencies
jthrilly Nov 17, 2025
c94ba3b
Bump @types/validator from 13.15.9 to 13.15.10
dependabot[bot] Nov 24, 2025
e025ae5
Bump knip from 5.69.1 to 5.70.1
dependabot[bot] Nov 24, 2025
b351030
Bump vitest from 4.0.10 to 4.0.13
dependabot[bot] Nov 24, 2025
b61696d
Merge pull request #539 from complexdatacollective/dependabot/npm_and…
jthrilly Nov 25, 2025
1a58200
Merge pull request #537 from complexdatacollective/dependabot/npm_and…
jthrilly Nov 25, 2025
2bcaec3
Merge pull request #536 from complexdatacollective/dependabot/npm_and…
jthrilly Nov 25, 2025
87a3468
Bump sass from 1.94.0 to 1.94.2
dependabot[bot] Nov 25, 2025
28dc89b
Merge pull request #538 from complexdatacollective/dependabot/npm_and…
jthrilly Nov 25, 2025
7fdd903
merge main
jthrilly Nov 25, 2025
945805f
Bump vitest from 4.0.13 to 4.0.14
dependabot[bot] Dec 1, 2025
dcad962
Bump motion from 12.23.24 to 12.23.25
dependabot[bot] Dec 1, 2025
66de211
Bump @typescript-eslint/parser from 8.47.0 to 8.48.0
dependabot[bot] Dec 1, 2025
b8bd0e3
Bump knip from 5.70.2 to 5.71.0
dependabot[bot] Dec 1, 2025
d5c39c5
Bump mdast-util-to-hast in the npm_and_yarn group across 1 directory
dependabot[bot] Dec 2, 2025
d792778
Merge pull request #544 from complexdatacollective/dependabot/npm_and…
jthrilly Dec 3, 2025
4a99506
Merge pull request #543 from complexdatacollective/dependabot/npm_and…
jthrilly Dec 3, 2025
859807f
Merge pull request #542 from complexdatacollective/dependabot/npm_and…
jthrilly Dec 3, 2025
118a07c
Merge pull request #541 from complexdatacollective/dependabot/npm_and…
jthrilly Dec 3, 2025
0cc3089
Merge pull request #546 from complexdatacollective/dependabot/npm_and…
jthrilly Dec 3, 2025
b22f2b0
Bump eslint-config-next from 15.5.6 to 15.5.7
dependabot[bot] Dec 8, 2025
0cee35b
Bump react-hook-form from 7.66.0 to 7.68.0
dependabot[bot] Dec 8, 2025
42dbf54
Bump @types/papaparse from 5.5.0 to 5.5.1
dependabot[bot] Dec 8, 2025
9a9df26
Bump @vitejs/plugin-react from 5.1.1 to 5.1.2
dependabot[bot] Dec 8, 2025
e67c2bb
Merge pull request #554 from complexdatacollective/dependabot/npm_and…
jthrilly Dec 12, 2025
2cba064
Merge pull request #551 from complexdatacollective/dependabot/npm_and…
jthrilly Dec 12, 2025
2b1f37c
Merge pull request #552 from complexdatacollective/dependabot/npm_and…
jthrilly Dec 12, 2025
6f056d4
Merge pull request #553 from complexdatacollective/dependabot/npm_and…
jthrilly Dec 12, 2025
b83b6d9
feat: Upgrade Prisma from v6 to v7
claude Dec 12, 2025
611b700
fix: Correct Prisma client import path in standalone scripts
claude Dec 12, 2025
a393446
refactor: Reorganize Prisma files into lib/db directory
claude Dec 12, 2025
c41ab2a
refactor: Simplify lib/db naming
claude Dec 12, 2025
49f0057
fix: Run prisma generate explicitly in build:platform script
claude Dec 12, 2025
696bf55
fix: Use tsx to run standalone scripts with TypeScript imports
claude Dec 12, 2025
d804df2
refactor: Use Node.js --experimental-strip-types instead of tsx
claude Dec 12, 2025
f3ebc98
revert: Use tsx instead of --experimental-strip-types
claude Dec 12, 2025
7f90195
refactor: Convert standalone scripts to TypeScript and move to /scripts
claude Dec 12, 2025
c528eeb
refactor: Move migrate-and-start.sh to scripts and simplify Dockerfile
claude Dec 12, 2025
b744ea7
Initial plan
Copilot Dec 12, 2025
fecd341
Merge main branch and resolve pnpm-lock.yaml conflict
Copilot Dec 12, 2025
c1e5352
Merge remote-tracking branch 'origin/main' into copilot/sub-pr-556
Copilot Dec 12, 2025
2e680c8
Merge pull request #559 from complexdatacollective/copilot/sub-pr-556
jthrilly Dec 12, 2025
d9834c1
Merge origin/next into prisma-v7-upgrade branch
claude Dec 12, 2025
bed7346
Merge remote changes into prisma-v7-upgrade branch
claude Dec 12, 2025
1df6389
fix: Update knip config for Prisma v7 and remove unused jest
claude Dec 12, 2025
2d9896e
feat: Add support for Neon serverless PostgreSQL adapter
claude Dec 12, 2025
10ab16d
refactor: Simplify Prisma adapter setup by reusing singleton
claude Dec 12, 2025
bfc5c68
Merge pull request #556 from complexdatacollective/claude/upgrade-pri…
jthrilly Dec 12, 2025
60104c2
Initial plan
Copilot Dec 12, 2025
f4daa84
docs: Update comment to reflect correct db file path
Copilot Dec 12, 2025
215c380
Merge pull request #561 from complexdatacollective/copilot/sub-pr-560
jthrilly Dec 12, 2025
de57d53
Fix Docker build by adding prisma generate to builder stage
claude Dec 12, 2025
202cd9d
Merge pull request #562 from complexdatacollective/claude/fix-docker-…
jthrilly Dec 12, 2025
07a0eb4
Bump version to 3.1.0
claude Dec 12, 2025
5eedd1d
Merge pull request #563 from complexdatacollective/claude/bump-versio…
jthrilly Dec 12, 2025
16b2c69
fix: Use PG adapter directly in CLI scripts to bypass Neon adapter issue
claude Dec 12, 2025
0de3701
Merge pull request #564 from complexdatacollective/claude/fix-prisma-…
jthrilly Dec 12, 2025
7d0d066
Bump knip from 5.71.0 to 5.73.4
dependabot[bot] Dec 15, 2025
2967bce
Bump sass from 1.94.2 to 1.96.0
dependabot[bot] Dec 15, 2025
713979d
Bump motion from 12.23.25 to 12.23.26
dependabot[bot] Dec 15, 2025
f643bbe
Bump prettier-plugin-tailwindcss from 0.7.1 to 0.7.2
dependabot[bot] Dec 15, 2025
1f6305a
Bump @t3-oss/env-nextjs from 0.13.8 to 0.13.10
dependabot[bot] Dec 15, 2025
92f7b4c
Merge pull request #569 from complexdatacollective/dependabot/npm_and…
jthrilly Dec 17, 2025
e2c9612
Merge pull request #568 from complexdatacollective/dependabot/npm_and…
jthrilly Dec 17, 2025
072fb00
Merge pull request #566 from complexdatacollective/dependabot/npm_and…
jthrilly Dec 17, 2025
37df1d8
Merge pull request #567 from complexdatacollective/dependabot/npm_and…
jthrilly Dec 17, 2025
a62e21b
Merge pull request #565 from complexdatacollective/dependabot/npm_and…
jthrilly Dec 17, 2025
f3c8e69
Bump es-toolkit from 1.42.0 to 1.43.0
dependabot[bot] Dec 22, 2025
24161b4
Bump knip from 5.73.4 to 5.76.3
dependabot[bot] Dec 22, 2025
1726348
Bump @tailwindcss/postcss from 4.1.17 to 4.1.18
dependabot[bot] Dec 22, 2025
2bb7dcc
Bump validator from 13.15.23 to 13.15.26
dependabot[bot] Dec 22, 2025
748ffb4
Bump @prisma/adapter-pg from 7.1.0 to 7.2.0
dependabot[bot] Dec 22, 2025
ca724d2
Prevent sociogram navigation before automatic layout has converged
jthrilly Jan 8, 2026
e7f7a35
remove bundled versions of d3 scripts
jthrilly Jan 8, 2026
ccd0ea2
Initial plan
Copilot Jan 8, 2026
055d1fb
Memoize onLayoutComplete callback with useCallback
Copilot Jan 8, 2026
b390572
Merge pull request #580 from complexdatacollective/copilot/sub-pr-578…
jthrilly Jan 8, 2026
6170979
Merge pull request #572 from complexdatacollective/dependabot/npm_and…
jthrilly Jan 8, 2026
ee63a01
Merge pull request #573 from complexdatacollective/dependabot/npm_and…
jthrilly Jan 8, 2026
0183b73
Merge pull request #576 from complexdatacollective/dependabot/npm_and…
jthrilly Jan 8, 2026
f9506a8
Merge pull request #575 from complexdatacollective/dependabot/npm_and…
jthrilly Jan 8, 2026
e8f3cdb
Merge pull request #574 from complexdatacollective/dependabot/npm_and…
jthrilly Jan 8, 2026
f594576
Merge branch 'next' into fix/prevent-navigation
jthrilly Jan 9, 2026
242ffbd
Merge pull request #578 from complexdatacollective/fix/prevent-naviga…
jthrilly Jan 9, 2026
a5c3a18
Bump storybook in the npm_and_yarn group across 1 directory
dependabot[bot] Dec 18, 2025
d49b7d3
address issues caused by knip bug with importing SCSS files
jthrilly Jan 9, 2026
f212196
merge with main
jthrilly Jan 9, 2026
937e75c
add workflow to deploy storybook to netlify
jthrilly Jan 9, 2026
09c9b41
update netlify storybook workflow
jthrilly Jan 9, 2026
bfe51ff
skip env validation for storybook
jthrilly Jan 9, 2026
3fc9ca6
investigate checkForNeededMigrations() error
jthrilly Jan 9, 2026
97f5239
update prisma migrate diff to v7 syntax
jthrilly Jan 9, 2026
1660586
remove postinstall script so env files aren't loaded too soon
jthrilly Jan 9, 2026
e1a1309
add dotenv to prisma config
jthrilly Jan 9, 2026
73bec41
update eslint config
jthrilly Jan 9, 2026
bbcbd28
work around database env not being available during container build
jthrilly Jan 9, 2026
0f3a26a
reinstate generation of prisma client with dummy database url
jthrilly Jan 9, 2026
0b715b1
use t3 env and skip validation in certain contexts
jthrilly Jan 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#SANDBOX_MODE=false # true or false - if true, the app will use the sandbox mode, which disables resetting the database and other features
#PUBLIC_URL="http://yourdomain.com" # When using advanced deployment, this is required. Set to the domain name of your app
#INSTALLATION_ID="your-app-name" # A unique identifier for your app, used for analytics. Generated automatically if not set.
#USE_NEON_POSTGRES_ADAPTER=false # true or false - If true, uses Neon serverless PostgreSQL adapter instead of standard pg adapter. Required for Vercel/Netlify deployments with Neon. Defaults to false.

# -------------------
# Required environment variables
Expand Down
11 changes: 10 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,22 @@ const config = {
project: path.join(__dirname, 'tsconfig.json'),
},
plugins: ['@typescript-eslint'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/stylistic', 'plugin:@typescript-eslint/recommended', 'next/core-web-vitals', 'prettier', 'plugin:storybook/recommended'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/stylistic',
'plugin:@typescript-eslint/recommended',
'next/core-web-vitals',
'prettier',
'plugin:storybook/recommended',
],
ignorePatterns: [
'node_modules',
'*.stories.*',
'*.test.*',
'public',
'.eslintrc.cjs',
'lib/gb/generated',
'storybook-static',
],
rules: {
'@next/next/no-img-element': 'off',
Expand Down
64 changes: 64 additions & 0 deletions .github/workflows/deploy-storybook.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Deploy Storybook

on:
push:
branches:
- main
pull_request:
branches:
- main
- 'v*'
workflow_dispatch:

permissions:
contents: read
pull-requests: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Get pnpm store directory
id: pnpm-cache
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT

- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build Storybook
run: pnpm build-storybook

- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v3
with:
publish-dir: './storybook-static'
production-branch: main
production-deploy: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions - ${{ github.event.head_commit.message || github.event.pull_request.title }}"
enable-pull-request-comment: true
enable-commit-comment: false
overwrites-pull-request-comment: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_STORYBOOK_SITE_ID }}
timeout-minutes: 5
27 changes: 1 addition & 26 deletions .github/workflows/docker-build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,6 @@ on:
branches:
- main
- 'v*'
# Only build when relevant files change
paths:
- 'Dockerfile'
- 'package.json'
- 'pnpm-lock.yaml'
- 'prisma/**'
- 'app/**'
- 'components/**'
- 'lib/**'
- 'actions/**'
- 'hooks/**'
- 'utils/**'
- 'schemas/**'
- 'types/**'
- 'public/**'
- 'styles/**'
- 'next.config.js'
- 'tailwind.config.ts'
- 'postcss.config.js'
- 'tsconfig.json'
- '.github/workflows/docker-build-pr.yml'
- 'postinstall.js'
- 'migrate-and-start.sh'
- 'setup-database.js'
- 'initialize.js'

permissions:
contents: read
Expand Down Expand Up @@ -86,4 +61,4 @@ jobs:
name: ${{ steps.artifact-info.outputs.name }}
path: /tmp/image.tar
retention-days: 7
compression-level: 1 # Minimal compression for faster upload/download
compression-level: 1 # Minimal compression for faster upload/download
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
/prisma/db.sqlite
/prisma/db.sqlite-journal

# prisma generated client
/lib/db/generated

# next.js
/.next/
/out/
Expand Down
11 changes: 0 additions & 11 deletions CHANGELOG.md

This file was deleted.

37 changes: 21 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,15 @@ WORKDIR /app
# Enable corepack early for better caching
RUN corepack enable

# Copy dependency files, Prisma schema, and postinstall script
COPY package.json pnpm-lock.yaml* postinstall.js ./
COPY prisma ./prisma
# Copy dependency files
COPY package.json pnpm-lock.yaml* prisma.config.ts env.js ./
COPY lib/db/schema.prisma ./lib/db/schema.prisma

# Install pnpm and dependencies with cache mount for faster builds
RUN --mount=type=cache,target=/root/.local/share/pnpm/store \
--mount=type=cache,target=/root/.cache/pnpm \
corepack enable pnpm && pnpm i --frozen-lockfile --prefer-offline

# Copy remaining setup scripts
COPY migrate-and-start.sh setup-database.js initialize.js ./

# ---------

# Rebuild the source code only when needed
Expand All @@ -32,9 +29,8 @@ WORKDIR /app
# Install git for version info
RUN apk add --no-cache git

# Copy node_modules and Prisma files from deps stage
# Copy node_modules from deps stage
COPY --from=deps /app/node_modules ./node_modules
COPY --from=deps /app/prisma ./prisma

# Copy source code
COPY . .
Expand All @@ -44,8 +40,14 @@ ENV SKIP_ENV_VALIDATION=true
ENV NODE_ENV=production
ENV NODE_OPTIONS="--max-old-space-size=4096"

# Enable pnpm and build
RUN corepack enable pnpm && pnpm run build
# Enable pnpm, generate Prisma client, and build
# Note: prisma generate must run here because the generated client (lib/db/generated/)
# is gitignored and not copied from deps stage (only node_modules is copied)
# and without the client being present, the build will fail.
#
# The client is generated _again_ as part of migrate-and-start.sh in the final image
# to ensure that it inherits the correct runtime environment variables.
RUN corepack enable pnpm && pnpm exec prisma generate && pnpm run build

# Production image, copy all the files and run next
FROM base AS runner
Expand All @@ -70,16 +72,19 @@ RUN mkdir .next && chown nextjs:nodejs .next
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static

# Copy runtime scripts and database schema
COPY --from=builder --chown=nextjs:nodejs /app/initialize.js ./
COPY --from=builder --chown=nextjs:nodejs /app/setup-database.js ./
COPY --from=builder --chown=nextjs:nodejs /app/migrate-and-start.sh ./
COPY --from=builder --chown=nextjs:nodejs /app/prisma ./prisma
# Copy runtime scripts, database files, and dependencies needed for tsx
COPY --from=builder --chown=nextjs:nodejs /app/scripts ./scripts
COPY --from=builder --chown=nextjs:nodejs /app/lib/db ./lib/db
COPY --from=builder --chown=nextjs:nodejs /app/prisma.config.ts ./
COPY --from=builder --chown=nextjs:nodejs /app/node_modules ./node_modules
COPY --from=builder --chown=nextjs:nodejs /app/package.json ./
COPY --from=builder --chown=nextjs:nodejs /app/env.js ./
COPY --from=builder --chown=nextjs:nodejs /app/tsconfig.json ./

# Switch to non-root user
USER nextjs

EXPOSE 3000

# Use exec form for better signal handling
CMD ["sh", "migrate-and-start.sh"]
CMD ["sh", "scripts/migrate-and-start.sh"]
2 changes: 1 addition & 1 deletion actions/activityFeed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { safeRevalidateTag } from '~/lib/cache';
import type { Activity, ActivityType } from '~/lib/data-table/types';
import { prisma } from '~/utils/db';
import { prisma } from '~/lib/db';

export async function addEvent(
type: ActivityType,
Expand Down
2 changes: 1 addition & 1 deletion actions/appSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { type z } from 'zod';
import { safeRevalidateTag } from '~/lib/cache';
import { type AppSetting, appSettingsSchema } from '~/schemas/appSettings';
import { requireApiAuth } from '~/utils/auth';
import { prisma } from '~/utils/db';
import { prisma } from '~/lib/db';
import { ensureError } from '~/utils/ensureError';

// Convert string | boolean | Date to string
Expand Down
2 changes: 1 addition & 1 deletion actions/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { cookies } from 'next/headers';
import { redirect } from 'next/navigation';
import { createUserFormDataSchema, loginSchema } from '~/schemas/auth';
import { auth, getServerSession } from '~/utils/auth';
import { prisma } from '~/utils/db';
import { prisma } from '~/lib/db';

export async function signup(formData: unknown) {
const parsedFormData = createUserFormDataSchema.safeParse(formData);
Expand Down
4 changes: 2 additions & 2 deletions actions/interviews.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use server';

import { createId } from '@paralleldrive/cuid2';
import { Prisma, type Interview, type Protocol } from '@prisma/client';
import { Prisma, type Interview, type Protocol } from '~/lib/db/generated/client';
import { cookies } from 'next/headers';
import trackEvent from '~/lib/analytics';
import { safeRevalidateTag } from '~/lib/cache';
Expand All @@ -26,7 +26,7 @@ import type {
} from '~/schemas/interviews';
import { type NcNetwork } from '~/schemas/network-canvas';
import { requireApiAuth } from '~/utils/auth';
import { prisma } from '~/utils/db';
import { prisma } from '~/lib/db';
import { ensureError } from '~/utils/ensureError';
import { addEvent } from './activityFeed';
import { uploadZipToUploadThing } from './uploadThing';
Expand Down
2 changes: 1 addition & 1 deletion actions/participants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
updateSchema,
} from '~/schemas/participant';
import { requireApiAuth } from '~/utils/auth';
import { prisma } from '~/utils/db';
import { prisma } from '~/lib/db';

export async function deleteParticipants(participantIds: string[]) {
await requireApiAuth();
Expand Down
4 changes: 2 additions & 2 deletions actions/protocols.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
'use server';

import { type Protocol } from '@codaco/shared-consts';
import { Prisma } from '@prisma/client';
import { Prisma } from '~/lib/db/generated/client';
import { safeRevalidateTag } from 'lib/cache';
import { hash } from 'ohash';
import { type z } from 'zod';
import { getUTApi } from '~/lib/uploadthing-server-helpers';
import { protocolInsertSchema } from '~/schemas/protocol';
import { requireApiAuth } from '~/utils/auth';
import { prisma } from '~/utils/db';
import { prisma } from '~/lib/db';
import { addEvent } from './activityFeed';

// When deleting protocols we must first delete the assets associated with them
Expand Down
2 changes: 1 addition & 1 deletion actions/reset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { env } from 'process';
import { safeRevalidateTag } from '~/lib/cache';
import { getUTApi } from '~/lib/uploadthing-server-helpers';
import { requireApiAuth } from '~/utils/auth';
import { prisma } from '~/utils/db';
import { prisma } from '~/lib/db';

export const resetAppSettings = async () => {
if (env.NODE_ENV !== 'development') {
Expand Down
2 changes: 1 addition & 1 deletion app/(blobs)/(setup)/setup/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
requireAppNotExpired,
} from '~/queries/appSettings';
import { getServerSession } from '~/utils/auth';
import { prisma } from '~/utils/db';
import { prisma } from '~/lib/db';
import Setup from './Setup';

async function getSetupData() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';

import type { Events } from '@prisma/client';
import type { Events } from '~/lib/db/generated/client';
import type { ColumnDef } from '@tanstack/react-table';
import { use, useMemo } from 'react';
import { DataTable } from '~/components/data-table/data-table';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
type Activity,
activityTypes,
} from '~/lib/data-table/types';
import type { Events } from '@prisma/client';
import type { Events } from '~/lib/db/generated/client';
import TimeAgo from '~/components/ui/TimeAgo';
import { DataTableColumnHeader } from '~/components/DataTable/ColumnHeader';
import { getBadgeColorsForActivityType } from './utils';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';

import type { Interview } from '@prisma/client';
import type { Interview } from '~/lib/db/generated/client';
import type { Row } from '@tanstack/react-table';
import { MoreHorizontal } from 'lucide-react';
import Link from 'next/link';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import type { Row } from '@tanstack/react-table';
import { useState } from 'react';
import ParticipantModal from '~/app/dashboard/participants/_components/ParticipantModal';
import type { ParticipantWithInterviews } from '~/types/types';
import type { Participant } from '@prisma/client';
import type { Participant } from '~/lib/db/generated/client';

export const ActionsDropdown = ({
row,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';

import type { Participant, Protocol } from '@prisma/client';
import type { Participant, Protocol } from '~/lib/db/generated/client';
import { useRef, useState } from 'react';
import {
Select,
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/_components/RecruitmentTestSection.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use client';
import type { Participant, Protocol } from '@prisma/client';
import type { Participant, Protocol } from '~/lib/db/generated/client';
import { type Route } from 'next';
import { useRouter } from 'next/navigation';
import { use, useEffect, useState } from 'react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Interview } from '@prisma/client';
import type { Interview } from '~/lib/db/generated/client';
import { AlertCircle, Loader2, Trash2 } from 'lucide-react';
import { type Dispatch, type SetStateAction, useEffect, useState } from 'react';
import { deleteInterviews } from '~/actions/interviews';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Interview } from '@prisma/client';
import type { Interview } from '~/lib/db/generated/client';
import { DialogDescription } from '@radix-ui/react-dialog';
import { FileWarning, Loader2, XCircle } from 'lucide-react';
import { useState } from 'react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Button } from '~/components/ui/Button';

import { type Participant } from '@prisma/client';
import { type Participant } from '~/lib/db/generated/client';
import { useState } from 'react';
import ParticipantModal from '~/app/dashboard/participants/_components/ParticipantModal';
import { Plus } from 'lucide-react';
Expand Down
Loading
Loading