╭ changed ─────────────╮ │src/ui/Home/Header.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────╮ │100 } │ │101 │ │102 var self = View{ .box = box, .data = data, .tab_ids = tab_ids }; │ │103 - // initial selected tab follows session.data.current_page — the web│ │104 - // layer decides this from the request URL, the TTY uses whatever │ │105 - // the session arrives with — so we don't bake a default here. │ │103 + // initial selected tab │ │104 self.getFocus().child_id = tab_ids[ │ │105 switch (session.data.current_page) { │ │106 .home_users => 0, │ ╰────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────╮ │107 .home_repos => 1, │ │110 - .settings => 2, │ │111 - .auth => 3, │ │108 + .home_settings => 2,│ │109 + .home_auth => 3, │ │110 + else => 0, │ │111 } │ │112 ]; │ │113 return self; │ ╰─────────────────────────────────────────╯