[GH-ISSUE #4868] [Feature]: Search, collapsible drawers, and a persistent indicator for the Skills & Memories panels #2696

Closed
opened 2026-10-21 05:53:14 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @kolacheee on GitHub (Aug 10, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4868

Originally assigned to: @kolacheee on GitHub.

What problem does this solve?

As a user's Skills and Memories lists grow, both Professor Mari panels become long, flat walls of entries that are hard to scan and navigate. There is no way to filter to a specific skill or memory by name, and no way to collapse entries you are not working with.

The Memories panel makes this especially visible: every row already renders the name, a [PERSISTENT] badge, the full description line, and an enabled toggle, and selecting an entry opens a full editor below the list, so even a single selected memory fills the panel. The always-visible description line also makes each row taller than it needs to be on small screens.

Proposed solution

Applies to both ProfessorMariSkillsMenu and ProfessorMariMemoriesMenu (packages/client/src/components/chat/HomeProfessorMariChat.tsx), which share a drawer/list pattern and should stay consistent:

  1. Search bar at the top of each panel (below the New/Upload toolbar) that filters the list by name and description as you type, with a clear "no matches" empty state.
  2. Collapsible entries. Each skill/memory is a collapsed drawer row by default; expanding one reveals its fields/editor inline, consolidating today's "select an entry, editor appears in a separate section at the bottom" pattern into per-entry accordion drawers. Only the expanded entry shows its full fields.
  3. Responsive drawer content. On small screens, a collapsed drawer shows only the entry name. On larger screens it also shows the description, truncated with an ellipsis when it is too long. (Today the description line is rendered on every row regardless of width.)
  4. Persistent indicator (Memories only). A persistent memory should be identifiable at a glance even while collapsed, for example a star at the far left of the drawer row, in addition to or in place of the current inline [PERSISTENT] text badge. Skills have no persistent concept, so this piece is Memories-specific.

Alternatives considered

  • Leave the panels as flat scrolling lists. Does not scale as the memory store grows (which is the whole point of the index-and-fetch design in #4851) and offers no way to find a specific entry.
  • Add search only, without collapsing entries. Helps find an entry but does not reduce the vertical footprint of a long list or the always-open editor.
  • A separate full-screen manager view. Heavier than needed; the inline panel is the right surface, it just needs density and findability.

Additional context

  • Follow-up to the Professor Mari Memories panel added in #4852 (feature #4851); the Skills panel (ProfessorMariSkillsMenu) is its sibling and should get the same treatment so the two stay consistent.
  • Client-only change (packages/client); no server or schema work. MariInstructionDetail.persistent already exists for the indicator; Skills entries have no persistent flag.
  • For reference, the current Memories row renders name + [PERSISTENT] pill + full description + enabled toggle around HomeProfessorMariChat.tsx:2562-2603, and the selected-entry editor renders below the list from around line 2613.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @kolacheee on GitHub (Aug 10, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4868 Originally assigned to: @kolacheee on GitHub. ## What problem does this solve? As a user's Skills and Memories lists grow, both Professor Mari panels become long, flat walls of entries that are hard to scan and navigate. There is no way to filter to a specific skill or memory by name, and no way to collapse entries you are not working with. The Memories panel makes this especially visible: every row already renders the name, a `[PERSISTENT]` badge, the full description line, and an enabled toggle, and selecting an entry opens a full editor below the list, so even a single selected memory fills the panel. The always-visible description line also makes each row taller than it needs to be on small screens. ## Proposed solution Applies to both `ProfessorMariSkillsMenu` and `ProfessorMariMemoriesMenu` (`packages/client/src/components/chat/HomeProfessorMariChat.tsx`), which share a drawer/list pattern and should stay consistent: 1. **Search bar** at the top of each panel (below the New/Upload toolbar) that filters the list by name and description as you type, with a clear "no matches" empty state. 2. **Collapsible entries.** Each skill/memory is a collapsed drawer row by default; expanding one reveals its fields/editor inline, consolidating today's "select an entry, editor appears in a separate section at the bottom" pattern into per-entry accordion drawers. Only the expanded entry shows its full fields. 3. **Responsive drawer content.** On small screens, a collapsed drawer shows only the entry name. On larger screens it also shows the description, truncated with an ellipsis when it is too long. (Today the description line is rendered on every row regardless of width.) 4. **Persistent indicator (Memories only).** A persistent memory should be identifiable at a glance even while collapsed, for example a star at the far left of the drawer row, in addition to or in place of the current inline `[PERSISTENT]` text badge. Skills have no persistent concept, so this piece is Memories-specific. ## Alternatives considered - **Leave the panels as flat scrolling lists.** Does not scale as the memory store grows (which is the whole point of the index-and-fetch design in #4851) and offers no way to find a specific entry. - **Add search only, without collapsing entries.** Helps find an entry but does not reduce the vertical footprint of a long list or the always-open editor. - **A separate full-screen manager view.** Heavier than needed; the inline panel is the right surface, it just needs density and findability. ## Additional context - Follow-up to the Professor Mari Memories panel added in #4852 (feature #4851); the Skills panel (`ProfessorMariSkillsMenu`) is its sibling and should get the same treatment so the two stay consistent. - Client-only change (`packages/client`); no server or schema work. `MariInstructionDetail.persistent` already exists for the indicator; Skills entries have no persistent flag. - For reference, the current Memories row renders name + `[PERSISTENT]` pill + full description + enabled toggle around `HomeProfessorMariChat.tsx:2562-2603`, and the selected-entry editor renders below the list from around line 2613. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
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#2696
No description provided.