Skip to content

Commit

Permalink
feat: add delegatable ability to generate a billing customer portal s…
Browse files Browse the repository at this point in the history
…ession (#98)

So far I've implemented generating a session for the current user - next
I'll add some UI to delegate this capability to other users by email
address.

TODO

- [x] add ability to delegate new capability to users
- [x] add UI to generate customer portal sessions for any delegations
you have
- [x] add headings to billing admin page to clarify which account is
"yours" and which you've been delegated access to
- [x] hide re-delegate UI if user doesn't have `access/delegate`


https://github.com/w3s-project/console/assets/1113/2f2dd841-c81d-45fe-9716-6bb30cf8352e
  • Loading branch information
Travis Vachon authored May 21, 2024
1 parent 2c6bd6c commit fcf3bbe
Show file tree
Hide file tree
Showing 8 changed files with 4,427 additions and 3,326 deletions.
2 changes: 1 addition & 1 deletion .github/actions/pnpm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ runs:
steps:
- uses: pnpm/action-setup@v2
with:
version: 8
version: 9
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,21 @@
"@ucanto/core": "^9.0.0",
"@ucanto/interface": "^9.0.0",
"@ucanto/transport": "^9.0.0",
"@w3ui/react": "^2.2.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",
"archy": "^1.0.0",
"ariakit-utils": "0.17.0-next.27",
"blueimp-md5": "^2.19.0",
"multiformats": "^12.1.3",
"next": "^13.5.4",
"react": "latest",
"react-dom": "latest",
"react-hook-form": "^7.51.3",
"react-hot-toast": "^2.4.1",
"swr": "^2.2.4"
},
Expand Down
Loading

0 comments on commit fcf3bbe

Please sign in to comment.