Skip to content

pop_study window: "Select by RV" button alignment, page buttons missing (after the release) #708

Backlog

Description

@arnodelorme

Arno commented the File menu report of #696 (EEGPrep versus EEGLAB, side-by-side captures) on November 26, 2026; this issue is one of his comments, with one pull request to address it.

Arno's comment, in his words

Vertical alignment of the "Select by RV" button is wrong. Also, the page skips are missing and the buttons are missing. This is for study so far, an issue, but doesn't have to be addressed now. Right now we want to release EEGNav without the study.

From his annotated copy of the report: https://github.com/adelorme-assistant/project_eegprep/blob/main/reports/file-menu-2026-11-26/EEGPrep_vs_EEGLAB_File_menu_2026-11-26_Arno-comments.docx

How to test

The windows are opened on jamming (MATLAB R2025b and EEGPrep under Xvfb, /mnt/v1/arno/menutest_probe shows how), never on Arno's Mac in the daytime. Capture EEGLAB's window, EEGPrep's before and EEGPrep's after; put the three side by side. Run the tests of the functions touched (pytest) before opening the pull request.

Activity

  1. added
    later
    gui-parity
    on Nov 26, 2026
  2. claude commented on Nov 26, 2026

    @claude
    Contributor

    🤖 Plan:

    • Read the issue and do the duplicate check (no open PRs; EEGPrep versus EEGLAB, File menu: side-by-side screen captures, numerical tests and PDF report #696 is the parent report)
    • Research the code and compare it with EEGLAB's pop_study.m
    • Implement: on hold. The issue has the later label, and the change is a GUI feature, not a small fix. It needs a new paging callback in the Qt renderer, probably more than 100 lines. The "Done when" criteria also need EEGLAB captures from jamming (MATLAB R2025b under Xvfb), which this runner cannot make.

    Research

    EEGPrep's pop_study_dialog_spec lists every dataset in one scrollable table with max(10, n) rows. It does not have EEGLAB's paging row (<, Page N, >). The code records this as a known_differences entry. The "Select by r.v." button sits in the header row with geometry geomUnit2, as in EEGLAB. Its misalignment most likely comes from the QSS min/max-height of 27px against the 15px header labels, plus the fixed width of 76px. The vertical alignment inside the header row is not set.

    Relevant code

    Proposed Fix

    1. Footer: after the "Important note" line, add the EEGLAB row {} '<' 'Page 1' '>' {} with geometry (1, 0.2, 0.3, 0.2, 1). Then add a blank (1,) row before the checkbox row, to match EEGLAB's guigeom.
    2. Paging: always render 10 widget rows, as EEGLAB does. Keep every row's values in a Python-side model, and add a study_page CallbackSpec in qt.py. On < or >, it would save the 10 visible rows into the model, change the page (minimum 1), reload the rows, and update the Page N label. Then _dataset_row_commands and _study_row_count would read from the model instead of the per-row tags. select_study_components also needs the model, because it propagates the selection to every row with the same subject, session and run. Remove scrollable and the "scrollable table" known difference.
    3. "Select by r.v.": set the header row's vertical alignment to centre, and drop the 76px width clamp so geomUnit2's 0.3 weight sizes the button. Then check the result against the EEGLAB capture.
    4. Tests: extend the pop_study coverage in tests/test_study_metadata.py with a test for 12 datasets. Page to 2, edit row 11, page back, accept; the edit must come through in datasetinfo. Refresh the pop_study_dialog visual-parity case (tools/visual_parity/cases.json#L545) on jamming for the before, after and EEGLAB captures.

    Open question: does "the buttons are missing" mean only the < / > page buttons, or something else in EEGLAB's capture (for example the OK, Cancel and Help row)?

  3. added
    function-parity
    on Dec 1, 2026
  4. arnodelorme commented on Dec 1, 2026

    @arnodelorme
    CollaboratorAuthor

    🤖 Arno included the full inventory in #875. I am implementing ten-row page navigation and checking the Create study > Using all loaded datasets window on jamming, including edits made on different pages. The change stacks on #1034.

  5. arnodelorme commented on Dec 1, 2026

    @arnodelorme
    CollaboratorAuthor

    🤖 PR #1056 adds page navigation and dataset removal. Both native pages measured 618 px high, with a maximum vertical control displacement of 0.49 px. Three effective selections matched, and both edited Study metadata sets matched. The PR stacks on #1034.

  6. arnodelorme commented on Dec 1, 2026

    @arnodelorme
    CollaboratorAuthor

    🤖 The full comparison for this inventory run is in #1057, including the original window, both new pages, and the histograms of the program outputs. PR #1056 implements the change.

  7. removed
    function-parity
    on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    gui-paritylater

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions