Repository navigation
Closed
Labels
phaseEpic implementation phase
Description
🤖 Phase 6 for the EEGBrowser epic. Target branch: feature/eegbrowser-completion.
Dependency
Start after Phase 4 merges. This can run in parallel with Phase 5.
Goal
Implement advanced browser surfaces that are needed for full parity beyond the basic channel-scrolling and visual-rejection workflows.
Implementation scope
data2overlay and before/after comparisons such aspop_subcompplot confirmation.- Component activity scrolling and ICA activation display.
- Linked/child windows for synchronized scrolling.
noui/ publication-style view where compatible.- Frequency/spectral display mode with
freqsandfreqlimits. eeg_multieegplot.- Browser-backed portions of
pop_viewpropsand component/property workflows that currently omit scrolling activity.
Acceptance criteria
- Component and channel browser modes match EEGLAB labels, limits, and scaling.
- Linked windows scroll together.
data2overlays are visually distinct and tested.pop_subcomp(plotag=True)no longer raises browser-not-implemented.eeg_multieegplotsupports old/new rejection colors for epoched data.- No runtime code depends on
src/eegprep/eeglab.
Tests and evidence
- Unit and GUI tests for component mode,
data2, linked windows, spectral mode,noui, andeeg_multieegplot. - Sample-data tests with ICA/component-capable fixtures where available.
- 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 Implement advanced EEGBrowser display modes from this issue: component activity scrolling, data2 overlays, linked windows, noui-style display, frequency display, eeg_multieegplot, and property-flow browser integration. Verify against EEGLAB source, visual parity screenshots, sample_data, GUI/console user flows, 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 6 is a multi-module epic feature, not a self-contained bug fix. Per epic #94's merge order (
1 → 2+3 → 4 → 5+6 → 7), this issue's own "Dependency" line requires Phase 4 (#98) to merge first. Current state: Phases 1–5 (#95, #96, #97, #98, #99) are all still OPEN, andorigin/feature/eegbrowser-completionis at the same commit asorigin/develop(0 commits ahead) — no browser foundation code exists yet to build on.Relevant code (current EEGPrep state — all browser surfaces are still stubs/exclusions):
src/eegprep/functions/guifunc/menu_placeholders.py#L39—pop_eegplotflaggedexcluded_reason="eegbrowser"src/eegprep/functions/guifunc/eeglab_menu.py#L161,L231,L254—pop_eegplot:data,:channels,:componentsmenu actions wired but unimplementedsrc/eegprep/functions/popfunc/pop_subcomp.py#L39-L43— raisesNotImplementedErrorwhenplotagtruthy (the exact case Phase 6 must fix)src/eegprep/plugins/ICLabel/pop_viewprops.py#L99-L100— explicitly omits scrolling activity pending EEGBrowsersrc/eegprep/functions/popfunc/pop_rejmenu.py#L264,pop_autorej.py#L68,pop_select.py#L656— eegplot buttons disabled / TODOeegplot.py,pop_eegplot.py, oreeg_multieegplot.pyinsrc/eegprep/functions/sigprocfunc/orpopfunc/yetNo duplicate PR exists (
gh pr list --search \"EEGBrowser Phase 6\"→ empty).Proposed approach (for human review — not implementing)
Do not start Phase 6 yet. It has no foundation to call: Phase 1 defines the
eegplot/EEGBrowser data model + rendering API that every Phase 6 surface (component scroll,data2overlay, linked windows, spectral mode,noui,eeg_multieegplot) must extend. Implementing Phase 6 first would mean inventing the Phase 1 API in this PR, which collides with #95 and guarantees rework on merge.When Phase 4 (#98) merges into
feature/eegbrowser-completion, the scope here breaks into roughly seven independent slices, each landable as a focused commit onagent/YYYYMMDD-fix-100:eegplot(data, …)to accepticaact/icawinv+icasphere+icaweights+icachansind, gated by anica='on'option matchingeegplot.m. Wireeeglab_menu.py#L254(pop_eegplot:components).data2overlay — second-trace rendering with distinct color/alpha, parity with EEGLABdata2arg ineegplot.m. Drivespop_subcomp(plotag=True)confirmation; replace theNotImplementedErrorinpop_subcomp.py#L39.BrowserState(from Phase 1) cross-window, withchildren=option semantics fromeegplot.m.noui/ publication view — render path that hides toolbar/menus when'noui','on', suitable for figure export.freqs/freqlimitsoptions; precompute via existingspectopo/welch and reuse Phase 1 scroll plumbing.eeg_multieegplot— porteeg_multieegplot.mwith old/new rejection-color stacking for epoched data; new module underfunctions/popfunc/.pop_viewpropsbrowser integration — restore scrolling activity atICLabel/pop_viewprops.py#L99-L100; remove the exclusion strings.Each slice needs: unit test on a synthetic EEG dict, visual parity capture under
tools/visual_parity/cases.jsonagainst the matching EEGLAB MATLAB figure, EEGPrep-owned help md undersrc/eegprep/resources/help/, and no runtime read fromsrc/eegprep/eeglab/.Open questions for a human before any code is written:
pop_viewpropsbrowser restoration land here or in Phase 5 (Phase 5: Browser integration for rejection and cleaning workflows #99)? Phase 5's title ("rejection and cleaning") could plausibly own the property-flow integration; current Phase 6 scope claims it.eeg_multieegplotparity target — full MATLAB API (oldcolor,newcolor,command,spacing,...) or just GUI-visible behavior?EEGPrepSessionmutations, or only same-process same-session?Recommended next step: wait for #95 (Phase 1) and #98 (Phase 4) to merge into
feature/eegbrowser-completion, then re-trigger this issue. Re-running now would either block on stubs or invent Phase 1's contract and collide with that PR.