╭ changed ─────────────╮ │src/ui/Repo/Issues.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │236 │ │237 // the tabs at the top. │ │238 { │ │239 - var sub_header = try SubHeader.View.init(allocator, session, data.count, data.tag); │ │239 + var sub_header = try SubHeader.View.init(allocator, session, data.identity, data.count, data.tag); │ │240 errdefer sub_header.deinit(allocator); │ │241 try outer.children.put(allocator, sub_header.getFocus().id, .{ .widget = .{ .repo_issues_sub_header = sub_header }, .rect = null, .min_size = null });│ │242 } │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │415 pub fn build(self: *View, allocator: std.mem.Allocator, constraint: layout.Constraint, root_focus: *Focus) !void {│ │416 self.clearGrid(); │ │417 │ │418 - // each sub header tab maps 1:1 to a stack child by position. │ │418 + // each sub header tab maps 1:1 to a stack child by position │ │419 if (self.subHeader().getSelectedIndex()) |index| { │ │420 const stack = self.viewStack(); │ │421 stack.getFocus().child_id = stack.children.keys()[index]; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │422 + self.session.data.current_page = (if (index == tags_view_index) │ │423 + ui.RoutablePage.repoIssuesTagsRoute(self.data.identity) │ │424 + else │ │425 + ui.RoutablePage.repoIssuesRoute(self.data.identity, self.data.tag, "")) orelse self.session.data.current_page;│ │426 } │ │427 │ │428 // swap the detail pane to the selected issue when it changes. │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯