Skip to content

[GUI] Align pop_chanevent edit boxes vertically - #716

Merged
arnodelorme merged 4 commits into
developfrom
agent/issue-705
Nov 27, 2026
Merged

arnodelorme merged 4 commits into
developfrom
agent/issue-705

Conversation

@claude

@claude claude Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Every pop_chanevent row with an edit box, popup or checkbox uses the geometry [1.5 1 1], and the dialog sizes its columns by weight as supergui does, so the eight controls start at the same x. The window is 833 pixels wide and grows when a wider font would cut a label (new opt-in fit_weighted_labels, used by this dialog only).

Captures (EEGLAB, before, after) and tests: https://github.com/adelorme-assistant/project_eegprep/blob/main/reports/pr-705/issue-705_before_after.pdf (Word: https://github.com/adelorme-assistant/project_eegprep/blob/main/reports/pr-705/issue-705_before_after.docx)

Fixes #705
Part of #739

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Code review skipped — your organization has no extra usage available to pay for this review.

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

claude Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor Author

Claude finished @claude[bot]'s task in 46s —— View job


Code review

  • Overall assessment: Looks good. The change is small and uses the same weighted_columns=True + explicit size pattern as pop_importevent, pop_importepoch, pop_importerplab, pop_erpimage, and pop_editoptions.
  • Highest-risk area: Fixed dialog height vs. the existing dialog.height() <= layout.sizeHint().height() + 4 assertion in test_chanevent_labels_fit_their_column.
  • Merge recommendation: Safe to merge once the Tests workflow passes.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None. The new assertion in tests/test_file_menu_audit_673.py checks the four boxes' x-positions in dialog coordinates. That directly checks the claim in #705, and it fails on the previous content-sized layout.

I couldn't run the test here because the sandbox wouldn't let me run pytest. The Tests workflow was still queued when I posted this. Before merging, check two assertions in that test:

  • Height check: _apply_spec_size now forces the height to 330 px. Before this change, adjustSize() set it to the layout's own sizeHint. If the layout wants less than about 326 px, the existing height check will fail. The fix would be to lower size[1], not to loosen the assertion.
  • Label width check: the label-fits-column assertions should still hold with QSizePolicy.Ignored at 700 px wide.

EEGLAB parity notes

None. The geometry (1.5, 1, 1) and the other rows are unchanged. Sizing by _supergui_stretch matches how supergui splits a row by weight. As the PR description says, before/after captures next to EEGLAB are still needed as visual evidence. No visual-parity case for pop_chanevent exists yet in tools/visual_parity/cases.json.

Checked for correctness bugs, EEGLAB parity, data structure compatibility, changed-behavior tests, and CLAUDE.md/AGENTS.md compliance.

@arnodelorme

Copy link
Copy Markdown
Collaborator

🤖 Captures: EEGLAB, EEGPrep before and EEGPrep after, taken on jamming under a virtual screen.

pop_chanevent window

pop_chanevent window

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.

pop_chanevent window: edit boxes not aligned vertically in EEGPrep

1 participant