Skip to content

Navigator: published filter in the cloud dataset browser; NDI Cloud login indicator - #373

Merged
stevevanhooser merged 4 commits into
mainfrom
claude/fervent-clarke-a6cjcf
Nov 20, 2026
Merged

stevevanhooser merged 4 commits into
mainfrom
claude/fervent-clarke-a6cjcf

Conversation

@stevevanhooser

@stevevanhooser stevevanhooser commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Ports VH-Lab/NDI-matlab#1256.

1. Cloud dataset browser: filter by published state (NDI-matlab 3f56952)

  • Published column (Yes/No) from each dataset's isPublished flag; absent counts as unpublished. Also in the details text and the "Sort by" choices.
  • "Include published" / "Include unpublished" checkboxes, both ticked at first; set_filter keeps all_entries so sorting and re-filtering never lose rows.
  • Status line says "N of M dataset(s) shown." while a filter hides any.
  • New: filter_entries, count_status_text, set_filter, to_flag, yes_no_text.

2. NDI Cloud login indicator (NDI-matlab 579176c88)

The NDI Cloud pane (ndi.gui.nav.cloud_pane) gains a small indicator button: green ✓ when logged in (an unexpired NDI_CLOUD_TOKEN), yellow ○ when the current/default profile has an email and stored password (or NDI_CLOUD_USERNAME/NDI_CLOUD_PASSWORD are set), red ✕ when nothing is configured. Hovering explains the state; clicking opens the profile editor. A QTimer parented to the indicator re-checks every 30 s; it also re-reads when the editor window closes, after logout and on refresh.

New: describe_login, login_status, duration_text, update_login_indicator; cloud_colors gains alert_red / alertRed.

Bridge: cloudDatasetBrowser synced to 3f56952; cloudPane and cloudColors synced to 579176c88, with name mappings in their decision_logs. CHANGELOG updated.

Also: two CI fixes for drift that main has too

  • readngrid (commit 80c3655): NDI-matlab e3744121e (readngrid: read from did.file.fileobj objects and N-dimensional sizes VH-Lab/NDI-matlab#1229) made it accept a did.file.fileobj as well as a path. Ported: an unopened did.file.Fileobj is opened 'rb' and closed after; an open one, or any open binary file object (what database_openbinarydoc returns), is read from its position and left open; an object with only fullpathfilename is read by that path. Bridge entry synced to e3744121e.
  • speed_tuning_bootstrap (commit 6a5a334): NDIcalc-vis-matlab now makes this definition inherit ngrid, whose blank template fails with ValidationFieldInteger (as data/ngrid and neuro/reverse_correlation already do). Listed in KNOWN_UNVALIDATABLE_FROM_DEPENDENCIES; the test still fails if the error changes or upstream fixes it.

Testing

  • tests/test_gui_nav_cloud_dataset_browser.py: 18 passed locally (offscreen Qt), including 4 new tests.
  • tests/test_gui_nav_cloud_pane.py: new tests for all three login states, the glyphs, duration text, login_status reading a real/expired/garbage token and profiles (including an unreadable secret), logout updating the state, and the indicator in a real navigator (width, glyph, tooltip, timer running, click opens the editor). Rendered offscreen: green ✓, yellow ○ and red ✕ all draw correctly.
  • tests/test_fun_data_ngrid.py: 5 new file-object tests pass.
  • Bridge hash/status tests pass; black --check and ruff check clean.
  • Across the GUI, alias and bridge tests, the set of local failures is identical before and after this change (they come from vhlab packages the authoring sandbox cannot install).

🤖 Generated with Claude Code

https://claude.ai/code/session_011v7R5uS1zLb3Jzu5Vu23sb

Follows NDI-matlab 3f56952 (cloudDatasetBrowser). The browser gains "Include
published" and "Include unpublished" checkboxes (both ticked at first)
and a Published (Yes/No) column read from each dataset's isPublished
flag; an absent flag counts as unpublished. Published also appears in
the details and as a Sort by choice, and the status line says "N of M
dataset(s) shown." while a filter hides any.

New: filter_entries, count_status_text, set_filter, to_flag,
yes_no_text, all_entries. Bridge entry synced to 3f56952.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011v7R5uS1zLb3Jzu5Vu23sb
The "MATLAB/Python bridge completeness" check flagged readngrid as
drifted: NDI-matlab e3744121e (VH-Lab/NDI-matlab#1229) made readngrid
accept a did.file.fileobj as well as a path. Ported:

- a did.file.Fileobj that is not open is opened 'rb' and closed after;
- one already open, or any open binary file object (what
  database_openbinarydoc returns), is read from its current position
  and left open for its owner to close;
- an object with only fullpathfilename (cloud CachedBinaryFile) is read
  by that path.

From a file object only prod(data_size) elements are read, as MATLAB
does. Bridge entry synced to e3744121e; five new tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011v7R5uS1zLb3Jzu5Vu23sb
test_definitions_validate_or_are_listed failed on CI:
  vision/speed_tuning_bootstrap: DID:Database:ValidationFieldInteger
NDIcalc-vis-matlab 93a1fe7 (VH-Lab/NDIcalc-vis-matlab#109, merged
2026-11-13, after main's last green run) made the definition inherit
ngrid, whose blank template fails with that identifier (data/ngrid and
neuro/reverse_correlation are listed for the same reason). Record it in
KNOWN_UNVALIDATABLE_FROM_DEPENDENCIES; the gate still fails if the
identifier changes or upstream fixes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011v7R5uS1zLb3Jzu5Vu23sb
Follows NDI-matlab 579176c88. The NDI Cloud pane's header gains a small
indicator button, left of the reload button: green (check) when
NDI_CLOUD_TOKEN holds an unexpired token, yellow (circle) when the
current or default profile has an email and stored password (or
NDI_CLOUD_USERNAME/NDI_CLOUD_PASSWORD are set), red (cross) when nothing
is configured. Hovering explains the state; clicking opens the profile
editor. A QTimer parented to the indicator re-checks every 30 s; the
state is also re-read when the editor closes, after logout and on
refresh.

New: describe_login, login_status, duration_text,
update_login_indicator; cloud_colors gains alert_red/alertRed. Bridge
entries cloudPane and cloudColors synced to 579176c88; CHANGELOG.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011v7R5uS1zLb3Jzu5Vu23sb
@stevevanhooser stevevanhooser changed the title cloud_dataset_browser: filter by published state, add Published column Navigator: published filter in the cloud dataset browser; NDI Cloud login indicator Nov 20, 2026
@stevevanhooser
stevevanhooser merged commit 3cb4857 into main Nov 20, 2026
15 checks passed
@stevevanhooser
stevevanhooser deleted the claude/fervent-clarke-a6cjcf branch November 20, 2026 19:42
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