Repository navigation
[GUI] Align edit fields across rows using the shared dialog geometry - #846
arnodelorme wants to merge 3 commits into
Conversation
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.
|
Review (Claude Fable): needs more work
DetailsWhat I ran (worktree at
CI at review time: Windows 3.12 failed, Ubuntu 3.12 passed, pre-commit, Ruff and ty, docs, base install and the EEGLAB Python backend passed. macOS, Ubuntu 3.13, E1 and Pyodide were still pending. 1. Windows failure (blocking) I could not run Windows here, so the exact cause is not confirmed. What I measured locally points to the grid: its minimum width is larger than that of the two existing layouts (
One likely contributor: near-equal boundaries become separate grid columns. In 2. Shared code (rule 34) and minimal change (rule 21) The renderer now has three ways to lay out a row: content sized (default), I rebuilt the four specs of this branch with So the smaller change is: keep the geometry corrections of this PR, set 3. Parity with the
4. Scope
5. Other open pull requests Test merges are clean against #851, #848, #844, #856, #857 and #850. #835 and #778 conflict with develop already, not with this PR. One thing to watch: #851 rewrites the row loop of — orchestrator review |
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Code reviewIndependent review by Codex (OpenAI, model gpt-6.1-terra), run read-only on commit What was done with its findings:
— orchestrator Overall assessmentNeeds changes. The PR uses the existing The main concern is that the new mode fixes column proportions while ignoring content width. This can make dataset field names and descriptions unreadable. BlockingNone. ImportantDataset text can be clipped. In The button padding change has a wider scope than the four dialogs. NitsNone. Test gapsThe new test at The test uses short field names and one font. Add a case with a long event field or description and a wider font, plus a Windows run, to check both readable text and the requested window width. It should also exercise duration and epoched event rows. EEGLAB parity notesWidth: All four specs request fixed widths and leave Geometry: The The changed The The MATLAB and Python source files are primary evidence for their own behavior, credibility 10/10. Network access was unavailable, so I could not verify that the checked-out commit is still the live PR head. |
|
Closed at Arno's request (email of November 29, 2026). Instead of aligning pop_select, pop_editeventfield, pop_selectevent and pop_chanedit with the earlier layout, these four windows will be moved to the new supergui layout merged in #878, which fixes the cause. The work is tracked in #821. — orchestrator |
Edit fields now line up in the event field editor, event selector, channel editor and data selector. The four windows use the weighted columns that ten other windows already use, so no layout mode is added, and each window keeps its width whatever the font: 695 pixels for the data selector, which opened 1031 pixels wide on Windows with the earlier version of this pull request.
In each image the EEGLAB panel is the MATLAB capture on jamming that this pull request already showed. The three EEGPrep panels were drawn on November 28 by offscreen Qt on the Mac, without a title bar, from develop, from the earlier head
51e3155c(grid) and from the new head899d8306(weighted columns). Native captures of the new head on Linux, the Mac and Windows are not made yet.pop_selectpop_editeventfieldpop_selecteventpop_chaneditThe four heights written by hand are gone, so the content now sets the height of these windows (rule 26), which makes them shorter. The numbers are in pixels, measured offscreen on the Mac with a dataset of three event fields and one channel.
The Word and PDF reports hold the same four images and numbers, one page per window.
Editable Word report · PDF report
Cause and change
MATLAB's
superguiplaces a control at a fraction of the whole row. Qt sized each row by its content, so a longer label moved the edit box of its row. The four specifications now setweighted_columns=True, the existing mode that gives each cell its geometry share assuperguidoes. The grid layout that the earlier version added toguifunc/qt.py(_add_grid_rows, theshared_columnsfield) is removed. The geometry corrections are kept: the event selector uses the rows ofpop_selectevent.m([0.6 2.1 1.2 0.8]and[0.55 0.65 middlegeom 0.1 0.22 0.1]) and the channel editor uses the{ 1 }header row ofpop_chanedit.m.One change remains in the shared renderer, three lines: a push button placed in a weighted cell gets 2 pixels of side padding where the style sheet gives 10. MATLAB centres a caption in its cell with no padding, and with 10 pixels the "..." buttons of the event field editor showed a single dot and "Save (other types)" of the channel editor lost two letters. A caption is centred, so a button that already had room looks the same. I drew the eight other weighted windows that build from a small dataset before and after this change: seven are identical pixel for pixel (
pop_importdata,pop_importevent,pop_importerplab,pop_export,pop_chanevent,pop_importepoch,pop_study), and inpop_erpimagethe button "Epoch-sorting field", which lost the edge of its first letter, now shows it whole.Verification
No numerical code changes, so no EEGLAB parity run in MATLAB is needed.
With the text enlarged from 16 to 24 and 29 pixels through the style sheet, the four windows stay 695, 900, 960 and 872 pixels wide. The earlier grid version gave 733 and 886 pixels for
pop_selectand 1053 and 1281 pixels forpop_selectevent.The five focused test files (
test_guifunc_primitives.py,test_gui_pop_select.py,test_phase1b_file_edit_pop_functions.py,test_pop_editeventfield_current.py,test_pop_select.py): 154 passed, 2 skipped for MATLAB, 37 deselected. The 35 test files that build a dialog: 811 passed, 19 skipped, 4 failed. The four failures do not come from this change: three tests oftest_gui_main_window.pyfail the same way on the previous head, andtest_real_testmff_matches_eeglab_epochsneeds the moduledefusedxml, which the local environment does not have. Ruff check and format pass on the touched files.test_field_columns_share_their_left_edgeschecks, for the four windows, that the edit boxes start within one pixel of each other, that the window has the width of its specification and that no visible caption is cut.Fixes #821
Part of #724
Part of #728
Part of #729
Part of #731