Skip to content

UX papercuts when an oauth token is revoked #723

@code-asher

Description

@code-asher

To reproduce:

  1. Log in with oauth locally (no remotes opened)
  2. With VS Code still open and the Coder sidebar opened, revoke the token from the Coder dashboard

I assume these issues could also happen if the refresh token expired? But not sure how to easily test that.

  • The sidebar becomes this half-logged-in state where "my workspaces" is blank and "all workspaces" is populated. To log back in, you must log out first then log in. Instead, we should revert the sidebar to the logged out state where the "log in" button is shown.

  • A notification saying to log in with the Coder sidebar appears. We could add a log in button directly to this notification, might be nicer than having to go through the sidebar.

  • Sometimes you can get two notifications, that both more or less say the same thing. Could we consolidate them? Personally I like the one in the corner better than the big modal popup one, at least for this scenario.

Image
  • When I do log back in, my "all workspaces" view was empty. A manual refresh fixes it, but if I leave VS Code open it never gets populated. We are probably missing an initial call to populate those workspaces after logging back in.

Metadata

Metadata

Assignees

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