Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add delegatable ability to generate a billing customer portal session #98

Merged
merged 7 commits into from
May 21, 2024

Conversation

travis
Copy link
Member

@travis travis commented Apr 25, 2024

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

  • add ability to delegate new capability to users
  • add UI to generate customer portal sessions for any delegations you have
  • add headings to billing admin page to clarify which account is "yours" and which you've been delegated access to
  • hide re-delegate UI if user doesn't have access/delegate
Screen.Recording.2024-05-01.at.4.26.53.PM.mov

…ession

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

- [ ] add ability to delegate new capability to users
- [ ] add UI to generate customer portal sessions for any delegations you have
@travis travis marked this pull request as draft April 25, 2024 23:47
@travis travis requested a review from alanshaw May 8, 2024 16:08
@travis travis marked this pull request as ready for review May 8, 2024 16:08
@travis travis requested review from Gozala, joaosa and gammazero May 9, 2024 18:16
1) differentiate "my account" from "other accounts" more clearly
2) don't show delegate UI if it won't work
travis added a commit to storacha/w3up that referenced this pull request May 13, 2024
Our billing system has an external admin customer portal system and
their API lets us generate sessions for it on demand - add a capability
that will let our customers delegate this ability the email address that
is responsible for paying the bills.

See storacha/console#98 for an example of
this in action.

---------

Co-authored-by: Vasco Santos <santos.vasco10@gmail.com>
Copy link
Contributor

Website preview 🔗✨

build log

@travis
Copy link
Member Author

travis commented May 15, 2024

This is ready to go, but I'm going to wait to deploy until storacha/w3infra#358 is in production since it will not work without that change in the service.

travis added a commit to storacha/w3infra that referenced this pull request May 21, 2024
Implement plan/create-admin-session - see
storacha/console#98 for an example of this in
action.

Originally #358, moving here
to unstick the integration tests.
@travis travis merged commit fcf3bbe into main May 21, 2024
5 checks passed
@travis travis deleted the feat/billing-user branch May 21, 2024 20:45
travis pushed a commit that referenced this pull request Jun 20, 2024
🤖 I have created a release *beep* *boop*
---


##
[1.7.0](w3console-v1.6.0...w3console-v1.7.0)
(2024-05-23)


### Features

* add delegatable ability to generate a billing customer portal session
([#98](#98))
([fcf3bbe](fcf3bbe))


### Bug Fixes

* don't render escaped &lt;br/&gt;
([#100](#100))
([d7c0086](d7c0086))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants