fireproof-storage / fireproof

Realtime database, runs anywhere. Install Fireproof in your front-end app or edge function, and sync data via any backend.
https://fireproof.storage
Other
282 stars 16 forks source link

Streamlined user invite flow #19

Open jchris opened 1 year ago

jchris commented 1 year ago

Currently, the user invite flow is not as smooth as it could be. Here is a revised flow.

sequenceDiagram
    participant Initiator
    participant Recipient
    participant System

    Initiator->>+System: Generate Share Link (1-click)
    System-->>-Initiator: Share Link Created

    Note over Initiator,System: Initiator shares link via any medium

    Recipient->>+System: Clicks on Share Link (1-click)
    System-->>-Recipient: Directs to Validation Page

    Recipient->>+System: Validate Email (1-click)
    System-->>-Recipient: Email Validated

    Note over System: Auto-creates 1:1 space & writes delegation for Initiator

    Recipient->>+System: Copy Delegation's CID URL (1-2 clicks)
    System-->>-Recipient: CID URL Copied

    Note over Recipient,Initiator: Recipient sends CID URL to Initiator

    Initiator->>+System: Clicks on CID URL (1-click)
    System-->>-Initiator: Joined 1:1 space

    Note over System: Automates the rest of the workflow for Initiator
jchris commented 1 year ago

Here is the current situation, where the first thing is sent from the

sequenceDiagram
    participant UserA as User A
    participant UserB as User B
    participant System

    UserA->>+System: Generate Share Token
    System-->>-UserA: Share Token Generated

    Note over UserA,UserB: Share Token is communicated manually

    UserB->>+System: Check Authorization (0-1 clicks)
    System-->>-UserB: Authorization Status

    Note over UserB,System: If not authorized, email validation is triggered

    UserB->>+System: Receive Share Token from User A
    System-->>-UserB: Token Received

    UserA->>+System: Initiate Sharing with received Share Token
    System-->>-UserA: Sharing Initiated, Invite Link CID Generated

    UserB->>+System: Join Shared DB with Invite Link CID
    System-->>-UserB: Joined Shared DB
valorant-dhruv commented 1 year ago

Can I try working on this?