Skip to content

## Cleanup: Remove or clearly deprecate js/utils/aiMock.js #1205

Description

@prince-pokharna

Description

The README's own Project Structure comments label js/utils/aiMock.js as "The original mock UI extraction hook (deprecated)", while js/utils/api.js is described as "the live fetch logic communicating with our Express API" — i.e., the actual one in use. Leaving a clearly-marked-deprecated file in the active js/utils/ directory risks contributors importing the wrong module, especially newcomers unfamiliar with the project's history.

Proposed Scope

  • Confirm aiMock.js has zero remaining imports across app.js/store.js
  • If unused: delete the file entirely (git history preserves it if ever needed)
  • If still referenced anywhere (e.g. as an offline/demo fallback): rename it clearly (e.g. aiMockFallback.js) and document its actual current purpose in a code comment at the top of the file
  • Update the README's Project Structure section accordingly

Acceptance Criteria

  • aiMock.js is either removed or clearly justified and renamed
  • No dead imports remain in app.js
  • README structure section matches reality

Labels: housekeeping, good first issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions