[PR #2314] [MERGED] Add ME Notes core module #5534

Closed
opened 2026-10-22 04:17:08 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2314
Author: @Xelvanis
Created: 6/5/2026
Status: ✅ Merged
Merged: 6/5/2026
Merged by: @Xelvanis

Base: refactor ← Head: feature/me-notes-module


📝 Commits (4)

  • 40d2c9b Add ME Notes module
  • 0b0db1c plugins: harden ME Notes module
  • 4b08368 plugins: address ME Notes review findings
  • f8d3672 plugins: harden ME Notes persistence repair

📊 Changes

18 files changed (+2634 additions, -29 deletions)

View changed files

📝 AGENTS.md (+1 -1)
📝 src/features/shell/discovery/discovery-entries.json (+2 -2)
📝 src/features/shell/plugins/components/CoreModuleRuntimeProvider.tsx (+4 -4)
📝 src/features/shell/plugins/lib/core-module-registry.ts (+10 -9)
➕ src/features/shell/plugins/notepad/MeNotepadModule.tsx (+905 -0)
➕ src/features/shell/plugins/notepad/components/MarkdownPreview.tsx (+136 -0)
➕ src/features/shell/plugins/notepad/components/NotepadChrome.tsx (+54 -0)
➕ src/features/shell/plugins/notepad/components/NotepadDialogs.tsx (+130 -0)
➕ src/features/shell/plugins/notepad/components/NotepadHeader.tsx (+143 -0)
➕ src/features/shell/plugins/notepad/components/NotepadTabs.tsx (+227 -0)
➕ src/features/shell/plugins/notepad/components/NotepadToolbar.tsx (+73 -0)
➕ src/features/shell/plugins/notepad/lib/hooks.ts (+15 -0)
➕ src/features/shell/plugins/notepad/lib/layout.ts (+113 -0)
➕ src/features/shell/plugins/notepad/lib/state.ts (+430 -0)
➕ src/features/shell/plugins/notepad/lib/utils.ts (+27 -0)
➕ src/features/shell/plugins/notepad/styles/notepad.css (+275 -0)
➕ src/features/shell/plugins/notepad/types.ts (+89 -0)
➖ src/features/shell/plugins/placeholder/CoreModulePlaceholder.tsx (+0 -13)

📄 Description

Linked issue

N/A

Why this change

  • Adds ME Notes as a bundled opt-in core module so users can keep compact notes scoped globally, per character, per chat, or across chat branches.
  • Replaces the temporary core module placeholder with a real module surface backed by plugin memory.
  • Hardens import and persistence behavior so invalid backup files are rejected and stale save completions cannot overwrite newer note state.

What changed

  • Registered the me-notes core module and mounts it through the core module runtime provider.
  • Added the ME Notes floating notepad UI, markdown preview, toolbar, tab chrome, dialogs, layout persistence, and scoped note state helpers.
  • Stores notes through the existing pluginMemoryApi wrapper and keeps panel layout in browser local storage.
  • Updated Discover metadata and the repo map for the new shell plugin surface.
  • Removed the placeholder module UI.

Refactor impact

Primary owner:

shell plugins / core module runtime

Impact areas reviewed:

  • Core module registry and runtime mounting
  • Settings-discoverable plugin metadata
  • ME Notes note scopes, import/export, and save lifecycle
  • Plugin memory API usage from feature-owned React code
  • Repo guidance map for Professor Mari/source ownership

Boundary notes:

  • Feature UI remains under src/features/shell/plugins/notepad.
  • Notes use the focused src/shared/api/plugin-memory-api.ts wrapper; no raw Tauri invoke or remote-runtime fetch was added.
  • Engine, Rust command, and remote-runtime boundaries were not changed.

Pressure points touched:

  • None of the named pressure points were touched: ModeSurface, GameSurface, shared mode UI, src-tauri/src/lib.rs, and import modules are unchanged.

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • Ran pnpm check locally after the final diff. It passed line endings, scratch cleanliness, architecture, frontend TypeScript, Rust compile, docs, discovery metadata, launcher safety, and unused-code checks.
  • Ran focused notepad ESLint earlier while addressing hook dependency warnings.
  • Manual Tauri/browser UI proof was not run in this pass.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • ME Notes is a new user-discoverable bundled core module surfaced through Settings > Plugins.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

Not captured. Manual Tauri/browser visual proof remains a reviewer/contributor follow-up.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/2314 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 6/5/2026 **Status:** ✅ Merged **Merged:** 6/5/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `refactor` ← **Head:** `feature/me-notes-module` --- ### 📝 Commits (4) - [`40d2c9b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/40d2c9ba0e22a87dd09beea9f78bd4377667d54e) Add ME Notes module - [`0b0db1c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0b0db1cedb8abb19f0fee496b549a1ea851f67b0) plugins: harden ME Notes module - [`4b08368`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4b08368cb9ff07fc10546cd80504723b8ef69940) plugins: address ME Notes review findings - [`f8d3672`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f8d3672f910d9703137dbd51398de3a98a6be546) plugins: harden ME Notes persistence repair ### 📊 Changes **18 files changed** (+2634 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `AGENTS.md` (+1 -1) 📝 `src/features/shell/discovery/discovery-entries.json` (+2 -2) 📝 `src/features/shell/plugins/components/CoreModuleRuntimeProvider.tsx` (+4 -4) 📝 `src/features/shell/plugins/lib/core-module-registry.ts` (+10 -9) ➕ `src/features/shell/plugins/notepad/MeNotepadModule.tsx` (+905 -0) ➕ `src/features/shell/plugins/notepad/components/MarkdownPreview.tsx` (+136 -0) ➕ `src/features/shell/plugins/notepad/components/NotepadChrome.tsx` (+54 -0) ➕ `src/features/shell/plugins/notepad/components/NotepadDialogs.tsx` (+130 -0) ➕ `src/features/shell/plugins/notepad/components/NotepadHeader.tsx` (+143 -0) ➕ `src/features/shell/plugins/notepad/components/NotepadTabs.tsx` (+227 -0) ➕ `src/features/shell/plugins/notepad/components/NotepadToolbar.tsx` (+73 -0) ➕ `src/features/shell/plugins/notepad/lib/hooks.ts` (+15 -0) ➕ `src/features/shell/plugins/notepad/lib/layout.ts` (+113 -0) ➕ `src/features/shell/plugins/notepad/lib/state.ts` (+430 -0) ➕ `src/features/shell/plugins/notepad/lib/utils.ts` (+27 -0) ➕ `src/features/shell/plugins/notepad/styles/notepad.css` (+275 -0) ➕ `src/features/shell/plugins/notepad/types.ts` (+89 -0) ➖ `src/features/shell/plugins/placeholder/CoreModulePlaceholder.tsx` (+0 -13) </details> ### 📄 Description ## Linked issue N/A ## Why this change - Adds ME Notes as a bundled opt-in core module so users can keep compact notes scoped globally, per character, per chat, or across chat branches. - Replaces the temporary core module placeholder with a real module surface backed by plugin memory. - Hardens import and persistence behavior so invalid backup files are rejected and stale save completions cannot overwrite newer note state. ## What changed - Registered the `me-notes` core module and mounts it through the core module runtime provider. - Added the ME Notes floating notepad UI, markdown preview, toolbar, tab chrome, dialogs, layout persistence, and scoped note state helpers. - Stores notes through the existing `pluginMemoryApi` wrapper and keeps panel layout in browser local storage. - Updated Discover metadata and the repo map for the new shell plugin surface. - Removed the placeholder module UI. ## Refactor impact Primary owner: shell plugins / core module runtime Impact areas reviewed: - Core module registry and runtime mounting - Settings-discoverable plugin metadata - ME Notes note scopes, import/export, and save lifecycle - Plugin memory API usage from feature-owned React code - Repo guidance map for Professor Mari/source ownership Boundary notes: - Feature UI remains under `src/features/shell/plugins/notepad`. - Notes use the focused `src/shared/api/plugin-memory-api.ts` wrapper; no raw Tauri invoke or remote-runtime fetch was added. - Engine, Rust command, and remote-runtime boundaries were not changed. Pressure points touched: - None of the named pressure points were touched: ModeSurface, GameSurface, shared mode UI, `src-tauri/src/lib.rs`, and import modules are unchanged. ## Validation - [x] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [x] Full `pnpm check` passes before PR push/handoff - [ ] Human/manual validation completed by contributor or reviewer ### Manual verification notes - Ran `pnpm check` locally after the final diff. It passed line endings, scratch cleanliness, architecture, frontend TypeScript, Rust compile, docs, discovery metadata, launcher safety, and unused-code checks. - Ran focused notepad ESLint earlier while addressing hook dependency warnings. - Manual Tauri/browser UI proof was not run in this pass. ## Feature Discoverability Check exactly one: - [x] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [ ] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - ME Notes is a new user-discoverable bundled core module surfaced through Settings > Plugins. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [x] Updated repo skills or `AGENTS.md` - [x] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence Not captured. Manual Tauri/browser visual proof remains a reviewer/contributor follow-up. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:17:08 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5534
No description provided.