Skip to content

zgx: the side panels: the panel's content stands still as it moves, and the sidebar's words fade and line up - #1233

Merged
wingleeio merged 25 commits into
zeronsh:zeron/zgxfrom
gaelcado:gael/zgx-day-panel
Nov 9, 2026
Merged

wingleeio merged 25 commits into
zeronsh:zeron/zgxfrom
gaelcado:gael/zgx-day-panel

Conversation

@gaelcado

@gaelcado gaelcado commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

What changes

  • Panels and the sidebar no longer slide as they open, close or fold: what's inside stays put while the edge sweeps over it, with a light fade.
  • The chat and the panel split 50/50, rebalanced smoothly when a column is toggled or the window resized; a dragged width holds until the next toggle.
  • Files follows Wing's model (the tree in the Files tab beside the file; under 528 pt, tree or file). With no file open the tree always shows, never an empty file. Switching tabs or toggling the tree never moves the panel's width.
  • Widths change only when you change the layout (toggle a column, drag a seam, resize the window), never when you navigate.
  • Three columns at most stays (Wing's cap), but what the layout hid for room comes back by itself when the room returns; what you closed stays closed.

Interactions

Interaction Behaviour now
Panel open / close (⌘R), expand / collapse Edge sweeps over content laid out at its final width; light fade; 50/50
Sidebar fold (⌘B) Chat and panel rebalance 50/50 on the sidebar's curve
⌘E Wing's: toggles the Files tab (panel shut: opens it on Files)
Files tree (its button, ⇧⌘E) Wing's: beside the file, or under 528 pt over it; only what's inside the panel changes, never its width
Switch, open or close a tab Nothing moves
Close the last tab The panel eases shut on that tab; reopened, its home
Files with no file, tree put away The tree shows, never an empty file; a file chosen shows alone
Panel home Level with the new-chat composer; rows no wider than the reading column
Switch chat, Back / Forward Each chat's panel lands at once at its width; a dragged width is kept
Panel opened beside split chats The sidebar steps aside for room and comes back as the panel closes (same motion as a normal open)
Sidebar opened beside split chats The panel steps aside and comes back as the sidebar folds
Split add / remove Panes keep their least; the panel gives way first, then the sidebar, both back when the pane goes
Switch chat while something stepped aside Each chat shows what fits beside it; the column is back where there's room
Window resize, full screen 50/50 kept (or the dragged width); too narrow: the least recently opened column hides, no flicker, back as it widens.
Seams (panel, sidebar, split) Follow the pointer, bounce at limits, double-click to reset
Reload / relaunch Same layout from the first frame, including what stepped aside

Before / After

Before (Wing's latest) After

1440×900. Rows: three split chats, the panel opened and closed (before: the sidebar stays gone) · Files with no file and the tree put away · a new chat's panel home (at 2560).

Why

Carries the intent of #677 and #194: content is laid out once and never squeezed or slid while a column moves, the chat and the panel stay balanced, and only layout actions change widths.

For review

  • Perf (CPU vs zeron/zgx, headless on the RX 6800): idle −11%, presence −15…19%, wallpapers −26%; panel/sidebar/split/scroll same; tab drag +23…40% (tabs follow the pointer); window resize +47% (17.7% vs 12.0%: both sides follow the drag live; holding the panel during a drag and rebalancing once settled would bring it to ≈ base: possible follow-up).
  • Overrides Wing: in a split, the side that gave way for the other is hidden, not closed, and comes back by itself (it used to stay closed until asked for).
  • Overrides Wing: toggling the sidebar or resizing the window rebalances 50/50 (the chat used to take the whole change).
  • Overrides Wing: the sidebar's default width 256 → 272 (Gaël)

Tests

Luau suite, Rust layout/shortcut/reload tests and the Windows (xwin) check on the stack's top: no new failures against zeron/zgx.

@gaelcado gaelcado changed the title zgx: the panel moves as the sidebar folds, its content standing still; its last tab closes it zgx: the panel's content stands still as it opens, closes and expands, drifting and fading Nov 5, 2026
@gaelcado gaelcado changed the title zgx: the panel's content stands still as it opens, closes and expands, drifting and fading zgx: the side panels: the panel's content stands still as it moves, and the sidebar's words fade and line up Nov 5, 2026
@gaelcado
gaelcado force-pushed the gael/zgx-day-panel branch 15 times, most recently from 7b7cdf0 to 9d20638 Compare November 8, 2026 16:09
@gaelcado
gaelcado force-pushed the gael/zgx-day-panel branch 3 times, most recently from e867106 to 23c60b6 Compare November 9, 2026 01:23
gaelcado and others added 3 commits November 9, 2026 09:57
…, drifting and fading

The panel's card keeps its own curve (ds/motion `panel`, 280 ms); what's
in it is now laid out once, at the width it's going to (closing, the one
it rested at), and stands at the window's right as the card's edge
uncovers it and covers it again. It drifts 5 points with that edge and
fades over 160 ms as it comes and goes (ds/motion `content`), instead of
squeezing at every frame of an expand. Shut, it leaves layout until it
opens, as the folded sidebar does, so `zgx inspect errors` names nothing
in it.

Expanding over the page, the page keeps its width under the panel's
edge, clipped in the cards' corners, and fades and drifts toward the
sidebar; collapsing, it takes back the width it's going to at once and
fades in. The page beside the panel still reflows live as the panel
opens and closes (zeronsh#1207). The route moving shows both at once.

Tests: shell_route_motion (one width through open, expand, collapse,
close) and route_motion_tests (each fades through, never popping, and
settles with no new layout warnings).

Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
…from it

A pane just added still opens out of the gap it comes in at, at its full
size, on the split's own clock; what's in it now also drifts 5 points in
from that gap and fades in over 160 ms (ds/motion `arrive`), as the
panel's content does as it opens. Only a pane added to the split
showing: a launch, a reload or another tab shows its panes at once.

Test: split_tests (the new pane fades in a step at a time, the one
beside it never fades).

Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
…ds in the middle

The panel left open on an empty home after its last tab went read as
something still to deal with: Settings' "Close the panel with its last
tab" is now on by default (a person can still keep it open). The home's
block was pinned to the top of a tall card with the room all under it;
it now stands in the panel's middle as a new chat's composer does,
starting at the top and scrolling when the panel is shorter than it.

Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
gaelcado and others added 22 commits November 9, 2026 09:57
"Offline" and "Reconnecting" stood 12 in, past Star on GitHub's glyph,
the filter and the empty list's words, which all start 8 in.

Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
After the offline dot they stood 5 to the left of the banner's words; after
the reconnecting ring, on them. The glyph now sits in a slot as wide as the
star, as far from the words. A section's title being dragged fades at the
card's end, as on its row.
…gged width until its toggle

As Zeron's: a window resize shares its change between the chat and the
panel, at once, so a panel at its share stays at half of what the sidebar
leaves (each keeping its least). A width dragged holds, as before, but
only until the panel's next toggle, which opens it at its share again. Its
edge is out of reach while the panel moves.

This overrides Wing's rule that the chat takes the whole of a resize
(Gaël's call); his fit test now checks the balance. The sidebar's toggle
still doesn't re-split the panel.

Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
…they light

Every seam (the sidebar's edge, the panel's, a split's divider) as
Zeron's resize handles: double-clicked, back to where it starts (the
sidebar at 256, the panel at its share, the panes at equal shares),
easing there as a toggle does. Dragged past its limit it gives 5 points
and comes back (220 ms, smoothstep), its lit gap dimmed while it's held
there. The gap's light fades in and out over 150 ms, and each seam takes
the pointer 10 points either side of its middle (ds/seam).

Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
…ittle

The panel's content, the page under the panel expanded and a pane just
added to a split no longer drift with the edge (5 points, `NUDGE`): they
stand where they're laid out and the edge alone uncovers and covers them,
as Zeron's panels did. They only fade, from 0.3 to full in 150 ms (Zeron's
quick fade, CSS ease; the floor is its menus' entrance's).

A hundredth of a point of travel over the sweep stays: no eye sees it,
but a list that builds only the rows it shows (the panel home's side
chats) reads where it shows only as it moves, and kept the none it had
as the sweep began.
Laid out at the far width from the first frame, the panel's content jumped
there at once: its centred home moved half the way in one frame, and
collapsing left the card empty beside it until the edge caught up. Between
two open widths it now follows the edge a frame at a time, as Zeron's
`panel_content_tween` eased it; opening and closing it still holds still
(closing from expanded, at the wide width it showed).

Expanded, the panel ended a point past the window's edge (the row's room
less two gaps of 4, not the gap and the window's 5): its edge stepped a
point out as it landed and back as it collapsed. It ends where it ends
unexpanded.
…set splits the chat and the panel again

Raised over the page (`z = 1`) so its edge reached 10 points into the
chat, the sidebar's whole slot stood over the top bar's first tabs, which
reach over its head: its window-drag head took the first tab's presses
(session_tabs' "a tab still opens its chat on a click"). The slot is back
under the page and the edge takes the pointer from 10 points inside its
gap's middle to the gap's far side, as Wing had it, a little wider. The
panel's edge and the split's dividers keep their 10 points either side.

Its double click put the sidebar back at 256 but left the panel where it
was. As Zeron's `reset_panel_widths`, a seam's reset restores the layout:
the chat and the panel split 50/50 again, a dragged panel width forgotten.
…he panel does

Its card slid 5 points as it folded and came back: the window's gap
before it closed on the sidebar's own clock, and the page's gap beside it
eased from 4 to 5. Now the sidebar moves its whole column, that gap
included, on Zeron's curve, and the gap goes only with its last 5 points;
the page's gap follows the column as it shows. So its card's left edge,
its rows and the gap beside it hold still while its right edge sweeps.
Its content fades as the panel's does (ds/motion `content`, 0.3 to full
in 150 ms). The rail, where it's on, appears with a fade alone, no longer
growing from 0.96.

Zeron v2's view gets the sidebar's shown width and the seam's reset count
too: it runs the same shell sidebar.
… again, easing

As Zeron's `toggle_sidebar` re-split the conversation and the right pane
(`resplit_panels`), the sidebar folding or coming back splits the chat and
the panel 50/50 again, a width dragged on the panel's edge forgotten as
there (it holds through window resizes and other chats, until a toggle).
Before, the chat took all the sidebar gave and the panel held: Wing's rule,
overridden at Gaël's request. It eases there on the sidebar's own clock, so
the chat between them only widens or narrows; on the panel's quicker curve
it narrowed a little first, then widened.

The split counts the window's gaps round the cards, which Zeron's columns
didn't have: they all came off the chat, its card 18 points short of the
panel at "half" each. The chat's card and the panel now split to the
point. (The leasts already counted them, as Wing set them: unchanged.)
pane_floor's shares follow; the side chats' parity test runs where the
panel's home, centred, stands on whole points.
…ard's flow

Laid out at its far width while the card's edge swept over it, the panel's
content overflowed the card in its flow, and zgx's layout check said so
on every opening and closing ("content overflows its clip horizontally by
90 (358 in 269)", logged at launch on a panel opening at its least). It
stands at the card's right out of the flow instead: the same place, a
clip meant.
Closing a session's last tab closes its panel; the tab, its chip and its
view now stay as the panel eases shut, and are let go once it has (or as
it opens again, a tab opens, or another session shows). So no frame of the
home shows on the way out, and a terminal or a page isn't torn down under
the motion.

Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
…er than the reading column

The composer's rule (a little over the middle of the room under the title
bar) now lives in screens/chat/dock, and the panel's home reads it over
the panel's whole height, so its block stands level with a new chat's
composer beside it, at any window size. Its rows are no wider than the
reading column (zeron.prose.measure), in the panel's middle, each row's
whole width still its target.

Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
With no file open, the Files tab's tree shows however it was left, wide or
narrow; a file chosen then shows as the tree was asked (put away, the file
alone). Wing's narrow rule is unchanged.
…row line

As the window resizes, the panel keeps its half, so its Files pane can cross
Wing's narrow line (a tree and a file's least): the tree now goes or comes
beside the file at once there, the file taking its room, instead of sliding
under the drag. Its toggle still slides.
The window's tree dump stops past a budget, and the title bar, drawn last,
fell past it: its Panel stop was there, unread.
…rm.list)

Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
…ys lit under a resting hand

As Wing's: no longer out of reach while the panel glides, so a hover is
never lost across a glide; a press there meanwhile still does nothing, as
Zeron's handle.
From fit_policy, the one place it lives: the first launch's width and what
a double click on its edge puts back (ds.Sidebar's `default_width`, given by
the shell). Gaël's.

Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
@gaelcado
gaelcado marked this pull request as ready for review November 9, 2026 09:59
@wingleeio
wingleeio merged commit edf4bf3 into zeronsh:zeron/zgx Nov 9, 2026
14 checks passed
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.

2 participants