Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions .github/workflows/tests-and-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ jobs:
- uses: pnpm/action-setup@v3
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version-file: "package.json"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there was a warning since it uses node 18 by default, since one run crashed due memory I thought let's try setting it up properly and only then debug. After the upgrade it didn't happen. Could have been a one-time error or maybe this helped :)

cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Generate Prisma Client
Expand Down
2 changes: 0 additions & 2 deletions apps/events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
25 changes: 22 additions & 3 deletions apps/events/src/components/debug-invitations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<unknown>;
};

export function DebugInvitations({ invitations, accept }: Props) {
export function DebugInvitations({
invitations,
accept,
encryptionPublicKey,
encryptionPrivateKey,
signaturePrivateKey,
}: Props) {
return (
<ul className="text-xs">
{invitations.map((invitation) => {
Expand All @@ -16,7 +30,12 @@ export function DebugInvitations({ invitations, accept }: Props) {
<pre>{JSON.stringify(invitation, null, 2)}</pre>
<Button
onClick={() => {
accept(invitation);
accept({
encryptionPublicKey,
encryptionPrivateKey,
signaturePrivateKey,
invitation,
});
}}
>
Accept
Expand Down
Loading
Loading