Problem
A clear and concise description of what you want to happen
When a patron registers for Open Library, often it's because they've clicked some action:
- Borrow
- Reading Log / List action
- Notes / Star Rating / Community Review
- Following
- Edit
When a patron registers, if an action was taken, we should save this action in a temporary cookie value that persists until registration is complete. When registration is complete, the account is activated, and they are logged in, we should show them a toast message or banner with a button to complete or dismiss their action.
Breakdown
Update the registration model code so that when we create a new account, a cookie is set. If the patron is logged in, they will see a toast message until they click either the action or the dismiss link/button. If either of these actions are clicked, we can remove the cookie key + value using javascript? At least for the initial plan, this feature won't work if js is disabled (which is already the experience every patron is having).
The technical challenge will be implementing a toast message that shows up on any page:
- if the patron is logged in AND
- if the cookie is set
As we said, the cookie (via js) will unset once either action is clicked on the toast (dismiss or complete).
Related files
Stakeholders
Note: Before making a new branch or updating an existing one, please ensure your branch is up to date.
Problem
A clear and concise description of what you want to happen
When a patron registers for Open Library, often it's because they've clicked some action:
When a patron registers, if an action was taken, we should save this action in a temporary cookie value that persists until registration is complete. When registration is complete, the account is activated, and they are logged in, we should show them a toast message or banner with a button to complete or dismiss their action.
Breakdown
Update the registration model code so that when we create a new account, a cookie is set. If the patron is logged in, they will see a toast message until they click either the action or the dismiss link/button. If either of these actions are clicked, we can remove the cookie key + value using javascript? At least for the initial plan, this feature won't work if js is disabled (which is already the experience every patron is having).
The technical challenge will be implementing a toast message that shows up on any page:
As we said, the cookie (via js) will unset once either action is clicked on the toast (dismiss or complete).
Related files
Stakeholders
Note: Before making a new branch or updating an existing one, please ensure your branch is up to date.