Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 11 Nov 22:55
· 5 commits to main since this release

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.

  • collapsible on SidebarFrame. 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 its collapsedSections. 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 takes label, and optional used (a percentage), value, warnAt and errorAt.
    • It draws with the same bar characters, width and colours as a quota row. warnAt and errorAt default to the frame's thresholds.
    • used is clamped to 0–100. A missing or non-finite value shows no reading with 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.

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.