task_detail
task_detail
¶
Task detail rendering widget and helper.
TaskDetails(**kwargs)
¶
Bases: Static
Panel showing details for the currently selected task.
Initialize the task details panel.
Source code in src/terok/tui/widgets/task_detail.py
current_project_name = None
instance-attribute
¶
compose()
¶
set_task(task, empty_message=None, image_old=None)
¶
Render and display details for the given task (or clear if None).
Source code in src/terok/tui/widgets/task_detail.py
on_resize(event)
¶
Re-render only when the panel's content width changes.
Source code in src/terok/tui/widgets/task_detail.py
render_task_details(task, project_name=None, image_old=None, empty_message=None, css_variables=None, show_workspace=True, shield_hooks_ok=None, is_web=False, width=0)
¶
Render task details as a Rich Text object.
is_web is the caller's app.is_web — when False (the TUI is
running in a real terminal) we emit OSC 8 hyperlinks so wrapped
URL lines stay one clickable link. In web mode we skip OSC 8
because xterm.js's link handler shows a "could be dangerous"
confirmation dialog for every click; the @click meta below
keeps that path working without the dialog.
Source code in src/terok/tui/widgets/task_detail.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | |