Skip to content

[GUI] Match the shared text-entry dialog to its prompts - #946

Merged
arnodelorme merged 2 commits into
developfrom
agent/issue-875-inputdlg2
Dec 1, 2026
Merged

arnodelorme merged 2 commits into
developfrom
agent/issue-875-inputdlg2

Conversation

@arnodelorme

@arnodelorme arnodelorme commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Match the shared text-entry dialog to its prompts. The multiline window measured 221 px high in MATLAB, 214 px before the fix and 221 px afterward. Stack base is #896.

Multiline

Short

Single

Displacement

Returned text on submission

Across 3 native openings, the largest vertical control offset was 1.64 px (target 1 px). Numerical comparison of returned text on submission: 3/3 measured cases within tolerance. The remaining 1.64 px offset affects the top edge of the two-line prompt. Both versions returned identical edited strings in all three forms.

EEGLAB 5e0be870, EEGPrep after b224fb06, clean Linux checkouts. Part of #875.

Fixes #948.

Full inventory report for the project team. inputdlg2 (p. 91). PDF · Editable Word.

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

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 Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @arnodelorme's task in 59s —— View job


Code review

  • Overall assessment: Looks good. I compared the new layout with EEGLAB functions/guifunc/inputdlg2.m at 5e0be870 and found no problems.
  • Highest-risk area: None identified.
  • Merge recommendation: Safe to merge.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None. The new parametrized test in tests/test_guifunc_primitives.py covers all three layout branches (single prompt, several one-line prompts, a multiline prompt) and the Help button change.

EEGLAB parity notes

None. inputdlg2_geometry follows inputdlg2.m exactly:

  • With one prompt, or when any prompt spans more than one line, every row has width [1] and geomvert is [nlines 1] for each prompt.
  • Otherwise each row is [1 0.6] and geomvert is empty.

Help is now always shown, like EEGLAB, which always passes pophelp(funcname). Its resource falls back to the new src/eegprep/resources/help/inputdlg2.md. Both existing callers, pop_delset (menu_actions.py:610) and pop_studydesign (pop_studydesign.py:432), already have packaged help files. layout="supergui" is a renderer path that qt.py already supports. No existing test asserted the old single-prompt (1, 0.6) layout.

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

Not done: I could not run the tests here because the test command was not permitted, so this review comes from reading the code only. I also could not post the separate gh pr comment, so the review is in this comment instead.

@arnodelorme
arnodelorme changed the base branch from agent/issue-875-legacy-filter to develop December 1, 2026 04:01
@arnodelorme
arnodelorme merged commit bbb310a into develop Dec 1, 2026
4 checks passed
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.

inputdlg2: Match the shared text-entry dialog to its prompts

1 participant