-
Notifications
You must be signed in to change notification settings - Fork 2
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
When granting consent, immediately get access code rather than polling #116
When granting consent, immediately get access code rather than polling #116
Conversation
…g-flow-for-new-users-to-create-a-project
AP-3549 Onboarding flow for new users to create a project
As discussed with m - the basic flow is:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all looks pretty solid. Some tests?
Fair question. I'm not sure exactly what to test though. Basically there are two functions in this file that put together REST requests in a slightly complicated way. Do we want to snapshot the data on those requests? I'm not quite sure there's a lot of utility in that (people aren't going to know if the snapshot is "right" or not, so will probably blindly accept changes). Really the "test" is sending the request to the server and seeing if it's happy. The second one does some error handling logic also, but TBH I think we might revisit that as it's a bit weird. |
Instead let them create a project if they don't have one yet.
I'm okay to leave the tests if there's no sensible strategy for it. Would be nice to have some E2E tests for this, eventually. |
It seems the stories are failing because they use the manager-api which isn't available in the preview. |
Using https://github.com/chromaui/chromatic/pull/7740, immediately on receiving the
grant
event, request a token from the server.This partially solves AP-3549
📦 Published PR as canary version:
0.0.95--canary.116.adc0530.0
✨ Test out this PR locally via:
npm install @chromaui/addon-visual-tests@0.0.95--canary.116.adc0530.0 # or yarn add @chromaui/addon-visual-tests@0.0.95--canary.116.adc0530.0