diff --git a/.github/workflows/tests-and-checks.yml b/.github/workflows/tests-and-checks.yml index 0ecefbf8..b6647384 100644 --- a/.github/workflows/tests-and-checks.yml +++ b/.github/workflows/tests-and-checks.yml @@ -11,6 +11,10 @@ jobs: - uses: pnpm/action-setup@v3 with: version: 9 + - uses: actions/setup-node@v4 + with: + node-version-file: "package.json" + cache: "pnpm" - name: Install dependencies run: pnpm install --frozen-lockfile - name: Generate Prisma Client diff --git a/apps/events/package.json b/apps/events/package.json index 671fece7..92f219be 100644 --- a/apps/events/package.json +++ b/apps/events/package.json @@ -19,9 +19,7 @@ "dependencies": { "@automerge/automerge": "^v2.2.9-alpha.3", "@automerge/automerge-repo": "^2.0.0-alpha.14", - "@automerge/automerge-repo-network-websocket": "^2.0.0-alpha.14", "@automerge/automerge-repo-react-hooks": "^2.0.0-alpha.14", - "@automerge/automerge-repo-storage-indexeddb": "^2.0.0-alpha.14", "@noble/hashes": "^1.5.0", "@privy-io/react-auth": "^1.88.4", "@radix-ui/react-avatar": "^1.1.1", diff --git a/apps/events/src/components/debug-invitations.tsx b/apps/events/src/components/debug-invitations.tsx index 2118f441..a9d07a83 100644 --- a/apps/events/src/components/debug-invitations.tsx +++ b/apps/events/src/components/debug-invitations.tsx @@ -4,10 +4,24 @@ import { Button } from './ui/button'; type Props = { invitations: Invitation[]; - accept: (invitation: Invitation) => void; + encryptionPublicKey: string; + encryptionPrivateKey: string; + signaturePrivateKey: string; + accept: (params: { + encryptionPublicKey: string; + encryptionPrivateKey: string; + signaturePrivateKey: string; + invitation: Invitation; + }) => Promise; }; -export function DebugInvitations({ invitations, accept }: Props) { +export function DebugInvitations({ + invitations, + accept, + encryptionPublicKey, + encryptionPrivateKey, + signaturePrivateKey, +}: Props) { return (