Skip to content

Releases

v0.1.49

Choose a tag to compare

@github-actions github-actions released this 30 Nov 17:26
v0.1.49
e6e3440

Added

  • README gallery recordings for Paragraph and LineGauge, with two new widget_preview cases (paragraph, line-gauge).
  • Element pages in docs/elements for Spinner, ProgressBar, StatusDot, and Badge with Kbd.
  • Element pages in docs/elements for Paragraph with TextView, Image, BigText and MarkdownView.
  • Element pages in docs/elements for Toast with ToastStack, NotificationCenter with NotificationLog, and StatusBar.
  • Element pages in docs/elements for Gauge, LineGauge, Sparkline, Heatmap and Timeline.
  • Element pages in docs/elements for Chart, BarChart, PieChart with PixelPieChart, and Canvas.
  • Element pages in docs/elements for NodeGraph and MermaidView.
  • Element pages in docs/elements for CodeView, DiffView, LogView, HexViewer and PseudoTerminal.
  • Element pages in docs/elements for LayoutDebug, Lightcycle and WidgetList.
  • scripts/check-element-docs.py now fails when a public widget of lunatui-widgets has no element page.
  • docs/conventions.md section 5 now requires an element page for every public widget and an update to it when the widget's behavior changes.

v0.1.48

Choose a tag to compare

@github-actions github-actions released this 29 Nov 19:07
v0.1.48
72aa365

Added

  • Element pages in docs/elements for the dialogs and floating panels (Dialog, AlertDialog, Popup, Popover, Tooltip, Overlay) and the navigation and scrolling widgets (Accordion, Menu, ScrollView, Scrollbar, SplitTree, Tree).
  • Element pages in docs/elements for Breadcrumbs, List, Table and DataTable, with DataTable marked as the canonical table for applications.

Changed

  • Graphite text (the graphite-text feature) now reads the bundled fonts with skrifa and draws glyphs with ab_glyph_rasterizer, replacing fontdue and the unmaintained ttf-parser it pulled in (RUSTSEC-2026-0192). cargo deny no longer ignores that advisory. Line metrics, glyph choice and text widths are unchanged; glyph edges on curves can differ by a few coverage levels. BundledText::load now takes under a millisecond.

v0.1.47

Choose a tag to compare

@github-actions github-actions released this 29 Nov 17:14
v0.1.47
a454858

Added

  • An element documentation standard in docs/elements, with page templates, a checker (scripts/check-element-docs.py) and pilot pages for Button (both crates), TextInput and Tabs.
  • Element pages in docs/elements for NumberInput, Slider, SearchBox, Select and ComboBox.
  • Element pages in docs/elements for Checkbox, Switch, Radio, RadioGroup and Toggle.
  • Element pages in docs/elements for TagInput, DatePicker and the monthly calendar.
  • Element pages in docs/elements for Field and Form.
  • An element page in docs/elements for TextArea.
  • Element pages in docs/elements for ColorPicker and FilePicker.
  • Element pages in docs/elements for CommandPalette and KeyHintBar.

Changed

  • The website gallery describes each recording in words and keeps the activity monitor readable on narrow screens.

Fixed

  • A Switch from lunatui-choice now reports whether it is on to agents, so an agent's snapshot shows its state.
  • The ColorPickerState::pointer documentation now says what the code does when a drag leaves the square or the hue bar.

v0.1.46

Choose a tag to compare

@github-actions github-actions released this 28 Nov 08:05
v0.1.46
050c325

Added

  • The Image widget can display decoded images through the Prismattyc native presenter. If the native session is unavailable or fails, the runtime uses the terminal’s existing image fallback.

v0.1.45

Choose a tag to compare

@github-actions github-actions released this 27 Nov 17:41
v0.1.45
46c17f1

Added

  • DatePicker::act lets an agent select a date with Action::SetValue text as YYYY-MM-DD, answering Outcome::Changed, Outcome::Handled when it was already selected, and Outcome::Ignored for text that is not a real date, a date outside the bounds, a disabled picker and any other action.

Fixed

  • The terminal capability probe stops reading once the terminal has answered device attributes, a pixel graphics protocol (kitty, iTerm2 or sixel) and its cell size. Before, only a kitty terminal that also reported its background color ended the probe early, and other pixel terminals waited out the probe budget.

v0.1.44

Choose a tag to compare

@github-actions github-actions released this 26 Nov 16:06
v0.1.44
a03f701

Added

  • RadioGroup::act lets an agent choose an option with Action::Select, answering Outcome::Changed, Outcome::Handled when it was already chosen, and Outcome::Ignored for a disabled or missing option and for any other action.
  • Select::act lets an agent choose an option by its exact label with Action::SetValue for the app's choice, answering Outcome::Changed, Outcome::Handled when it was already chosen, and Outcome::Ignored for a label that names no option and for any other action. Opening the list stays with the app's layer.
  • TableState::act lets an agent put the table's cursor on a row with Action::Select or Action::Activate, and TableState::act_header sorts by a column header with Action::Activate, reversing the order when the column is already sorted. A row or column that does not exist, and any other action, give Outcome::Ignored.
  • An agent can act on more widgets. Slider::act and NumberInput::act set a value from Action::SetValue (clamped, and snapped to the step or rounded to the decimals), Accordion::act opens or closes a section on Action::Toggle, TreeState::act selects a node or opens a branch on Action::Select and Action::Activate, TagState (new) takes typed text with SetValue and commits it as a tag with Activate, and Date implements Act for a YYYY-MM-DD value. ActWith lends Act to a closure so Request::apply can drive state that a widget bounds. Three roles are new, AccessibilityRole::Disclosure (disclosure), TagInput (tag_input) and Calendar (calendar), with their action lists in the snapshot. docs/named-controls.md has a table of widgets, roles and actions. A control the widget would not accept, such as text that is not a number or a date that does not exist, is Outcome::Ignored and changes nothing.

v0.1.43

Choose a tag to compare

@github-actions github-actions released this 25 Nov 19:11
v0.1.43
0cf065b

Added

  • An agent can give several steps in one call. Agent::plan(steps) takes Steps and the app calls Agent::advance(&hits) after each render; the agent checks and queues one step per frame, as Agent::act would, so a step can name a control an earlier step made appear or enabled. The plan stops at the first failing step, and Agent::plan_status(id) reports Running, Waiting (for the application's confirmation), Done, Failed { step, error } or Cancelled. Agent::cancel_plan(id) stops it. A second plan while one runs returns the new ActError::Busy.

v0.1.42

Choose a tag to compare

@github-actions github-actions released this 25 Nov 10:08
v0.1.42
c03acf0

Added

  • An application decides what an agent may do. Mark a control whose action destroys work with ControlMetadata::destructive(true) or Field::destructive(true); the agent snapshot shows it as destructive. By default Agent::act holds a request that would change such a control and returns ActError::NeedsConfirmation(id); Agent::awaiting() lists held requests for the app to put to the person, Agent::confirm(&hits, id) queues one after checking that the same control is still there and enabled, and Agent::decline(id) drops it. Agent::allow(hook) replaces the default with the app's own rule: the hook answers Permission::Allow, Deny (ActError::Denied, nothing queued) or Confirm, and can fall back on Permission::default_for. Focusing a control never needs confirmation.

Changed

  • Breaking: AgentControl has a destructive field, and ActError has Denied and NeedsConfirmation. Code that builds an AgentControl with a struct literal adds destructive: false; a match on ActError already needs a wildcard arm.

v0.1.41

Choose a tag to compare

@github-actions github-actions released this 25 Nov 03:48
v0.1.41
558607b

Added

  • An agent can subscribe to control changes. Agent::subscribe(query) returns a Subscription for the controls a ControlQuery matches; each frame, Subscription::observe returns a ControlChange for every control whose value, checked state or states changed, or that appeared or went away, with its previous and current ControlValue. When the application records the change it applied with ControlMetadata::changed or Field::changed, the change also carries its ChangeReason and ChangeSource, so an agent can tell a keyboard edit from a click or its own action.
  • run() draws in Graphite mode on terminals that can show it. It resolves the application's ModePolicy against the probed terminal instead of a cell-only backend: Graphite when the terminal draws pixel images and reports its cell size, Cell otherwise, with LUNATUI_MODE still overriding. An application draws Graphite by building its RenderCx from RenderFrame::parts in RenderFrame::mode; one that only implements render keeps drawing cells. PixelLayer::cell_pixels and set_cell_pixels expose the cell size images are drawn at, and run() updates it from the terminal's window-size report on resize. The new activity_monitor_live example draws the activity monitor live this way.
  • Graphite text can start fast on a tight CPU budget. UiFont::InterCompact draws with compact copies of Inter and JetBrains Mono that keep Latin with Latin-1 and Latin Extended-A, punctuation, currency, arrows, mathematical and technical symbols, box drawing, block elements and geometric shapes, and it has no fallback fonts, so any other character draws as the missing-glyph box. The three files it uses parse in under 3 ms on a developer machine, against about 30 ms for full Inter, JetBrains Mono and the Noto Sans fallback that box drawing and block elements reach through. BundledText::load parses every font file a text can draw with, and BundledText::loaded says whether that is done, so a program can draw its first frame in cells and load the fonts in a later call. lunatui_fonts::Family::compact returns the compact files, COMPACT_RANGES lists what they keep, and scripts/subset-fonts.py writes them. They add about 200 KB. The graphite_fonts example draws a fourth specimen with the compact fonts.

Changed

  • In Kitty, an image listed later in a frame now stays above an earlier image at the same depth. Kitty stacks images with the same z-index by image id, so a row image uploaded again with a higher id could cover a badge drawn over it. PixelLayer sends 256 × depth plus the image's place in the frame as the z-index, so depth still decides first and negative depths stay under text. Depths must lie in PIXEL_DEPTHS, −8,388,608 to 8,388,607, where that z-index cannot saturate; an image at a depth outside it is refused, and a widget then draws its cells. Depths below −4,194,304 draw under cell backgrounds.

v0.1.40

Choose a tag to compare

@github-actions github-actions released this 24 Nov 13:13
v0.1.40
9a722cf

Added

  • Pointer events can carry where they fall inside a cell. The capability probe asks whether the terminal reports the mouse in pixels (mode 1016, DecModes::sgr_pixel_mouse). When it does and the cell size is known, run() turns the reports on with MouseTracking::SgrPixels and converts each event with MouseEvent::in_cells, so applications still get cell coordinates, now with MouseEvent::inside holding the pixel inside the cell. The cell size follows the terminal's window-size report on resize, through terminal_cell_pixels. HitMap::pick_point returns the same hit as pick, with where the pointer is inside the region, and Slider::value_at_across gives a value that moves smoothly across a cell and equals value_at at a cell's centre. Terminals without mode 1016 or a cell size keep cell reports, and Windows console input stays in cells.