Repository navigation
Closed
Labels
phaseEpic implementation phase
Description
🤖 Phase 5 for the EEGBrowser epic. Target branch: feature/eegbrowser-completion.
Dependency
Start after Phase 4 merges. This can run in parallel with Phase 6.
Goal
Re-enable browser-dependent paths in existing rejection, selection, and cleaning workflows without regressing the non-browser behavior already implemented.
Implementation scope
- Re-enable
pop_selectScroll dataset button. - Re-enable
pop_rejmenuScroll Data / Scroll Acts buttons and mark update flows. - Integrate browser display/reject paths in
pop_eegthresh,pop_jointprob,pop_rejkurt,pop_rejtrend,pop_rejspec,pop_rejcont, andpop_autorej. - Integrate clean_rawdata’s “Pop up scrolling data window with rejected data highlighted” parity path where applicable.
- Keep existing no-display/non-browser code paths stable.
Acceptance criteria
- Existing non-browser behavior remains unchanged when visual display is off.
- When display/reject options are on, EEGPrep opens EEGBrowser with EEGLAB-compatible marks and accept behavior.
- Rejection fields preserve EEGLAB naming and shape for data and ICA modes.
- Tests cover no-display, display-only, reject-on-close, cancel, and superpose paths.
- No runtime code depends on
src/eegprep/eeglab.
Tests and evidence
- Regression tests for all touched pop rejection functions.
- GUI tests for browser launch and accept/cancel behavior from each workflow.
- Console/session tests where browser accept mutates EEG/history.
- Visual parity screenshots attached to the phase PR as GitHub user attachments.
uv run --no-sync ruff check .uv run --no-sync ruff format --check .uv run --no-sync ty check- Focused pytest for changed tests.
/goal prompt
/goal Integrate EEGBrowser into rejection, selection, and cleaning workflows from this issue. Re-enable browser-dependent buttons/options while preserving existing non-browser behavior. Verify EEGLAB parity for rejection marks, sample_data user flows, GUI/console synchronization, visual parity captures, MATLAB parity helpers, ruff/format/ty, and focused pytest.
Required references for every phase
AGENTS.md.agents/skills/eegprep-feature-development/SKILL.md.agents/skills/eeglab-gui-visual-parity/SKILL.mdfor GUI features.agents/skills/gui-agent-flow-qa/SKILL.mdfor end-user flow QA- EEGLAB reference under
src/eegprep/eeglab, used only as development/parity input.
Core EEGLAB references
src/eegprep/eeglab/functions/sigprocfunc/eegplot.msrc/eegprep/eeglab/functions/sigprocfunc/eegplotlegacy.msrc/eegprep/eeglab/functions/sigprocfunc/eegplot2event.msrc/eegprep/eeglab/functions/sigprocfunc/eegplot2trial.msrc/eegprep/eeglab/functions/sigprocfunc/trial2eegplot.msrc/eegprep/eeglab/functions/popfunc/pop_eegplot.msrc/eegprep/eeglab/functions/popfunc/eeg_rejmacro.msrc/eegprep/eeglab/functions/popfunc/eeg_multieegplot.m
Metadata
Metadata
Assignees
Labels
phaseEpic implementation phase
Activity
claude commentedon May 31, 2026
🤖 Plan:
Research
Phase 5 is blocked: it explicitly depends on Phase 4 (#98), which is still open. Phase 4 must deliver
pop_eegplotand the menu/console wiring that Phase 5 plugs into the rejection/cleaning workflows. There is also no Phase 1-3 work landed yet —feature/eegbrowser-completionis 0 commits ahead ofdevelop(and 42 behind), and the package contains nopop_eegplot*module and noEEGBrowser/eegplotreferences in the rejection pop functions. The browser-dependent buttons are currently disabled placeholders, e.g.ControlSpec(\"pushbutton\", \"Scroll dataset\", ..., enabled=False)inpop_select.py:657and the\"Scroll Data\"/\"Scroll Acts.\"labels inpop_rejmenu.py:54, withpop_eegplotcarryingexcluded_reason=\"eegbrowser\"metadata inmenu_placeholders.py:39.Relevant code
src/eegprep/functions/guifunc/menu_placeholders.py#L39-L66— eegbrowser exclusion metadatasrc/eegprep/functions/popfunc/pop_select.py#L657— disabled "Scroll dataset" buttonsrc/eegprep/functions/popfunc/pop_rejmenu.py#L54— disabled Scroll Data/Acts pathssrc/eegprep/functions/popfunc/—pop_eegthresh.py,pop_jointprob.py,pop_rejkurt.py,pop_rejtrend.py,pop_rejspec.py,pop_rejcont.py,pop_autorej.py(no current eegplot wiring)Open/Merged PRs: none for the EEGBrowser epic. Last merged work was the STUDY epic (#86).
Proposed Approach (for human review)
This is a multi-module new-feature epic phase — well beyond the <100-line, single-PR fix-issue scope. Not opening a PR. Two blockers and a scoping note:
pop_eegplotAPI + menu wiring (Phase 4: pop_eegplot menu workflows and session-console integration #98). None of those exist in the package yet. Phase 5 should not start until at least Phase 4: pop_eegplot menu workflows and session-console integration #98 lands onfeature/eegbrowser-completion, otherwise there is nothing to call.feature/eegbrowser-completionis stale (42 behind develop, 0 ahead). It needs a rebase/merge once Phase 1-4 work begins; otherwise Phase 5 PRs will conflict with whatever Phase 4 introduces inpopfunc/,guifunc/, andmenu_placeholders.py.pop_select,pop_rejmenu, 7 rejection pop functions) plus the clean_rawdata "rejected data highlighted" path, each requiring GUI + console + history tests and visual parity captures. Recommend splitting along EEGLAB callsite groupings (e.g. selection/menu, threshold-family, prob/kurt/trend/spec, cont/autorej, clean_rawdata) rather than one mega-PR, mirroring how EEGLAB'seeg_rejmacro.mis invoked from eachpop_rej*.m.Recommend closing/holding this issue until #98 merges, then having a human kick off Phase 5 as a series of scoped PRs against
feature/eegbrowser-completion.