Repository navigation
ariadne: tabs: and list: widgets, a tab bar bound to a key and an editable list (P7) - #1254
Merged
Merged
Conversation
…table list (P7)
The side-panel widgets of docs/roadmap/VOLROVER-LIBRARY-PORTS-ROADMAP.md §6 item 5 that were
missing (color: and radio: / radio_row: were already there).
- tabs: a tab bar bound to a key. Over its children it is a tab container (each child one tab,
titled by its tab:, else its label:, else its place; only the selected tab's subtree is
walked); over options: alone, with values:, a switch. A write to the key from anywhere selects
that tab; on: runs after a pick. Without bind: the selection is kept at tree.<id>.tab.
- list: rows of a state array as repeat: counts it (count at bind, rows at bind.<i>), each row
showing its field: (name). A click writes the row's index to current: (default
bind.current); add: appends a row from new_item: ("{n}" its number) and selects it; remove:
deletes the selected row, moving the rows after it up (whole subtrees); on_add / on_remove.
- Backend::tab_bar and Backend::list, whose defaults draw radios and buttons, so FTXUI and
tvision show both; ImGuiBackend draws a real tab bar (following outside writes) and a list box
with Add and Remove. widget.h gains tabs(), tab_bar() and list() builders; {i} reaches the new
fields in a repeat:.
- Tests: tabs_list_test (a port test: native, and wasm-mt under node with the loader case
skipped there for want of yaml-cpp), cvcgl_imgui_tabs_list (clicks through ImGui's own input).
- Docs: ARIADNE.md §5.3, the roadmap's §6 item 5.
…idgets # Conflicts: # src/cvc/tests/port_tests.cmake
transfix
enabled auto-merge (squash)
November 15, 2026 05:53
…idgets # Conflicts: # src/cvc/tests/port_tests.cmake
…idgets # Conflicts: # src/cvc/tests/port_tests.cmake
…idgets # Conflicts: # inc/cvc/ariadne/widget.h # src/cvc/ariadne/loader.cpp
Master's #1249 added volume_slice_test where this branch adds tabs_list_test, at the end of CVC_PORT_TESTS in src/cvc/tests/port_tests.cmake; both are kept.
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
One conflict, in ci.yml's SAN_CXX_TESTS: this branch added stream_test, net_ws_client_test and ariadne_host_test to the sanitizer legs' list, and #1292 added gradient_vector_diffusion_test, critical_points_test and seed_generators_test (reflowing the lines). Kept both. ci.yml's line 1271 (the arigl-web path filter's files.h/files.cpp line) also goes back to master's bytes: master stores ci.yml with CRLF but that one line LF-only, and an earlier merge here had given it a CR, a whitespace-only change in this PR's diff.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The third piece of P7 (docs/roadmap/VOLROVER-LIBRARY-PORTS-ROADMAP.md §6 item 5): the side-panel widgets VolumeGridRover's component needs that were missing. I checked the backend first:
color:(anr,g,bkey) andradio:/radio_row:already existed, andrepeat:existed with no way to add or remove rows. This PR is independent of #1249 and #1251 (based on master).What lands
tabs:, a tab bar bound to a key.children:it is a tab container. Each child is one tab, titled by itstab:, else itslabel:, else its place, and only the selected tab's subtree is walked.options:alone (withvalues:, as a radio takes them) it is a switch, e.g. the XY / XZ / ZY view switch.on:runs after a pick.bind:the selection is kept attree.<id>.tab.list:, the rows of a state array asrepeat:counts it: the count atbind:, rows at<bind>.<i>, each row showing itsfield:(defaultname).current:(default<bind>.current).add: trueappends a row fromnew_item:({n}is its number from 1) and selects it.remove: truedeletes the selected row, moving the rows after it up (whole subtrees).on_add:/on_remove:run after an edit;rows:sets the visible height.Backend::tab_barandBackend::list. Their defaults draw radios and buttons, so the FTXUI and tvision hosts show both with no code of their own.ImGuiBackenddraws a real tab bar, which follows writes from outside, and a list box with Add and Remove (Remove disabled with nothing selected).widget.hgainstabs(),tab_bar()andlist()builders, and{i}reaches the new fields inside arepeat:.Tests (Windows Release)
tabs_list_test, a port test, so it also runs in theports (wasm-mt, node)lane:{n}) / remove with nested fields shifted, clamping,on_add/on_remove;cvcgl_imgui_tabs_list: clicks through ImGui's own input on a tab, a row, Add, Remove, and disabled Remove. Passes.ariadne_loader_test(229),ariadne_runtime_test(278),cvcgl_imgui_radio.No new or renamed CI jobs. clang-format is clean on the changed lines.