Skip to content

Tech debt: Reconcile drive invitation model with auto-accepted member adds #432

Description

@2witstudios

Summary: current invite API behaves like direct member add while schema/docs imply pending invitation acceptance. Evidence: apps/web/src/app/api/drives/[driveId]/members/invite/route.ts sets acceptedAt immediately and requires userId; packages/lib/src/services/drive-member-service.ts also auto-accepts; packages/db/src/schema/members.ts defines driveInvitations but runtime references are absent; docs/2.0-architecture/2.2-backend/database.md describes pending invitations. Prompt: choose one model (true invitation workflow vs direct add-member workflow) and align endpoint naming, data model usage, and docs. Acceptance criteria: invite semantics are unambiguous, code/schema/docs agree, tests cover the chosen behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions