Skip to content

Phase 8: Full ICLabel pop_prop_extended dashboard parity #108

Closed

Description

@suraj-ranganath

🤖 Phase 8 for the EEGBrowser epic. Parent epic: #94. Follow-up from Phase 6: #100.

Dependency

Start after Phase 6 lands on feature/eegbrowser-completion. This should be completed before the final closeout phase (#101), because #101 should document and validate the completed browser/property parity surface rather than carry new dashboard feature work.

Goal

Port the full ICLabel pop_prop_extended / viewprops dashboard experience so EEGPrep matches EEGLAB's component-property workflow beyond the browser-backed scrolling activity views added in Phase 6.

Phase 6 covers the scrolling/browser-backed activity portions of pop_prop and pop_viewprops. This phase owns the complete extended ICLabel dashboard: layout, component classifier panels, property plots, scrolling activity placement, navigation across requested components, Help behavior, and GUI workflow parity.

Implementation scope

  • Add EEGPrep-owned implementation for the ICLabel extended component-property dashboard currently represented in EEGLAB by plugins/ICLabel/viewprops/pop_prop_extended.m and related viewprops helpers.
  • Integrate the dashboard with existing EEGPrep pop_prop, pop_viewprops, ICLabel classifier data, topoplot, spectra, ERP/image/property plots, and the Phase 6 browser-backed activity view.
  • Match EEGLAB labels, ordering, defaults, enabled/disabled state, figure titles, component index conventions, and visible layout where practical in Qt/Matplotlib.
  • Support both Python/API and GUI-reachable workflows without runtime reads/imports/shell-outs to src/eegprep/eeglab.
  • Add EEGPrep-owned help resource(s) for new GUI Help buttons or user-facing functions.
  • Preserve current Phase 6 behavior for lightweight activity-view attachments; do not regress pop_prop, pop_viewprops, or pop_subcomp browser flows.

Out of scope

  • New ICLabel classifier inference behavior beyond consuming classifier outputs already present on the EEG structure.
  • Runtime dependency on vendored EEGLAB files.
  • Exact MATLAB figure-edit internals when a simpler EEGPrep-native dashboard gives equivalent researcher-facing behavior.

Acceptance criteria

  • pop_viewprops component mode can open/render a full extended ICLabel-style properties dashboard for selected components when classifier data are available.
  • Dashboard shows the expected component topography/property/classification/activity surfaces with EEGLAB-facing 1-based component indices.
  • Browser-backed scrolling activity remains available inside or alongside the dashboard and honors the event-display option.
  • Missing classifier data fails clearly or falls back to non-classifier property display in a documented, tested way.
  • GUI Help and pophelp behavior use EEGPrep-owned packaged resources.
  • No runtime code depends on src/eegprep/eeglab.

Tests and evidence

  • Unit tests for classifier-data parsing, selected-component indexing, missing-classifier behavior, and dashboard data assembly.
  • GUI tests for dashboard creation, visible labels/titles, component navigation, and activity-browser integration.
  • Sample-data or synthetic ICA-capable fixture tests with ICLabel-like EEG.etc.ic_classification data.
  • Visual parity capture(s) comparing EEGPrep dashboard output to EEGLAB ICLabel pop_prop_extended / pop_viewprops reference screenshots, attached to the phase PR as GitHub user attachments.
  • Focused tests for touched files, then uv run --no-sync ruff check ., uv run --no-sync ruff format --check ., uv run --no-sync ty check, ./pre-commit.py, and EEGPREP_SKIP_MATLAB=1 uv run --no-sync pytest -m "not slow" when feasible.

Required references

  • AGENTS.md
  • .agents/skills/eegprep-feature-development/SKILL.md
  • .agents/skills/eeglab-gui-visual-parity/SKILL.md
  • src/eegprep/plugins/ICLabel/pop_viewprops.py
  • src/eegprep/functions/popfunc/pop_prop.py
  • src/eegprep/functions/popfunc/_property_browser.py
  • src/eegprep/eeglab/plugins/ICLabel/viewprops/pop_prop_extended.m
  • src/eegprep/eeglab/plugins/ICLabel/viewprops/pop_viewprops.m
  • Other src/eegprep/eeglab/plugins/ICLabel/viewprops/*.m helpers as needed for parity interpretation only.

/goal prompt

/goal Implement Phase 8 of the EEGBrowser epic: full ICLabel pop_prop_extended/viewprops dashboard parity. Build on Phase 6 browser-backed activity views, port the EEGLAB-facing dashboard workflow without runtime EEGLAB dependencies, add help/docs/tests/visual parity evidence, and verify with focused tests plus ruff/format/ty/pre-commit and non-slow pytest when feasible.

Activity

  1. added
    phase
    on Jun 1, 2026
  2. claude commented on Jun 1, 2026

    @claude
    Contributor

    🤖 Plan:

    • Read AGENTS.md + fix-issue/pull-request skills
    • Actionability check on Phase 8: Full ICLabel pop_prop_extended dashboard parity #108
    • Duplicate-work preflight (open PRs/issues, dependency status)
    • Locate existing scaffolding on develop and phase/eegbrowser-6-advanced
    • Post research + proposed approach for human review
    • Implementation (gated on Phase 6 merging + human sign-off on approach)

    Research

    Issue is actionable (clear scope, acceptance criteria, references) but not a small bug fix. Scope is a full dashboard port (classifier panels, property plots, activity placement, navigation, Help) across plugins/ICLabel/, functions/popfunc/, functions/guifunc/, resources/help/, docs, and visual parity captures — well over the 100-line PR threshold. Per fix-issue skill, posting design/approach for review instead of opening a PR.

    Blocker: Issue states "Start after Phase 6 lands on feature/eegbrowser-completion." Phase 6 is PR #106 (open, head phase/eegbrowser-6-advanced, base feature/eegbrowser-completion). Required scaffolding _property_browser.py only exists on that branch, not on develop.

    Vendored reference missing: src/eegprep/eeglab/plugins/ICLabel/viewprops/pop_prop_extended.m is required by the issue as a parity oracle but src/eegprep/eeglab/ is empty on this checkout — parity work needs the EEGLAB checkout populated or fetched out-of-band (runtime code stays standalone per AGENTS.md).

    Relevant code (current state):

    • src/eegprep/plugins/ICLabel/pop_viewprops.py — current pop_viewprops; non-scrolling overview, classifier popup, ICLabel etc.ic_classification parsing
    • src/eegprep/functions/popfunc/pop_prop.py — single-component property dialog/plot (topo + spectra)
    • src/eegprep/plugins/ICLabel/pop_iclabel.py + iclabel.py — classifier outputs consumed by the dashboard
    • phase/eegbrowser-6-advanced:src/eegprep/functions/popfunc/_property_browser.py — Phase 6 property_activity_browser(EEG, typecomp, index, ...), the activity-view hook the dashboard must place
    • phase/eegbrowser-6-advanced:src/eegprep/plugins/ICLabel/pop_viewprops.py — Phase 6 attaches activity views via figure.eegprep_activity_views; dashboard should consume the same hook

    Proposed Approach

    Add an EEGPrep-owned dashboard; do not chase exact MATLAB figure-edit internals. Concretely:

    1. New module src/eegprep/plugins/ICLabel/pop_prop_extended.py exporting pop_prop_extended(EEG, typecomp, chanorcomp, ...) and pop_prop_extended_dialog_spec(...). Mirrors EEGLAB signature, supports return_com=True, emits EEGLAB history string.
    2. Dashboard composition — one Qt window (or matplotlib Figure embedded in FigureCanvasQTAgg) per requested component, containing: scalp topo, ERP-image, power spectrum, classifier bar/labels panel (from EEG.etc.ic_classification[<classifier>]), and a slot for property_activity_browser(...) (Phase 6) as the scrolling-activity surface. EEGLAB-facing 1-based component indices throughout.
    3. Navigation — Prev/Next buttons cycling the requested-index list; status text shows IC k / N. Keep state local to the dashboard, not on EEGPrepSession.
    4. Wire into pop_viewprops — component mode opens the extended dashboard when classifier data is present; channel mode and missing-classifier component mode keep current overview, with a clear error message documenting the fallback (per acceptance criteria).
    5. Help resource — src/eegprep/resources/help/pop_prop_extended.md (no fallback to vendored EEGLAB at runtime).
    6. Tests under tests/:
      • tests/test_pop_prop_extended.py — classifier parsing, indexing, missing-classifier fallback, history-string round-trip, navigation across requested components
      • extend tests/test_pop_viewprops*.py for the component-mode dispatch into the dashboard
      • GUI/visual: parity case under tools/visual_parity per eeglab-gui-visual-parity skill; screenshots attached to the PR as user-attachments per AGENTS.md
    7. Docs — Sphinx page under docs/source/ for pop_prop_extended, update pop_viewprops page.
    8. Branch model — per epic, branch off and target feature/eegbrowser-completion, not develop. Branch name agent/20260601-fix-108.

    Open questions (need human input before coding)

    1. Phase 6 (Implement advanced EEGBrowser display modes #106) is not merged. Should I (a) wait, (b) branch from phase/eegbrowser-6-advanced and target it as the base, or (c) target feature/eegbrowser-completion and rebase after Implement advanced EEGBrowser display modes #106 lands?
    2. Vendored EEGLAB tree is empty — should I populate src/eegprep/eeglab/plugins/ICLabel/viewprops/ from upstream EEGLAB for parity work, or rely on the EEGLAB GitHub mirror as the parity oracle?
    3. Dashboard host: Qt window (matches GUI parity skill, harder to unit-test) vs. matplotlib Figure with embedded controls (easier tests, slightly weaker EEGLAB visual match). Recommend Qt with a headless-test seam; confirm.
    4. Multi-component "dashboard" — one window with prev/next navigation across the requested indices (EEGLAB pop_prop_extended behavior) vs. one dashboard window per index. Recommend single window + nav; confirm.

    Not implementing until the dependency and the four questions above are resolved.

  3. arnodelorme commented on Dec 1, 2026

    @arnodelorme
    Collaborator

    🤖 The pop_prop_extended dialog and native jamming captures are tracked in #960.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

phase

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions