Skip to content

Phase 6a: Admin, help, docs, and menu inventory parity #66

Closed

Description

@suraj-ranganath

🤖 Phase issue for the STUDY and standalone integration epic #78.

Goal

Implement EEGPrep-owned admin/help menu, packaged help-resource, docs, and menu-inventory parity surfaces for the workflows completed by #60 and the STUDY epic.

Target branch and PR flow

  • Create the phase branch from feature/study-standalone-completion.
  • Open the phase PR back into feature/study-standalone-completion.
  • The phase PR should close this issue.

Dependencies

In scope

  • Admin and Help menu actions.
  • EEGPrep-owned packaged Markdown help resources.
  • Documentation pages for GUI, API, console, completed pop_*/eeg_* workflows, and implemented plugin surfaces.
  • Menu inventory parity and placeholder/exclusion audit for completed phases.
  • Removal of runtime help fallbacks to the vendored EEGLAB checkout.

Out of scope

  • Public API/package-data/plugin-management hardening; see Phase 6b.
  • Final release/integration evidence; see Phase 6c.
  • External plugin repositories not vendored in this repo.

Acceptance criteria

  • Help resources are EEGPrep-owned and packaged; runtime code does not read from src/eegprep/eeglab.
  • Menu inventory marks completed and excluded actions accurately.
  • Help/admin GUI actions work from both GUI and eegprep-console without breaking session state.
  • Tests cover help lookup, missing-resource errors, menu inventory metadata, package-data inclusion, and docs links where practical.
  • GUI help/admin surfaces have visual parity captures where applicable.
  • Required lint/type/test commands pass.

/goal prompt

/goal Complete EEGPrep admin/help/docs/menu-inventory parity for the completed core and STUDY workflows. Use EEGLAB only as a reference, ensure packaged EEGPrep-owned help resources, remove runtime dependencies on the vendored EEGLAB tree, add tests for help/menu/package-data behavior, verify GUI/console behavior, run ruff/format/ty and focused plus non-slow pytest, and iterate until review finds no actionable issues.

Activity

  1. added
    phase
    on May 27, 2026
  2. claude commented on May 27, 2026

    @claude
    Contributor

    🤖 Plan:

    • Read AGENTS.md, fix-issue, pull-request skills
    • Fetch issue 66 and epic 60
    • Duplicate-work preflight (open PRs and phase issues 61-65)
    • Inspect current standalone integration state (runtime eeglab refs, help resources, public API, epic branch)
    • Post Research + Proposed Approach (this comment)
    • Implementation deferred: gated on Phases 1-5 and out of single-PR scope

    Research

    Scope is an epic-level final integration phase, not a self-contained fix. It is gated: the issue itself says it "should run late for final integration", and the epic (#60) defines Phase 6 as the closing phase that consolidates phases 1-5.

    Current standalone-integration baseline on develop:

    Relevant code

    Proposed Approach (design)

    Phase 6 is not a single PR. It is a coordination phase whose acceptance criteria can only be evaluated after Phases 1-5 have merged into feature/eeglab-completion. Opening any code PR now would either duplicate work that belongs in earlier phases or land scaffolding that goes stale before it can be verified.

    Recommended decomposition (each a separate PR into feature/eeglab-completion when phases 1-5 are far enough along):

    1. Menu inventory audit. Add tools/menu_inventory/ script that parses EEGLAB eeglab.m menu construction under src/eegprep/eeglab/functions/adminfunc/eeglab.m and EEGPrep's functions/adminfunc/eeglab.py, then emits a parity table (implemented / excluded / missing / placeholder) to docs/source/development.rst or a new docs/source/menu_inventory.rst. Done = every non-excluded EEGLAB action maps to an EEGPrep menu entry whose callback is not a placeholder.
    2. Help-resource audit. Enumerate every GUI-reachable pop_*/eeg_* in _LAZY_EXPORTS and Qt dialogs; for each, ensure src/eegprep/resources/help/<name>.md exists. Phase 6 PR adds the missing files (one short Markdown per function) and changes the Help-button loader to fail clearly on missing resource rather than fall back to docstring or vendored EEGLAB text.
    3. Public API exports. After phases 1-5 merge, sweep _LAZY_EXPORTS and docs/source/api/ to ensure every new pop_*, eeg_*, STUDY, plugin, GUI, and console helper is exported and documented. No __all__ churn beyond what these new exports require.
    4. Plugin management UX. EEGLAB's File > Manage extensions equivalent for in-repo vendored plugins only (clean_rawdata, ICLabel, firfilt, EEG_BIDS, DIPFIT). Out of scope: any path that reads src/eegprep/eeglab/ or fetches external plugin repos at runtime.
    5. Standalone runtime guard. Add a CI job or pytest test that imports the package and exercises GUI/console smoke paths with src/eegprep/eeglab/ temporarily renamed, proving no runtime path depends on it. The grep above suggests this should already pass; the test pins the invariant.
    6. Final epic evidence PR. Run the acceptance command set (ruff check, ruff format --check, ty check, EEGPREP_SKIP_MATLAB=1 uv run pytest -m \"not slow\", MATLAB parity suite where available, visual parity, GUI Agent flow QA) and attach evidence/screenshots as GitHub user attachments on the epic-closing PR into develop.

    Open questions for a human before any sub-PR opens:

    • Should Phase 6 sub-PRs target feature/eeglab-completion even while phases 1-5 are unmerged, or wait for at least one earlier phase to land? Current state of the epic branch (0 ahead of develop) suggests waiting.
    • Is tools/menu_inventory/ the right home for the audit script, or should it live under src/eegprep/functions/adminfunc/ as runtime introspection?
    • Plugin management UX: read-only inventory dialog (list installed plugins + versions) versus EEGLAB's full enable/disable/install flow. Recommend read-only for vendored-only scope.

    No PR opened. Awaiting confirmation on decomposition and ordering before implementation begins.

  3. changed the title [-]Phase 6: Admin, help, public API, plugin management, and standalone integration[/-] [+]Phase 6a: Admin, help, docs, and menu inventory parity[/+] on May 28, 2026
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