mirror of
https://github.com/storytold/effectcraft.git
synced 2026-12-04 13:03:22 -05:00
* Composition Mini-Flowchart: Tab from the Timeline and viewer, focus navigation with every branch, as in After Effects From #1338 by Themolx, ported onto the split module layout (#2491): the Tab claim moved to menus/shortcuts.rs, the command to menus/frontend.rs, the frame hook to app/frame.rs, and the tests to tests/it/ (one binary). Co-Authored-By: Claude Opus 5.5 <[email protected]> * Mini-Flowchart: Tab reaches it past the window runtime; pills, edge stubs and the review fixes On current main the craft-ui window runtime takes a plain Tab for the whole window (keyboard traversal) before the app sees it, so Tab still never opened the Mini-Flowchart (#3772). The raw-input hook now holds the popup's keys back from the runtime and egui when Tab is the Mini-Flowchart's (or the popup is open), and the frame hands them back first. Tab stays traversal once Tab or Shift+Tab has moved the keyboard focus, until the next pointer press. Look: comps are pills joined by curved links; every outer comp has a stub at its outer side, an arrow where the chain goes on (click shows that level) and an end bar where it stops. The link back the way the focus came is drawn in the accent. Long names end in an ellipsis with the whole name on hover. Review points from #1338: only unmodified keys drive the popup (Ctrl, Alt or Shift with an arrow stay with the shortcuts); closing gives the keyboard focus back to the widget that had it; Space shows one more level of every shown comp, then folds them back; nodes and stubs are named for assistive technology; per-guard tests for the Tab claim. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Mini-Flowchart: the focus alone in the centre column, no animation, 30% smaller The centre column holds only the focus comp; Up / Down still step to its siblings, which are drawn only when they are the focus. Moving the focus redraws the popup around it with no easing. Pills, gaps, stubs, links and names are about 30% smaller. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Mini-Flowchart: keyboard focus follows the selected comp and stays in view - The focused comp's pill holds egui's keyboard focus while the popup is open (screen readers follow the arrows); the app's shortcuts still run (framework::focused_widget leaves the pill out), a dialog opened over the popup keeps its own focus, and closing gives the focus back or drops it. - A new focus or a level shown or hidden scrolls the focused pill into view once (Space on a long upstream chain left it past the popup's edge). - Regression tests for each. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Mini-Flowchart: reveal the focused comp again when a column grows taller The reveal signature now includes the tallest column, so expanding a branch into an existing column (more rows, same column count) scrolls the focus back into view. Manual scrolling still leaves the signature unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Mini-Flowchart: yield the keyboard to modal ScriptUI dialogs and link nodes by parent index A modal ScriptUI dialog lives in session.script_ui.windows, not app.dialog, so the flowchart kept requesting focus and taking Tab/arrows/Enter. A shared modal_open check now suspends key interception and the focus request. Links no longer search the placed list per node: each node carries its parent's index, filled once while placing the columns. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Mini-Flowchart: modal framework dialogs also take the keyboard modal_open now includes DialogHost::shows_modal() on app.framework_dialogs, so the flowchart's keys (arrows, Enter, Escape, Tab) and focus request stay out of a modal framework dialog's way. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Mini-Flowchart: modal dialogs keep the keyboard; arrows reach every linked comp - A modal ScriptUI or framework dialog over the open flowchart: the focused pill gives its egui focus up (a focused widget took Enter/Space as a click and Tab/arrows moved focus on from it) and the popup is disabled until the dialog closes. - The workspace shortcut dispatcher runs nothing behind a script's modal dialog, so Space no longer starts or stops the preview behind it. - The arrow keys follow the whole nesting, not the drawn columns: Up/Down siblings are no longer capped at MINI_MAX_COLUMN and Left/Right pick from the focus's full neighbour list. The display stays bounded. - One validated focus (mini_focus) for the centre pill and for Enter. The mini-flowchart tests passed locally (19/19) before the final cargo fmt; not recompiled after it, CI is the check. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Themolx <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: FredApps <[email protected]>