Skip to content

Ariadne: a window's maximize button, tree.<id>.maximized, and maximizable: - #1086

Merged
transfix merged 5 commits into
masterfrom
feat/ariadne-window-maximize
Nov 9, 2026
Merged

transfix merged 5 commits into
masterfrom
feat/ariadne-window-maximize

Conversation

@transfix

@transfix transfix commented Nov 9, 2026

Copy link
Copy Markdown
Owner

A window's title bar gets a maximize button, as the user asked: "the dropdown arrow is really nice to 'minimize' into a bar. But we should also have a square icon to maximize the window to fill the screen under the main menu. this should be general to ariadne."

Pressed, the window fills the screen under the main menu bar. Pressed again, it goes back to the place and size it had.

  • State: tree.<id>.maximized (1 / 0), which a document may write, as it writes tree.<id>.open.
  • Geometry: while a window is maximized its tree.<id>.geometry isn't written, so it keeps where the window goes back to, across a restart too.
  • Opting out: maximizable: false gives a window no button. The default is true.
  • API: Backend::next_window_maximize(bool *), called before begin_window. A backend that can maximize returns true and flips the flag when its button is pressed (the default returns false). Capabilities::maximize feeds the token ui.maximize.
    • ImGui:
      • a square in the title bar, left of the close X, and two squares while maximized;
      • an item clipped to the title bar, as ImGui's own close button is, so a press on it isn't the start of a move;
      • while maximized, the window is set to the viewport's work area every frame and can't be moved or resized, and the place and size it had come back afterwards.
    • FTXUI: [↑] beside the [x], and [↕] to go back ([^] / [=] without those glyphs). Maximized, the window is drawn from the top-left as big as the terminal, its own placement untouched.
    • tvision desktop (hosted): no marker. tvision's own zoom box (and Ctrl-F5) does this there, and doesn't follow the key.

The golden images will change. Every ImGui window's title bar now has the square, so cvcgl_ari_golden's five documents differ by the icon's pixels (64 to 320 px each, beyond the 0.002% tolerance). The goldens are made under Mesa llvmpipe, and two have macOS variants, so I'll replace them with the frames the package jobs upload (ari-golden-* artifacts) once they have run. That will be a follow-up commit on this PR.

Docs: ARIADNE.md §5.9 and the §5.7 token table.

Tests:

  • ariadne_ftxui_test: AWindowMaximizesToTheScreenAndBack checks:
    • the marker fills the terminal, and back to the same cell;
    • the geometry is kept;
    • a document's write;
    • a maximizable: false window has no marker.
  • ariadne_loader_test: MaximizableWindow.
  • New cvcgl_imgui_maximize, through ImGui's own mouse input:
    • a tap on the square fills the work area under the menu bar, and another puts it back at its place and size;
    • the state key both ways;
    • the geometry kept;
    • maximizable: false.

Locally on Windows (FTXUI on), every Ariadne suite and every cvcgl_imgui_* test pass. The golden test fails only on the icon, as described above.

…able:

A window could collapse to its title bar, but not fill the screen. Now its title bar has a maximize
button beside the collapse arrow and the close X: pressed, the window fills the screen under the
main menu bar; pressed again, it goes back to the place and size it had.
- Its state is tree.<id>.maximized (1 / 0), which a document may write. While a window is
  maximized its tree.<id>.geometry is not written, so it keeps where the window goes back to,
  across a restart too.
- maximizable: false (default true) gives a window no button.
- Backend::next_window_maximize(bool *) before begin_window: a backend that can returns true and
  flips the flag when its button is pressed. Capabilities::maximize -> token ui.maximize.
  - ImGui: a square (two while maximized) in the title bar, an item clipped to it as ImGui's own
    close button is; maximized, the window is set to the work area each frame, not movable or
    resizable, and the place and size it had come back after.
  - FTXUI: [^] / [=] (an up / up-down arrow with Unicode) beside the [x]; maximized, the window is
    drawn from the top-left as big as the terminal, its placement kept.
  - Hosted (the tvision desktop): none; tvision's zoom box is its own.

Docs: ARIADNE.md section 5.9 and the 5.7 token table.
Tests: ariadne_ftxui_test's AWindowMaximizesToTheScreenAndBack, ariadne_loader_test's
MaximizableWindow, new cvcgl_imgui_maximize (a tap on the square through ImGui's input, back, the
state key both ways, the geometry kept, maximizable: false).
Every ImGui window's title bar now has the maximize square, so the five documents' goldens move
by its pixels. These are the frames CI's llvmpipe drew (package-linux / libcvc-release-grpc's
ari-golden artifact); the Windows job's matched them, and so does a local Intel GPU within the
tolerance. The macOS variants (scene, widgets) follow from the macOS job.
…ttons

scene.macos.png and widgets.macos.png from the macOS package job's ari-golden artifact (Apple's
renderer), whose only difference from the old ones is each title bar's maximize square.
…/ariadne-window-maximize

# Conflicts:
#	inc/cvc/ariadne/backend.h
#	inc/cvc/ariadne/ftxui_backend.h
#	src/cvc/ariadne/ftxui_backend.cpp
#	src/cvcGL/CMakeLists.txt
#	src/cvcGL/ariadne/ImGuiBackend.cpp
@transfix
transfix enabled auto-merge (squash) November 9, 2026 18:24
@transfix
transfix merged commit b3c03a2 into master Nov 9, 2026
10 of 30 checks passed
@transfix
transfix deleted the feat/ariadne-window-maximize branch November 9, 2026 22:42
transfix added a commit to cy-pca/cypkg that referenced this pull request Nov 12, 2026
The previous commit moved the unit frames to ari 3.7.13's window titles
([↑] after the title, transfix/libcvc#1086). The snapshots in
tests/expected/ draw the same windows: the cypkg window, and the
Builders, Builds, Activity and Account windows over it. Only those title
lines change.
transfix added a commit to cy-pca/cypkg that referenced this pull request Nov 12, 2026
…rch once; frames for ari 3.7.13 (#11)

* search: the filter combos ask for the search; a request reads its search once

- The Platform, Arch and Link combos search again from the first row in their
  on:, as the query field does. on_tick no longer compares the filters with the
  ones it last sent: a combo's on: has fired since transfix/libcvc#902.
- on_tick read the search's key at its top and took the request further down.
  A tick can run over frames, so a query typed in between was searched under
  the key from before it: the reply counted as no new query, and the status
  kept the old package count. The request now reads the query and the filters
  once as it is taken, for the key, the request and the prefetch alike.
  (search_test caught it on ari 3.7.13 once the filter compare was gone.)
- search_test sets a filter as the combo's on: does; tests/interactive.sh picks
  one with the keyboard in both terminal backends. ROADMAP's L15 is done.

* tests: ari 3.7.13 draws a window's maximize marker in its title

transfix/libcvc#1086 gave windows a maximize button; FTXUI draws it as [↑] in
the title bar. The six unit frames with a window title take it. Only the first
line of each changes. tests/run.sh had not run on 3.7.13 before: the scheduled
runs skip it.

* tests: the whole-document frames carry ari 3.7.13's maximize marker too

The previous commit moved the unit frames to ari 3.7.13's window titles
([↑] after the title, transfix/libcvc#1086). The snapshots in
tests/expected/ draw the same windows: the cypkg window, and the
Builders, Builds, Activity and Account windows over it. Only those title
lines change.

* tests: the integration filter tests ask for the search as a combo does

A filter combo's on: sets the offset to 0 and req.search (views.ari); a
state-set on search.platform, .arch or .link alone no longer searches.
The integration copy of the filter tests set the filters alone, so each
waited for a search that never came (max_steps_exceeded). They now do
what the combos do, as tests/modules/search_test.ari already does.

* tests: the integration frames carry the maximize marker too

The integration step's snapshots against a local cvcpkg-server
(tests/integration/expected/) draw the same cypkg window as
tests/expected/; its title line gains ari 3.7.13's [↑]. Nothing else in
those frames changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant