Files
odysseus/docs/frontend-architecture/notes-module-inventory.md
T
Alexandre TeixeiraandLéo f1a47f3812 refactor(notes): decompose Notes into feature-owned modules (#6713)
* refactor(notes): decompose Notes into feature-owned modules

* fix(notes): avoid HTML interpolation in reminder picker

* docs(notes): drop checkpoint archives, session logs and publication drafts

The N0-N6 tarballs and raw pytest/node logs are not read by any script or
test, and the logs carry absolute home-directory paths. Once squashed into
dev they would stay in history for good. notes-pr.md and notes-issue.md
were the drafts used to open #6712 and #6713, not documentation.

notes-validation.md keeps the counts, the checkpoint hashes and
implementation.sha256 as the record; local interpreter paths and the local
Docker image name are replaced with portable placeholders.

* fix(notes): keep the state store raw and stop masonry re-observing after close

- state: writes built from views (filter, spread, splice) stored nested
  read-only views in the store, so structuredClone on a stored note threw
  DataCloneError. Store writes now unwrap nested views.
- layout: a save that resolves after closePanel re-renders the leaving pane
  and re-created the masonry ResizeObserver that teardown had disposed.
  Skip creating it once Notes is closed.
- index.js: drop 30 imported or declared names that were never used and
  group the imports at the top. Import order is unchanged.
- Revert unrelated punctuation edits in .gitattributes and keep the header
  comment and docstring first in compare/vote.js and
  test_notes_dom_xss_helpers.py.

Both fixes have a node test that fails on the previous head.

* test(notes): make script rejection assertion case-insensitive

Address CodeQL js/bad-tag-filter alert #1150 in test-only assertion and refresh Notes evidence manifest checksum.

---------

Co-authored-by: Léo <leograndcontact@gmail.com>
2026-10-15 09:29:41 +01:00

9.0 KiB

Notes source and deployment inventory

The feature has 41 maintained modules. The unchanged F1 action-menu proof and shared confetti bring the full manifest to 43. Outputs are copied byte-for-byte; count maintained source once. The legacy entry is a five-line compatibility facade.

Source under frontend/src Deployment under static Lines Layer
features/notes/application/agentActions.js js/features/notes/application/agentActions.js 67 application
features/notes/application/cardOperations.js js/features/notes/application/cardOperations.js 79 application
features/notes/application/checklistOperations.js js/features/notes/application/checklistOperations.js 68 application
features/notes/application/deletion.js js/features/notes/application/deletion.js 51 application
features/notes/application/drafts.js js/features/notes/application/drafts.js 55 application
features/notes/application/queries.js js/features/notes/application/queries.js 66 application
features/notes/application/reminders.js js/features/notes/application/reminders.js 182 application
features/notes/application/selection.js js/features/notes/application/selection.js 39 application
features/notes/application/state.js js/features/notes/application/state.js 72 application
features/notes/application/submission.js js/features/notes/application/submission.js 69 application
features/notes/application/workflows.js js/features/notes/application/workflows.js 78 application
features/notes/domain/noteRules.js js/features/notes/domain/noteRules.js 87 domain
features/notes/domain/recurrence.js js/features/notes/domain/recurrence.js 269 domain
features/notes/index.js js/features/notes/index.js 518 composition
features/notes/infrastructure/http.js js/features/notes/infrastructure/http.js 29 infrastructure
features/notes/infrastructure/notifications.js js/features/notes/infrastructure/notifications.js 20 infrastructure
features/notes/infrastructure/storage.js js/features/notes/infrastructure/storage.js 63 infrastructure
features/notes/ui/cardChecklist.js js/features/notes/ui/cardChecklist.js 148 ui
features/notes/ui/cardInteractions.js js/features/notes/ui/cardInteractions.js 337 ui
features/notes/ui/cardRendering.js js/features/notes/ui/cardRendering.js 244 ui
features/notes/ui/cardReorder.js js/features/notes/ui/cardReorder.js 181 ui
features/notes/ui/checklist.js js/features/notes/ui/checklist.js 190 ui
features/notes/ui/checklistReorder.js js/features/notes/ui/checklistReorder.js 111 ui
features/notes/ui/clipboard.js js/features/notes/ui/clipboard.js 82 ui
features/notes/ui/colors.js js/features/notes/ui/colors.js 111 ui
features/notes/ui/draftEditor.js js/features/notes/ui/draftEditor.js 67 ui
features/notes/ui/drawing.js js/features/notes/ui/drawing.js 442 ui
features/notes/ui/editor.js js/features/notes/ui/editor.js 518 ui
features/notes/ui/filters.js js/features/notes/ui/filters.js 139 ui
features/notes/ui/layout.js js/features/notes/ui/layout.js 120 ui
features/notes/ui/lifecycle.js js/features/notes/ui/lifecycle.js 36 ui
features/notes/ui/mobileEditor.js js/features/notes/ui/mobileEditor.js 257 ui
features/notes/ui/mobileReorder.js js/features/notes/ui/mobileReorder.js 214 ui
features/notes/ui/panel.js js/features/notes/ui/panel.js 506 ui
features/notes/ui/quickAdd.js js/features/notes/ui/quickAdd.js 170 ui
features/notes/ui/reminderDisplay.js js/features/notes/ui/reminderDisplay.js 129 ui
features/notes/ui/reminderPicker.js js/features/notes/ui/reminderPicker.js 334 ui
features/notes/ui/selection.js js/features/notes/ui/selection.js 61 ui
features/notes/ui/text.js js/features/notes/ui/text.js 39 ui
features/notes/ui/toolbar.js js/features/notes/ui/toolbar.js 78 ui
features/notes/ui/windowLayout.js js/features/notes/ui/windowLayout.js 114 ui
shared/ui/confetti.js js/shared/ui/confetti.js 28 shared UI

Maintained Notes feature total: 6440 lines. Original entry: 5,471 lines. Legacy facade after decomposition: five lines. Shared confetti: 28 lines.

See the case study for responsibilities and public/state/lifecycle contracts, and the validation report for executed evidence.