╭ changed ─────────────╮ │src/ui/Repo/Issues.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1111 const inner = self.detailInner(index); │ │1112 const cid = inner.getFocus().child_id orelse return false; │ │1113 return inner.children.getIndex(cid) == tags_child_index and self.tagFlow(index) != null; │ │1114 + } │ │1115 + │ │1116 + // the open/close button inside the detail pane's leading row. │ │1117 + fn statusButton(self: *View, index: usize) ?*wgt.TextBox(ui.Widget) { │ │1118 + const inner = self.detailInner(index); │ │1119 + if (inner.children.count() == 0) return null; │ │1120 + const row = &inner.children.values()[button_row_index].widget.box; │ │1121 + return &row.children.values()[button_in_row_index].widget.text_box; │ │1122 + } │ │1123 + │ │1124 + fn statusButtonFocused(self: *View, index: usize) bool { │ │1125 + const inner = self.detailInner(index); │ │1126 + const cid = inner.getFocus().child_id orelse return false; │ │1127 + return inner.children.getIndex(cid) == button_row_index; │ │1128 } │ │1129 │ │1130 fn focusTag(self: *View, index: usize, tf: *ui.TagFlow, root_focus: *Focus, item: usize) void {│ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────╮ │1151 │ │1152 fn focusDescription(self: *View, index: usize, root_focus: *Focus) !void { │ │1153 if (self.description_id[index]) |id| root_focus.setFocus(id); │ │1154 + } │ │1155 + │ │1156 + fn focusStatusButton(self: *View, index: usize, root_focus: *Focus) void { │ │1157 + if (self.statusButton(index)) |button| root_focus.setFocus(button.getFocus().id);│ │1158 } │ │1159 │ │1160 // enter the detail pane. an empty pane (no issues) can't be entered. │ ╰───────────────────────────────────────────────────────────────────────────────────────────────╯