[PR #7583] [MERGED] fix(agents): list 2D Avatars and 3D Avatars under the Roleplay and Game filters #7813

Closed
opened 2026-10-24 04:07:43 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7583
Author: @SpicyMarinara
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/avatars-catalog-mode-filter


📝 Commits (2)

  • 822c29d fix(agents): list 2D Avatars and 3D Avatars under the Roleplay and Game filters
  • d7a3ffc Merge remote-tracking branch 'origin/staging' into HEAD

📊 Changes

2 files changed (+9 additions, -0 deletions)

View changed files

📝 packages/client/src/components/agents/AgentCatalogView.tsx (+2 -0)
📝 scripts/regressions/agent-catalog-kind-badges.regression.ts (+7 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Part of #7537 (avatar agents epic). Found while reviewing Pasta-Devs/Marinara-Agents#1372, which offers both avatar agents to staging testers in Download Agents. That fix cannot go in the Agents PR because the filter is Engine code.

Why this change

  • Agents → Download Agents decides which packages pass the Roleplay, Game and Conversation filters, and which mode badges a row shows, from a fixed map of official package ids (OFFICIAL_PACKAGE_MODES in AgentCatalogView.tsx). The catalog entry does not carry the package's modeAllowlist, which lives in agents.json inside the ZIP.
  • 2d-avatars and 3d-avatars were missing from that map, so packageModes() returned [] for them. Once Agents#1372 lists them on a staging Engine, a tester who picks Roleplay or Game, the only modes these agents support, sees neither agent. Under All, their rows show no mode badges.
  • The same gap was fixed this way before for other packages (2b9165c80 for the new trackers, c17a146ba for ruleset-5e-2014).

What changed

  • packages/client/src/components/agents/AgentCatalogView.tsx: adds "2d-avatars": ["roleplay", "game"] and "3d-avatars": ["roleplay", "game"]. That matches the modeAllowlist both packages declare in their agents.json.
  • scripts/regressions/agent-catalog-kind-badges.regression.ts: asserts both entries, next to the existing Storyboard, Beholder, Gacha Forge and Slurp checks.

No copy, localization keys, styling or server code changed.

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

Commands run by the agent at 822c29da1 (based on staging 1cd98bc16). The boxes above are left for a human.

  • pnpm check: exit 0. Impeccable, localization, Prettier, lint (0 errors), e2e and token-estimation types, and the production build all pass. npx eslint on AgentCatalogView.tsx alone is clean.
  • node scripts/run-regressions.mjs --filter agent-catalog-kind-badges: passed. With the AgentCatalogView.tsx change stashed, it fails with 2d-avatars must stay listed under the Roleplay and Game catalog filters.
  • node scripts/run-regressions.mjs --filter assigned-issues-5474-5502 and --filter mobile-tracker-help-layout, which also pin the catalog filter and badges: passed.
  • A temporary Playwright spec, deleted after the run, fed Download Agents the real 2d-avatars and 3d-avatars entries from Agents#1372's catalog/preview/v2/catalog.json and clicked each mode filter (desktop Chromium):
    • with this change: {"All":2,"Conversation":0,"Roleplay":2,"Game":2}, and each row shows the badges ["Roleplay","Game"];
    • without it: {"All":2,"Conversation":0,"Roleplay":0,"Game":0} with no badges, which reproduces the report.
  • pnpm regression:ui e2e/agent-apps-category.e2e.ts --project=desktop-chromium --workers=1: 1 passed.
  • pnpm smoke:ui: 7 passed.
  • git diff --check: clean.
  • Local CodeRabbit (coderabbit review --agent --committed, base 1cd98bc16): 1 trivial finding, rejected. See the PR comment.

Manual verification notes

On a staging Engine after this PR merges, and after Agents#1372 merges into Agents staging (until then the avatar agents are not in the catalog):

  1. Open Agents → Download Agents.
  2. Manually verify that with All selected, the 2D Avatars and 3D Avatars rows under Misc Agents show Roleplay and Game badges.
  3. Manually verify that picking Roleplay keeps both avatar agents listed, and picking Game does too.
  4. Manually verify that picking Conversation hides both.
  5. Manually verify that opening either agent's details shows the same Roleplay and Game tags.

Docs and release impact

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

No docs change in this PR. Separate from it, Agents#1372 flags that docs/agents/avatars.md ("Downloading the agents") still says both agents are not in Download Agents yet, which stops being true for staging testers once that PR lands.

UI evidence (if applicable)

No visual change beyond the two existing badges appearing on the avatar rows and the filters including them. The Playwright counts above are the evidence.

Summary by CodeRabbit

  • Bug Fixes
    • Corrected catalog badges for 2D and 3D avatar packages. Both now display Roleplay and Game badges, clearly showing these packages are available for both modes when browsing the agent catalog.

🔄 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/7583 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/avatars-catalog-mode-filter` --- ### 📝 Commits (2) - [`822c29d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/822c29da1c29d4ce96748373ed0139714feb3923) fix(agents): list 2D Avatars and 3D Avatars under the Roleplay and Game filters - [`d7a3ffc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d7a3ffc0a5996673974b2dbb6ed2e2a793a35440) Merge remote-tracking branch 'origin/staging' into HEAD ### 📊 Changes **2 files changed** (+9 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/agents/AgentCatalogView.tsx` (+2 -0) 📝 `scripts/regressions/agent-catalog-kind-badges.regression.ts` (+7 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Part of #7537 (avatar agents epic). Found while reviewing Pasta-Devs/Marinara-Agents#1372, which offers both avatar agents to `staging` testers in **Download Agents**. That fix cannot go in the Agents PR because the filter is Engine code. ## Why this change - **Agents → Download Agents** decides which packages pass the **Roleplay**, **Game** and **Conversation** filters, and which mode badges a row shows, from a fixed map of official package ids (`OFFICIAL_PACKAGE_MODES` in `AgentCatalogView.tsx`). The catalog entry does not carry the package's `modeAllowlist`, which lives in `agents.json` inside the ZIP. - `2d-avatars` and `3d-avatars` were missing from that map, so `packageModes()` returned `[]` for them. Once Agents#1372 lists them on a `staging` Engine, a tester who picks **Roleplay** or **Game**, the only modes these agents support, sees neither agent. Under **All**, their rows show no mode badges. - The same gap was fixed this way before for other packages (2b9165c80 for the new trackers, c17a146ba for `ruleset-5e-2014`). ## What changed - `packages/client/src/components/agents/AgentCatalogView.tsx`: adds `"2d-avatars": ["roleplay", "game"]` and `"3d-avatars": ["roleplay", "game"]`. That matches the `modeAllowlist` both packages declare in their `agents.json`. - `scripts/regressions/agent-catalog-kind-badges.regression.ts`: asserts both entries, next to the existing Storyboard, Beholder, Gacha Forge and Slurp checks. No copy, localization keys, styling or server code changed. ## 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` Commands run by the agent at `822c29da1` (based on `staging` `1cd98bc16`). The boxes above are left for a human. - `pnpm check`: exit 0. Impeccable, localization, Prettier, lint (0 errors), e2e and token-estimation types, and the production build all pass. `npx eslint` on `AgentCatalogView.tsx` alone is clean. - `node scripts/run-regressions.mjs --filter agent-catalog-kind-badges`: passed. With the `AgentCatalogView.tsx` change stashed, it fails with `2d-avatars must stay listed under the Roleplay and Game catalog filters`. - `node scripts/run-regressions.mjs --filter assigned-issues-5474-5502` and `--filter mobile-tracker-help-layout`, which also pin the catalog filter and badges: passed. - A temporary Playwright spec, deleted after the run, fed **Download Agents** the real `2d-avatars` and `3d-avatars` entries from Agents#1372's `catalog/preview/v2/catalog.json` and clicked each mode filter (desktop Chromium): - with this change: `{"All":2,"Conversation":0,"Roleplay":2,"Game":2}`, and each row shows the badges `["Roleplay","Game"]`; - without it: `{"All":2,"Conversation":0,"Roleplay":0,"Game":0}` with no badges, which reproduces the report. - `pnpm regression:ui e2e/agent-apps-category.e2e.ts --project=desktop-chromium --workers=1`: 1 passed. - `pnpm smoke:ui`: 7 passed. - `git diff --check`: clean. - Local CodeRabbit (`coderabbit review --agent --committed`, base `1cd98bc16`): 1 trivial finding, rejected. See the PR comment. ### Manual verification notes On a `staging` Engine after this PR merges, and after Agents#1372 merges into Agents `staging` (until then the avatar agents are not in the catalog): 1. Open **Agents → Download Agents**. 2. Manually verify that with **All** selected, the **2D Avatars** and **3D Avatars** rows under **Misc Agents** show **Roleplay** and **Game** badges. 3. Manually verify that picking **Roleplay** keeps both avatar agents listed, and picking **Game** does too. 4. Manually verify that picking **Conversation** hides both. 5. Manually verify that opening either agent's details shows the same **Roleplay** and **Game** tags. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n] <paths>` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) No docs change in this PR. Separate from it, Agents#1372 flags that `docs/agents/avatars.md` ("Downloading the agents") still says both agents are not in **Download Agents** yet, which stops being true for `staging` testers once that PR lands. ## UI evidence (if applicable) No visual change beyond the two existing badges appearing on the avatar rows and the filters including them. The Playwright counts above are the evidence. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Corrected catalog badges for 2D and 3D avatar packages. Both now display Roleplay and Game badges, clearly showing these packages are available for both modes when browsing the agent catalog. <!-- 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-24 04:07:43 +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#7813
No description provided.