Skip to content

Commit

Permalink
feat: share spaces via email (#123)
Browse files Browse the repository at this point in the history
### Add Share via Email Feature

**Context**:  
This PR introduces the Share via Email feature, allowing users to share
spaces using either an email address or DID. Depending on the input, we
render different buttons and actions (e.g., sharing via email or
generating a downloadable UCAN). Once shared via email, the “Shared
With” panel lists all shared emails (did:mailto) along with their
capabilities, fetched from the delegations stored in the client.

**Short Demo**:

https://www.loom.com/share/b33ee2f22a5b44628e5d9fc3d599dbf7?sid=0b008211-fc28-4cd4-a716-e67f44067661

**Minor Notes**:
- The Share button dynamically changes based on whether the user
provides an email or DID.
- The delegation list is displayed with relevant capabilities in the
“Shared With” panel.
  • Loading branch information
fforbeck authored Sep 24, 2024
1 parent c69c28d commit 896079b
Show file tree
Hide file tree
Showing 6 changed files with 1,950 additions and 1,374 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
"@ucanto/core": "^9.0.0",
"@ucanto/interface": "^9.0.0",
"@ucanto/transport": "^9.0.0",
"@w3ui/react": "^2.3.0",
"@w3ui/react": "2.3.0",
"@web3-storage/access": "^19.0.0",
"@web3-storage/capabilities": "^17.1.0",
"@web3-storage/content-claims": "^3.2.1",
"@web3-storage/data-segment": "^5.0.0",
"@web3-storage/did-mailto": "^2.1.0",
"@web3-storage/w3up-client": "^13.1.1",
"@web3-storage/w3up-client": "13.1.1",
"archy": "^1.0.0",
"ariakit-utils": "0.17.0-next.27",
"blueimp-md5": "^2.19.0",
Expand All @@ -53,9 +53,9 @@
"@types/react": "latest",
"@types/react-dom": "latest",
"autoprefixer": "latest",
"eslint": "latest",
"eslint-config-next": "latest",
"eslint-plugin-next-on-pages": "^1.6.3",
"eslint": "8.55.0",
"eslint-config-next": "14.0.4",
"eslint-plugin-next-on-pages": "1.6.3",
"postcss": "latest",
"tailwindcss": "latest",
"typescript": "latest",
Expand Down
Loading

0 comments on commit 896079b

Please sign in to comment.