The GitHub Actions job "Required Checks" on 
texera.git/fix/filetree-click-highlight has failed.
Run started by GitHub user yangzhang75 (triggered by yangzhang75).

Head commit for run:
dfbb659c17ffe0d2e05728a7f78af428c4b275cd / Yang Zhang <[email protected]>
fix(frontend): highlight the file picked in the dataset file tree

The dataset file tree's click handler overrode the tree library's default
click (TOGGLE_ACTIVE) with an emit of selectedTreeNode alone, so the tree
never had an active node and the library never marked the clicked row: in
the dataset-selection modal, where the host only stores the path, the
picked file looked like every other and the one sign of the pick was the
Select button turning enabled. The handler now activates the clicked file
(ACTIVATE, not TOGGLE_ACTIVE, so a second click on the picked file keeps
it highlighted, as the selection it emits stands either way), Enter and
Space on the focused node do the same rather than the library's toggle,
and the component styles the active row like the app's selected rows,
with an inset shadow so the row keeps the height the virtual scroll pins.
Folders toggle as before.

A host that browses a version's files without holding one -- the dataset
picker in version mode, the model picker -- sets isFileSelectable false,
and a file click there activates and emits nothing: a highlighted row
would promise a pick nothing takes. Every other host keeps the click it
has and gains the highlight.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

Report URL: https://github.com/apache/texera/actions/runs/45122242376

With regards,
GitHub Actions via GitBox

Reply via email to