Account · Profile and access: profiles, switchers, a user menu, sessions, keys
ProfileCard shows someone at a glance; ProfileEditor edits a profile seeded by its owner and saves once it changed, has a name and an email that reads, with a way to put it back. AccountSwitcher and WorkspaceSwitcher show the one in use in a row that opens a menu of the others and a way to add one; UserMenu opens from an avatar with who is signed in, the owner's rows and Sign out, through the new menus::menu_under. SessionList puts this device first, signs others out one by one or all after a second press. ApiKeyManager lists keys by their ends, makes one by name and shows its secret once.
This commit is contained in:
1 parent
0177d9f3c7
commit
31f5f91507
12 files changed
+1654
-8
No files matched your search
@@ -1,5 +1,6 @@
|
||||
use gpui::{AnyElement, App, Window, div, prelude::*};
|
||||
|
||||
mod access;
|
||||
mod sign_in;
|
||||
|
||||
use super::Page;
|
||||
@@ -34,6 +35,11 @@ const SCRIPT: &[Step] = &[
|
||||
Step::Type("123456"),
|
||||
Step::Wait(200),
|
||||
Step::Shot("code-failed"),
|
||||
Step::DownAt("account-user", 12.0, 12.0),
|
||||
Step::UpAt("account-user", 12.0, 12.0),
|
||||
Step::Wait(200),
|
||||
Step::Shot("user-menu"),
|
||||
Step::Key("escape"),
|
||||
];
|
||||
|
||||
fn render(window: &mut Window, cx: &mut App) -> AnyElement {
|
||||
@@ -42,5 +48,8 @@ fn render(window: &mut Window, cx: &mut App) -> AnyElement {
|
||||
.child(sign_in::sign_up(window, cx))
|
||||
.child(sign_in::by_email(window, cx))
|
||||
.child(sign_in::second_factor(window, cx))
|
||||
.child(access::switchers(window, cx))
|
||||
.child(access::profile(window, cx))
|
||||
.child(access::security_page(window, cx))
|
||||
.into_any_element()
|
||||
}
|
||||
Reference in new issue
Block a user