-
Notifications
You must be signed in to change notification settings - Fork 9
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
Docs: add system use case with retry as alternate flow #1798
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
The use cases documented on this page focus on how the system is supposed to work from the perspective of the end user. | ||
|
||
### Use case: Enroll contactless card to receive transit benefit | ||
|
||
**Primary Actor**: Transit rider | ||
|
||
**Systems**: Benefits app, payment processor | ||
|
||
**Preconditions**: | ||
|
||
- Transit rider has confirmed their eligibility with the Benefits app | ||
- Transit rider has their contactless card information available | ||
- Benefits app is able to contact the payment processor | ||
|
||
**Trigger**: Transit rider initiates the enrollment phase | ||
|
||
**Basic flow**: | ||
|
||
1. Transit rider enters their contactless card information | ||
2. Benefits app passes that information to the payment processor to enroll the card | ||
3. Payment processor successfully enrolls card | ||
|
||
**Alternate flows**: | ||
|
||
- 3a. Payment processor returns with one of the following errors: card verification failed, token is invalid, or general server error | ||
- 3a1. Transit rider chooses to retry, starting back at initiating the enrollment phase | ||
- 3b1. Transit rider leaves the Benefits app | ||
|
||
**Postconditions**: | ||
|
||
- Transit rider's contactless card is enrolled to receive the transit benefit |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Does
3b1
mean the user clicks the X on their browser, or that there is a button that takes them to Home or somewhere else? (Or is this kind of more specific user interface question not what a Use Case is all about? Not sure).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.
Yeah, so
3b1
is saying that the user's only alternative to retrying is to give up. And right, for use case purposes, we are not concerned with what specific UI mechanism they use to give up. The focus is on how the system and the user respond to each other.Here I'm documenting how the app currently works, but if let's say we wanted different behavior, we could update these alternate flows, e.g. we could add
3c1. Transit rider chooses to start over completely
or3d1. Transit rider contacts customer support
or whatever we think would be the best user experience. The nice thing about this is it expresses what the change is at a basic, conceptual level for everyone to see without having to touch Figma or code.Side note: I'm not sure if it's actually necessary to document
Transit rider leaves the Benefits app
-- that's a thing that really can happen at any point for any use case, right? -- but I left it in here for this first round to spark questions just like yours.