Skip to content

[pop_selectcomps] Add OK and Cancel to the component property window - #800

Merged
arnodelorme merged 1 commit into
developfrom
agent/20261128-fix-791
Nov 28, 2026
Merged

arnodelorme merged 1 commit into
developfrom
agent/20261128-fix-791

Conversation

@claude

@claude claude Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

The ACCEPT/REJECT button in the pop_prop window opened from pop_selectcomps now flips only its own label. OK copies the mark to the grid button and Cancel drops it, as in EEGLAB pop_prop.m. The grid OK still writes EEG.reject.gcompreject. GUI tests could not run locally because libEGL is missing, so CI covers them.

Part of #791

🤖 Generated with Claude Code

The ACCEPT/REJECT toggle in pop_prop now flips only its own label; OK copies
the mark to the grid and Cancel drops it, matching pop_prop.m.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@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 28, 2026 •

Copy link
Copy Markdown
Contributor Author

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


Code review

  • Overall assessment: Looks good. I found no defects in this PR.
  • Highest-risk area: how marks move from the pop_prop window back to the component grid in _show_component_property. I checked it and it is correct.
  • Merge recommendation: Safe to merge once the CI GUI tests (modal_dialogs) pass. They could not run locally because libEGL is missing.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None. test_selectcomps_property_window_commits_mark_only_on_ok checks three things in order:

  1. Toggling and then pressing Cancel leaves the flag at 0.
  2. Toggling and then pressing OK sets it to 1.
  3. Reopening the window shows REJECT, so the label is initialised from the saved flag.

It then checks the final gcompreject == [1, 0], so component 2 stays unchanged. The existing map-click test now presses the real ok button instead of calling accept() directly, so it still covers the commit path.

EEGLAB parity notes

None. The status button now changes only its own label and colour. The OK button in pop_prop copies the mark to the grid button, and Cancel drops it. The buttons are ordered Cancel → status → OK. This matches the description of EEGLAB pop_prop.m in the PR. I could not compare line by line because src/eegprep/eeglab/ is not in this checkout.

Areas checked:

  • Correctness: state is held in a local status dict until commit() runs. paint is reused for both the status button and the grid button. autoDefault is turned off on Cancel and the status button, so Enter triggers OK.
  • Docs and help: the eeglab_migration.rst and pop_selectcomps.md updates match the new behaviour.
  • AGENTS.md: no violations found.

@arnodelorme
arnodelorme merged commit 5d6fa81 into develop Nov 28, 2026
12 of 16 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.

1 participant