Repository navigation
[GUI] Fit Preferences to the available option groups - #1034
arnodelorme wants to merge 2 commits into
Conversation
|
🤖 Review before taking this out of draft. State. The updated parent (#1032) is merged in ( What I checked. The Preferences form moves to the supergui layout and loses its fixed 1050 x 620 scrolling window, so its height follows its rows. Finding, not blocking. Without the scroll area the form can become taller than a small laptop screen. EEGLAB has the same limit, but it is worth one look on a 13 inch screen before merge. The new test only checks that the form is shorter with one row less, which is weak evidence. 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 53s —— View job Code review
BlockingNone. ImportantNone. I checked the following:
Nits
Test gapsNone that block merging. The new test removes the last row and asserts that the window gets shorter. That is weak evidence, as you noted, but it fails on the old fixed-size spec, so it does catch the regression this PR fixes. EEGLAB parity notesNone. The PR does not change saved option values, and the description reports identical saved values in MATLAB and EEGPrep for all three option combinations tested. Checked for correctness bugs, EEGLAB parity, data structure compatibility, tests for the changed behaviour, and AGENTS.md compliance. |
| from dataclasses import replace | ||
|
|
||
| from eegprep.functions.adminfunc.pop_editoptions import pop_editoptions_dialog_spec |
There was a problem hiding this comment.
Nit (AGENTS.md compliance). These imports are local to the test function. AGENTS.md says "All imports go at the top. No local imports except for circular dependency breaks or optional dependency guards." Neither exception applies here, because the module already imports pop_editoptions from eegprep.functions.adminfunc.pop_editoptions at the top (
eegprep/tests/test_eeg_options.py
Lines 9 to 11 in 672e502
Fix: move from dataclasses import replace to the top of the file and extend the existing import to from eegprep.functions.adminfunc.pop_editoptions import pop_editoptions, pop_editoptions_dialog_spec.
Separately, the spec no longer sets geomvert, so spec.geomvert[:-1] if spec.geomvert else () always evaluates to (). You can drop the geomvert= argument from replace(...).
Preferences now sizes itself to the visible settings and their section headings. Enabled and greyed controls keep their standalone behavior. Stacked on #1032 (
agent/issue-875-file-studyerp).Measurements and verification
Native client dimensions on jamming were 1095.5 × 538.0 px in MATLAB, 1050 × 682 before and 703 × 538 after. Both clients are 538 pixels tall after the change. EEGPrep shows the applicable subset and its own file-dialog preference. Three combinations of disk storage and numeric boundary type were saved to isolated settings directories. Both applications saved identical values in all three. Six focused tests passed, including a regression that removes a row and checks the resulting height. The Qt capture used the guarded checkout on PYTHONPATH.
Closes #1035. Part of #875.
Full inventory report for the project team. pop_editoptions (p. 35). PDF · Editable Word.