Repository navigation
[GUI] Page the STUDY dataset browser in groups of ten - #1054
arnodelorme wants to merge 3 commits into
Conversation
|
🤖 Review before taking this out of draft (last of the File chain). State. The updated parent (#1052) is merged in ( What I checked against Findings, none blocking.
Verdict: ready for review. |
There was a problem hiding this comment.
If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.
Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.
|
Claude finished @arnodelorme's task in 1m 10s —— View job Code review
BlockingNone. Important
Nits
Test gapsNone. The updated 40-file test pages forward to record 40, edits it, pages back and forth, and checks the edit is kept. That covers the main regression risk. A possible addition, not required: press Ok after editing a row on page 2 and assert the returned EEGLAB parity notesNone I could confirm. The pinned EEGLAB checkout ( Checked: correctness of the paging state, how the result reaches |
| dialog.accepted.connect(capture) | ||
|
|
||
|
|
||
| def _bind_studywizard_pages(widgets: Mapping[str, Any], filenames: Sequence[str]) -> None: |
There was a problem hiding this comment.
Important (maintainability). This is the third pager for the same pop_studywizard.m grid. bids_tools._export_grid_dialog (
eegprep/src/eegprep/plugins/EEG_BIDS/bids_tools.py
Lines 633 to 700 in 6971576
</>, row renumbering and save_page. #1056 then adds a rebuild-based pager to pop_study. AGENTS.md lists "Parallel implementations of existing helpers" as a failure pattern. A bug fix in one pager (for example how rows are kept or which subject default is used) won't reach the others.
Suggested fix: keep this callback-based binder, since it fits the declarative DialogSpec route, and move bids_exporter_grid_spec / _export_grid_dialog onto it in a follow-up. That PR can also put the S{n} default in one place. If you'd rather not grow this PR, a tracking issue is enough.
| @@ -30,6 +30,8 @@ def pop_studywizard( | |||
| if not result: | |||
| return (None, [], "") if return_com else (None, []) | |||
| name = str(result.get("name") or name).strip() or name | |||
There was a problem hiding this comment.
Nit. This PR removes the name edit from the dialog spec, so result.get("name") is always None and the line does nothing. AGENTS.md: "Remove imports, variables, functions, and files that your change made unused." The function docstring above also still says "shows one row per file", but the grid now shows a 10-row page.
| name = str(result.get("name") or name).strip() or name |
The browse wizard opens its dataset grid with ten rows and working page arrows. Filenames, subjects, conditions and other fields are preserved when paging. Another page can be used to add recordings. Stacked on #1052 (
agent/issue-875-file-participantinfo).Measurements and verification
Native client dimensions on jamming were 1102.2 × 484.7 px in MATLAB, 1186 × 550 before and 1111 × 485 after. The native window measures 1102 × 485 px. Qt measures 1111 × 485 after the change, versus 1186 × 550 before. Three actual Qt submissions (one, two and three datasets) matched the public scripted MATLAB wizard in dataset count and every filename, subject and condition. The three-dataset Qt case used the second page. The MATLAB screenshot is from the actual GUI; automated entry into that GUI did not complete, so the numerical comparison uses its scripted route. The 40-file regression confirms that record 40 can be edited by paging without enlarging the window. The Qt capture used the guarded checkout on PYTHONPATH.
Closes #1055. Part of #875.
Full inventory report for the project team. pop_studywizard (p. 16). PDF · Editable Word.