╭ changed ─────────────╮ │src/ui/Repo/Events.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────╮ │13 const Key = xitui.input.Key; │ │14 const Grid = xitui.grid.Grid; │ │15 const Focus = xitui.focus.Focus; │ │16 + │ │17 +const active_tab_label = "active"; │ │18 +const removed_tab_label = "removed";│ │19 │ │20 const page_size = 20; │ │21 │ ╰────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │581 var box = try wgt.Box(ui.Widget).init(allocator, .{ .border_style = null, .direction = .horiz }); │ │582 errdefer box.deinit(allocator); │ │583 var tab_ids: [2]usize = undefined; │ │581 - inline for ([_]ui.RoutablePage.EventsView{ .active, .removed }, 0..) |view, i| { │ │584 + const view_labels = [_][]const u8{ active_tab_label, removed_tab_label }; │ │585 + inline for ([_]ui.RoutablePage.EventsView{ .active, .removed }, view_labels, 0..) |view, view_label, i| { │ │586 const route = ui.RoutablePage.repoEventsRoute(data.identity, view, null, "") orelse return error.RouteTooLong;│ │587 const count = data.window(view).count; │ │588 var label_buf: [64]u8 = undefined; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │585 - const label = try std.fmt.bufPrint(&label_buf, "{s} ({d})", .{ @tagName(view), count }); │ │589 + const label = try std.fmt.bufPrint(&label_buf, "{s} ({d})", .{ view_label, count }); │ │590 var tab = try wgt.TextBox.init(allocator, label, .{ .border_style = .hidden, .rounded_corners = true, .wrap_kind = .none });│ │591 errdefer tab.deinit(allocator); │ │592 tab.getFocus().mode = .all; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯