[PR #1717] [MERGED] [codex] Fix persona ungrouped group parity #5229

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

📋 Pull Request Information

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

Base: refactor ← Head: fix/persona-ungrouped-bucket


📝 Commits (2)

  • f0c1d4c Fix persona ungrouped group parity
  • 89e0bdf Cover personas with no real groups

📊 Changes

4 files changed (+143 additions, -83 deletions)

View changed files

📝 src/features/catalog/personas/components/PersonaGroupsSection.tsx (+60 -55)
📝 src/features/catalog/personas/components/PersonasPanel.tsx (+2 -2)
📝 src/features/catalog/personas/lib/personas-panel-model.test.ts (+44 -20)
📝 src/features/catalog/personas/lib/personas-panel-model.ts (+37 -6)

📄 Description

Linked issue

No linked issue.

Why this change

  • Restores legacy persona panel parity for personas that are not assigned to any persona group.
  • Root cause: the refactor group model only mapped persisted groups and did not derive the legacy UI-only Ungrouped bucket from the persona list.

What changed

  • Derive a synthetic Ungrouped persona group when one or more personas are outside every real group.
  • Pass persona summaries into the group model so unassigned personas can be detected.
  • Mark the synthetic group as UI-only and hide assign, rename, delete, and remove-member actions for it.
  • Add focused model coverage for creating and omitting the synthetic group.

Refactor impact

Primary owner:

  • Catalog personas UI.

Impact areas reviewed:

  • Persona panel model.
  • Persona panel group wiring.
  • Persona group UI mutation controls.
  • Persona group storage hook contract.

Boundary notes:

  • Feature-layer UI/model change only.
  • No engine, shared API, Rust, storage schema, Tauri command, or remote runtime boundary changes.

Pressure points touched:

  • None.

Validation

  • pnpm check passes locally
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Playwright, screenshot, or recording evidence added for UI changes
  • Remote runtime smoke checked when relevant

Manual verification notes

  • pnpm exec vitest run src/features/catalog/personas/lib/personas-panel-model.test.ts passed.
  • pnpm typecheck passed.
  • pnpm check:architecture passed.
  • pnpm exec prettier --check src/features/catalog/personas/lib/personas-panel-model.ts src/features/catalog/personas/lib/personas-panel-model.test.ts src/features/catalog/personas/components/PersonasPanel.tsx src/features/catalog/personas/components/PersonaGroupsSection.tsx passed.
  • git diff --check passed.
  • pnpm check passed.
  • Native Tauri QA passed with pnpm tauri dev --no-watch --config scratch\tauri-qa.config.json: seeded temporary personas/groups through embedded Tauri storage, opened Personas, verified GROUPS (2), QA Real Group (1), expanded Ungrouped (2), saw both ungrouped members, confirmed only the real group exposed assign/rename/delete actions, and cleaned up temp records.

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

No docs changes needed; this is a narrow UI parity bugfix.

UI evidence

Native Tauri QA was completed locally for the persona grouping path. No screenshot is attached to this PR body.

Summary by CodeRabbit

  • New Features

    • Personas without assigned groups are now automatically organized into a system-managed "Ungrouped" group.
  • Improvements

    • Synthetic groups are now read-only; management actions (rename, delete, assign) are hidden and persona removal is restricted.

🔄 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/1717 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 5/31/2026 **Status:** ✅ Merged **Merged:** 5/31/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `refactor` ← **Head:** `fix/persona-ungrouped-bucket` --- ### 📝 Commits (2) - [`f0c1d4c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f0c1d4c5296a2e50c0b21ba09b25658341638804) Fix persona ungrouped group parity - [`89e0bdf`](https://github.com/Pasta-Devs/Marinara-Engine/commit/89e0bdfcee859c58e32ca714335e6cc697af1af2) Cover personas with no real groups ### 📊 Changes **4 files changed** (+143 additions, -83 deletions) <details> <summary>View changed files</summary> 📝 `src/features/catalog/personas/components/PersonaGroupsSection.tsx` (+60 -55) 📝 `src/features/catalog/personas/components/PersonasPanel.tsx` (+2 -2) 📝 `src/features/catalog/personas/lib/personas-panel-model.test.ts` (+44 -20) 📝 `src/features/catalog/personas/lib/personas-panel-model.ts` (+37 -6) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue No linked issue. ## Why this change - Restores legacy persona panel parity for personas that are not assigned to any persona group. - Root cause: the refactor group model only mapped persisted groups and did not derive the legacy UI-only `Ungrouped` bucket from the persona list. ## What changed - Derive a synthetic `Ungrouped` persona group when one or more personas are outside every real group. - Pass persona summaries into the group model so unassigned personas can be detected. - Mark the synthetic group as UI-only and hide assign, rename, delete, and remove-member actions for it. - Add focused model coverage for creating and omitting the synthetic group. ## Refactor impact Primary owner: - Catalog personas UI. Impact areas reviewed: - Persona panel model. - Persona panel group wiring. - Persona group UI mutation controls. - Persona group storage hook contract. Boundary notes: - Feature-layer UI/model change only. - No engine, shared API, Rust, storage schema, Tauri command, or remote runtime boundary changes. Pressure points touched: - None. ## Validation <!-- Check only what you personally ran or manually verified. Treat unchecked items as explicit TODOs. --> - [x] `pnpm check` passes locally - [x] `pnpm typecheck` passes locally - [x] `pnpm build` passes locally - [x] `pnpm check:architecture` passes locally - [x] `pnpm check:docs` passes locally - [x] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [x] Browser or Tauri app manual verification completed - [ ] Playwright, screenshot, or recording evidence added for UI changes - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - `pnpm exec vitest run src/features/catalog/personas/lib/personas-panel-model.test.ts` passed. - `pnpm typecheck` passed. - `pnpm check:architecture` passed. - `pnpm exec prettier --check src/features/catalog/personas/lib/personas-panel-model.ts src/features/catalog/personas/lib/personas-panel-model.test.ts src/features/catalog/personas/components/PersonasPanel.tsx src/features/catalog/personas/components/PersonaGroupsSection.tsx` passed. - `git diff --check` passed. - `pnpm check` passed. - Native Tauri QA passed with `pnpm tauri dev --no-watch --config scratch\tauri-qa.config.json`: seeded temporary personas/groups through embedded Tauri storage, opened Personas, verified `GROUPS (2)`, `QA Real Group (1)`, expanded `Ungrouped (2)`, saw both ungrouped members, confirmed only the real group exposed assign/rename/delete actions, and cleaned up temp records. ## Docs and release impact - [x] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [x] Confirmed this PR does not restore old staging/package-workspace/release claims No docs changes needed; this is a narrow UI parity bugfix. ## UI evidence Native Tauri QA was completed locally for the persona grouping path. No screenshot is attached to this PR body. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Personas without assigned groups are now automatically organized into a system-managed "Ungrouped" group. * **Improvements** * Synthetic groups are now read-only; management actions (rename, delete, assign) are hidden and persona removal is restricted. <!-- 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-22 04:14:25 +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#5229
No description provided.