[PR #4902] [MERGED] feat(mari): searchable, collapsible Skills & Memories panels #6535

Closed
opened 2026-10-23 04:11:20 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4902
Author: @kolacheee
Created: 8/11/2026
Status: ✅ Merged
Merged: 8/11/2026
Merged by: @kolacheee

Base: staging ← Head: feat/4868-skills-memories-panels


📝 Commits (5)

  • 4581459 feat(mari): searchable, collapsible Skills & Memories panels (#4868)
  • b4613c2 fix(mari): sort + pin persistent + keep the open editor in view (#4868)
  • 48e586f fix(mari): guard skill draft + localize skill toggle + scroll on sort/search (#4868)
  • b93e73c fix(mari): show the no-match state and keep collapse across refreshes (#4868)
  • f895ade fix(mari): sort the retained selected row in place instead of appending it (#4868)

📊 Changes

5 files changed (+432 additions, -222 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/client/src/components/chat/HomeProfessorMariChat.tsx (+412 -219)
📝 packages/client/src/localization/locales/en.json (+11 -2)
📝 packages/client/src/localization/locales/ko.json (+0 -1)
📝 packages/client/src/stores/ui.store.ts (+8 -0)

📄 Description

Linked issue

Closes #4868

Why this change

  • As a user's Skills and Memories lists grow, both Professor Mari panels became long, flat walls of entries with no way to find a specific one and no way to collapse the ones you are not editing. The Memories panel especially: every row showed the name, a [PERSISTENT] pill, the full description, and a toggle, and selecting one opened a full editor at the bottom, so even a single selection filled the panel.

What changed

Both sibling panels (ProfessorMariSkillsMenu and ProfessorMariMemoriesMenu in HomeProfessorMariChat.tsx) get the same treatment:

  • Search box at the top of each panel, filtering by name + description, with a "no matches" state.
  • Collapsible accordion drawers. Each entry is a collapsed drawer that expands in place to reveal its editor (name / description / content, plus the Persistent toggle for memories), replacing the old shared bottom editor. A chevron rotates to show the state; clicking an expanded row collapses it.
  • Responsive rows. A collapsed drawer shows only the name on small screens and adds the truncated description on md and up.
  • Persistent star (Memories only). A filled star at the far left marks a persistent memory and stays visible while collapsed, replacing the old inline [PERSISTENT] text pill.
  • Creating a new entry clears the search, and the currently-open entry stays visible even if it no longer matches the query, so an inline editor never silently vanishes.

Self-reviewed with a multi-lens adversarial pass before opening; fixed the 6 findings it surfaced (screen-reader labels on the Memories toggles that were rendering raw i18n key paths; a focus ring on the drawer toggle so the new overflow-hidden does not clip the keyboard outline; the search-hides-open-editor case above; two orphaned i18n keys removed; empty-state copy consistency).

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

Automated (done): pnpm check (TypeScript + ESLint) passes; node scripts/check-locales.mjs passes (en.json sorted, no unknown locale keys after removing the two orphaned keys, including the stale ko.json mirror).

Still needs a human browser pass (I could not run a dev server here without colliding with a live install). Please verify in both panels:

  • Search filters the list and shows the "no matches" state; clearing it restores the list.
  • A drawer expands/collapses in place (chevron rotates), and inline edit / save / delete / enable / persistent all work.
  • Small viewport shows only the name per row; wider viewport also shows the truncated description.
  • A persistent memory shows the star while collapsed; toggling persistent updates it.
  • New and Upload create an entry, expand it, and keep it visible even with an active search.
  • Keyboard: tab to a drawer toggle and confirm the focus ring is fully visible (not clipped).
  • Light + dark mode.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

Notes: CHANGELOG updated. No docs/ changes, so no docs-i18n mirror is needed (the ko.json edit is a client UI locale, not a documentation pack).

Summary by CodeRabbit

  • New Features
    • Added search and sorting for Skills and Memories panels.
    • Added alphabetical, reverse alphabetical, newest, and oldest sort options.
    • Added collapsible panels and responsive descriptions.
    • Persistent memories now display a pin indicator.
    • Added inline editing improvements, including editor retention while filtering or sorting.
  • Bug Fixes
    • Improved empty and no-results states.
    • Creating an item now clears the active search query.
    • Selection can be toggled closed when reopening panels.

🔄 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/4902 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 8/11/2026 **Status:** ✅ Merged **Merged:** 8/11/2026 **Merged by:** [@kolacheee](https://github.com/kolacheee) **Base:** `staging` ← **Head:** `feat/4868-skills-memories-panels` --- ### 📝 Commits (5) - [`4581459`](https://github.com/Pasta-Devs/Marinara-Engine/commit/45814593039bc4e7890226e73ba98c85789af77d) feat(mari): searchable, collapsible Skills & Memories panels (#4868) - [`b4613c2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b4613c24b268b9176e9c67e22f3782afc232046a) fix(mari): sort + pin persistent + keep the open editor in view (#4868) - [`48e586f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/48e586fd7d5e35c80fc02b741c888625541a363a) fix(mari): guard skill draft + localize skill toggle + scroll on sort/search (#4868) - [`b93e73c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b93e73c4010d0627d1d2c0fe569088fbca57b16f) fix(mari): show the no-match state and keep collapse across refreshes (#4868) - [`f895ade`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f895adee957b3116022adebd90a5ebca44bf82c6) fix(mari): sort the retained selected row in place instead of appending it (#4868) ### 📊 Changes **5 files changed** (+432 additions, -222 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/client/src/components/chat/HomeProfessorMariChat.tsx` (+412 -219) 📝 `packages/client/src/localization/locales/en.json` (+11 -2) 📝 `packages/client/src/localization/locales/ko.json` (+0 -1) 📝 `packages/client/src/stores/ui.store.ts` (+8 -0) </details> ### 📄 Description ## Linked issue Closes #4868 ## Why this change - As a user's Skills and Memories lists grow, both Professor Mari panels became long, flat walls of entries with no way to find a specific one and no way to collapse the ones you are not editing. The Memories panel especially: every row showed the name, a `[PERSISTENT]` pill, the full description, and a toggle, and selecting one opened a full editor at the bottom, so even a single selection filled the panel. ## What changed Both sibling panels (`ProfessorMariSkillsMenu` and `ProfessorMariMemoriesMenu` in `HomeProfessorMariChat.tsx`) get the same treatment: - **Search box** at the top of each panel, filtering by name + description, with a "no matches" state. - **Collapsible accordion drawers.** Each entry is a collapsed drawer that expands *in place* to reveal its editor (name / description / content, plus the Persistent toggle for memories), replacing the old shared bottom editor. A chevron rotates to show the state; clicking an expanded row collapses it. - **Responsive rows.** A collapsed drawer shows only the name on small screens and adds the truncated description on `md` and up. - **Persistent star (Memories only).** A filled star at the far left marks a persistent memory and stays visible while collapsed, replacing the old inline `[PERSISTENT]` text pill. - Creating a new entry clears the search, and the currently-open entry stays visible even if it no longer matches the query, so an inline editor never silently vanishes. Self-reviewed with a multi-lens adversarial pass before opening; fixed the 6 findings it surfaced (screen-reader labels on the Memories toggles that were rendering raw i18n key paths; a focus ring on the drawer toggle so the new `overflow-hidden` does not clip the keyboard outline; the search-hides-open-editor case above; two orphaned i18n keys removed; empty-state copy consistency). ## Validation - [x] `pnpm check` passes locally - [x] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes Automated (done): `pnpm check` (TypeScript + ESLint) passes; `node scripts/check-locales.mjs` passes (en.json sorted, no unknown locale keys after removing the two orphaned keys, including the stale ko.json mirror). Still needs a human browser pass (I could not run a dev server here without colliding with a live install). Please verify in both panels: - Search filters the list and shows the "no matches" state; clearing it restores the list. - A drawer expands/collapses in place (chevron rotates), and inline edit / save / delete / enable / persistent all work. - Small viewport shows only the name per row; wider viewport also shows the truncated description. - A persistent memory shows the star while collapsed; toggling persistent updates it. - New and Upload create an entry, expand it, and keep it visible even with an active search. - Keyboard: tab to a drawer toggle and confirm the focus ring is fully visible (not clipped). - Light + dark mode. ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) Notes: CHANGELOG updated. No `docs/` changes, so no `docs-i18n` mirror is needed (the ko.json edit is a client UI locale, not a documentation pack). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added search and sorting for Skills and Memories panels. * Added alphabetical, reverse alphabetical, newest, and oldest sort options. * Added collapsible panels and responsive descriptions. * Persistent memories now display a pin indicator. * Added inline editing improvements, including editor retention while filtering or sorting. * **Bug Fixes** * Improved empty and no-results states. * Creating an item now clears the active search query. * Selection can be toggled closed when reopening panels. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:11:20 +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#6535
No description provided.