Skip to content

Sign in guards & dialog usage  #208

Open
@joepio

Description

@joepio

Currently, the sign-up and sign-in UX in the browser isn't optimal:

  • We don't have a register button (Improved registration / new user wizard #245)
  • When the uses sees an invite, and presses sign in, the page does not redirect to where the invite was pointing
  • The existing behavior (for checking if a user is present) is inconsistent:
    • Chatrooms have no guard, they just throw errors if a guest tries to send a message
    • Edit pages show a warning message at the top
    • New buttons redirect to sign in + toast notification

What I want, is an easy to use and coherent UX.

Sign in Guards

I think we could have some sort of wrapping component that functions as a guard. If you press any actions inside it, a modal opens that asks you to sign in. This could also show the same register logic for #245.

I think its API is simply an invisible component that wraps other components:

<SignInGuard>
  some form or button or whatever that requires an Agent
</SignInGuard>

@Polleps thoughts?

Modal for instructions for dealing with secret

  • When creating a new agent, instruct user to save their secret somewhere safe. Copy to clipboard. Tell about password managers.
  • This should probably use the Dialog component

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions