Repository navigation
Closed
Labels
phaseEpic implementation phase
Description
🤖 Phase 2 for the EEGBrowser epic. Target branch: feature/eegbrowser-completion.
Dependency
Start after Phase 1 merges. This can run in parallel with Phase 3.
Goal
Implement the visible browser experience that users interact with directly, matching EEGLAB layout and controls while keeping EEGPrep responsive and standalone.
Implementation scope
- Main browser window matching EEGLAB controls: activity plot, time/channel labels, event types, navigation buttons, position field, scale field, +/- scale, stack/spread, norm/denorm, cancel, and reject/update button when applicable.
- Browser menus: Figure, Display, Settings, Help.
- Menu behavior for grids, title, events, channel labels, marking color, time range, displayed channels, zoom toggle, scale display, and print/edit-figure equivalents where feasible.
- Keyboard shortcuts matching EEGLAB navigation where practical.
- Iterative visual parity using
.agents/skills/eeglab-gui-visual-parity/SKILL.md.
Acceptance criteria
- Side-by-side visual parity captures exist for continuous channel data, epoched data, event overlay, grid on/off, and channel labels.
- Controls are aligned, spaced, enabled, disabled, and named like EEGLAB while using EEGPrep branding.
- Browser remains responsive on
sample_data/eeglab_data.set. - Tests cover button/menu state changes and visible state updates.
- No runtime code depends on
src/eegprep/eeglab.
Tests and evidence
- GUI tests for navigation buttons, menu toggles, fields, scale controls, stack/spread, norm/denorm, and close/cancel behavior.
- 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 the EEGBrowser/eegplot visual shell and navigation controls from this issue. Match EEGLAB UI layout, menus, keyboard navigation, scale/grid/event/channel-label controls, and visual behavior using iterative eeglab-gui-visual-parity captures. Verify with GUI tests, visual screenshots, sample_data, 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:
fix-issue,pull-request,eeglab-gui-visual-parity)feature/eegbrowser-completion; tip is STUDY work5f38bff)Research
Phase 2 is blocked: Phase 1 (#95) is still OPEN with no PR, and this issue explicitly says "Start after Phase 1 merges." There is no
eegplotPython module yet —pop_eegplotis currently an explicit exclusion placeholder (src/eegprep/functions/guifunc/menu_placeholders.py:39, message at L62-66), so Phase 2 has nothing to build the visible shell on top of. Scope (visual shell + 4 menus + keyboard nav + scale/stack/spread + visual parity captures + GUI tests across continuous/epoched/event/grid/label) is multi-module and clearly >100 lines, so per the agent instructions this requires a human-reviewed design comment, not a PR.Also worth flagging:
src/eegprep/eeglabis registered as a submodule (-420769355b4e...) but is empty in this checkout, so the EEGLAB.mreferences named in the issue (eegplot.m,eegplotlegacy.m,pop_eegplot.m,eeg_rejmacro.m,eeg_multieegplot.m) are not browsable from this workspace. Whoever picks this up will need the submodule populated for parity work.Relevant code
src/eegprep/functions/guifunc/menu_placeholders.py#L39— currentpop_eegplotexclusion to flip once Phase 1 landssrc/eegprep/functions/guifunc/main_window.py,menu_spec.py,menu_actions.py— where Figure/Display/Settings/Help menu wiring livessrc/eegprep/functions/guifunc/visual_capture.py— existing capture harness reused for visual parity loopsrc/eegprep/functions/sigprocfunc/— target dir foreegplot.pyrendering helpers (no entry today)src/eegprep/functions/popfunc/_rejection.py— existing rejection plumbing the eventual reject/update button will touchProposed Approach (for human review)
Treat this as a design checkpoint until Phase 1 merges. Recommended split when work starts:
src/eegprep/functions/guifunc/eegplot_window.pyconsuming the Phase 1eegplot(...)data/state model. Top toolbar: time/channel labels, event-type legend, prev/next/page nav, position field, scale field, +/− scale, stack/spread, norm/denorm, cancel, reject/update. Layout owned by a singleQGridLayoutso visual-parity tweaks stay local. EEGLAB parity reference:eegplot.mfigure+uicontrolblock (button names/positions are the parity oracle).src/eegprep/functions/guifunc/eegplot_menus.py(Figure / Display / Settings / Help). Each item produced as aQActionwith anaction_idmatching EEGLAB callback strings so future flow-QA can drive by name. Help wired tosrc/eegprep/resources/help/eegplot.md(new file owned by EEGPrep, not the EEGLAB checkout).QShortcut. Keep the table in one constant dict for parity diffing.tests/test_eegplot_window.py(button enable/disable per data shape, nav updates state, menu toggles flip rendered state, close/cancel exits without mutating EEG). Usepytestmark = pytest.mark.guiand the existing offscreen Qt fixtures.eeglab-gui-visual-parityfor the five required cases (continuous, epoched, event overlay, grid on/off, channel labels) onsample_data/eeglab_data.set; attach screenshots as PR-comment user attachments per AGENTS.md (do not commit them).pop_eegplotplaceholder fromexcluded_reason="eegbrowser"to a phase entry only once the window can actually open from the menu.Estimated change: ~600-900 LOC across ~6 new files plus the placeholder flip. That puts the eventual PR in spec-required territory (
pull-requestskill §Specifications >500 LOC) — the spec belongs in this issue body before implementation.Open Questions
QMainWindowor embed inside an existing EEGPrep dock?eegplot.mis always a standalone figure; EEGPrep currently has no dock equivalent.QPainter/QGraphicsView) as Phase 1 mandates, or is pyqtgraph permitted if Qt-native fails the responsiveness bar onsample_data/eeglab_data.set(~30 channels, ~30 s windows)? Phase 1 reserves this decision but Phase 2 inherits it.Not opening a PR. Recommend: land Phase 1 (#95), answer 1-4, then this becomes a spec'd implementation PR against
feature/eegbrowser-completion.