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

Update Sign In page #215

Open
allanlasser opened this issue Dec 9, 2024 · 0 comments
Open

Update Sign In page #215

allanlasser opened this issue Dec 9, 2024 · 0 comments
Labels
auth Accounts and authorization design
Milestone

Comments

@allanlasser
Copy link
Member

image

Spec

The sign in page is composed from two components that share common components between them:

1. Overview and service list

image

This provides users with a quick summary of the value of their MuckRock account and lets them know about all the services they have access to.

Service items have four fields (may require new model and database migration):

  1. the service's slug, a machine-readable string referenced by code
  2. the service's name, which should be a human-readable string with proper formatting
  3. the service's icon, which should be a square PNG with a minimum resolution of 512x512
  4. the service's provider, which is a text field
  5. a short description of the service that enforces a 70 character maximum

The service list should be styled with overflow-y: auto, so that an overflowing service list scrolls independently of the form.

2. Sign In Form

The sign in form has two variants:

Service-specific

image

When the intent field has a value that isn't squarelet, we should show details about the service with a corresponding slug in the sign in form's header: the icon, the name, and the provider.

Generic

image

When the intent field is empty, is squarelet, or doesn't match an existing service, we should show a more generic sign-in form with a simpler header.

Common Components

Common components can be copied from muckrock/documentcloud-frontend/src/lib/components/common:

  • Button, in ghost and primary modes
  • Field
  • FieldLabel
  • Input
@allanlasser allanlasser added design auth Accounts and authorization labels Dec 9, 2024
@eyeseast eyeseast added this to the Redesign milestone Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Accounts and authorization design
Projects
None yet
Development

No branches or pull requests

2 participants