Repository navigation
v0.2.0
What's new
Two additions for panels that don't show accounts, such as Magic Context and AFT. Both are optional. A panel that uses neither looks and behaves exactly as in 0.1.0.
collapsibleonSidebarFrame. Without it, the header toggles only when the panel has accounts, as before.collapsible={true}lets a panel without accounts collapse to its header and itscollapsedSections.collapsible={false}keeps any panel expanded.SidebarGaugeRow, a used/left gauge for a value that has no quota windows, such as a context window. It takeslabel, and optionalused(a percentage),value,warnAtanderrorAt.- It draws with the same bar characters, width and colours as a quota row.
warnAtanderrorAtdefault to the frame's thresholds. usedis clamped to 0–100. A missing or non-finite value showsno readingwith no bar.- The optional right-hand value is bold, in normal text.
- When the row is narrow, the right-hand value is cut first, then the bar shrinks or goes, then the label is cut, so the percentage stays visible.
- It draws with the same bar characters, width and colours as a quota row.
Thanks to @iceteaSA for both additions (#1).
Compatibility
- No breaking changes: every 0.1.0 export and prop keeps its behaviour.
- Peers are unchanged: OpenTUI 0.4.5 or later and Solid. The package is still checked on OpenTUI 0.4.5 and 0.5.11.
- Gauge rows on OpenTUI 0.4.5 and 0.5.11: a bar segment that starts empty and fills later now keeps its width. The quota row renderer is unchanged.