Skip to content

[Feature] Add pool share/invite link feature #17

Description

@grantfox-oss

Getting Started

  1. Fork the repository: https://github.com/JointSave-org/Joint_Save
  2. Clone your fork:
   git clone https://github.com/<your-username>/Joint_Save.git
   cd Joint_Save
  1. Create a new branch:
   git checkout -b feat/pool-invite-link

Overview

There is no way to invite someone to join a pool by sharing a link, which is a prerequisite for Phase 3 social onboarding.

Requirements

Share Link Format

https://joint-save.vercel.app/join/<contract_address>

New Page: /join/[contractId]/page.tsx

  • Fetch pool details from Supabase + on-chain
  • Show: pool name, type, member count, deposit requirements, creator address
  • CTAs: "Connect Wallet to Request Join" or "Request to Join"

Share Button in Group Detail

  • "Share Invite Link" button in group-details.tsx for pool creators
  • Copies link to clipboard, shows "Link copied!" toast

join_requests Supabase Table

CREATE TABLE join_requests (
  id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
  pool_id UUID REFERENCES pools(id),
  requester_address TEXT NOT NULL,
  status TEXT DEFAULT 'pending',
  created_at TIMESTAMP DEFAULT NOW()
);

Acceptance Criteria

  • /join/<contractId> renders pool info correctly
  • "Request to Join" saves to Supabase
  • Share button copies correct URL with toast
  • Invalid contract IDs handled gracefully (404 state)
  • Mobile-responsive

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions