Skip to content

Extract Sharing Tool into @storacha/ui-react and update Console #597

@luisawatkins

Description

@luisawatkins

Move the space sharing UI from Console into the shared UI package (@storacha/ui-react) to centralize functionality and reduce duplication.

Scope

  • Add SpaceShare component to @storacha/ui-react
  • Export SpaceShare from package index
  • Update Console's share page to consume shared component
  • Verify builds and type checks

Implementation Details

New Component:

  • packages/ui/packages/react/src/SpaceShare.tsx

Export:

  • packages/ui/packages/react/src/index.ts

Console Integration:

  • packages/console/src/app/space/[did]/share/page.tsx

Key Features:

  • Email/DID sharing with delegation listing
  • Revocation support with status checking
  • UCAN archive download for DID delegations
  • Uses useW3 hook for client access

Acceptance Criteria

  • SpaceShare exported from @storacha/ui-react without Console dependencies
  • Console successfully renders SpaceShare on /space/[did]/share
  • Email sharing creates and lists delegations
  • DID input triggers UCAN download
  • Revoked delegations display separately
  • All builds and type checks pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions