Skip to content

Save/preserve patron's registration action post-registration  #9409

Description

@mekarpeles

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.

Screenshot 2024-06-06 at 9 52 43 AM

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:

  1. if the patron is logged in AND
  2. 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.

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Done

Relationships

None yet

Development

No branches or pull requests

Issue actions