[PR #8514] [MERGED] feat(characters): mark cards with onboarding in the Characters panel #8645

Closed
opened 2026-11-07 16:46:12 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8514
Author: @ylli-selmani
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @ylli-selmani

Base: staging ← Head: feat/panel-onboarding-marker


📝 Commits (1)

  • 122f54d feat(characters): mark cards with onboarding in the Characters panel

📊 Changes

4 files changed (+40 additions, -0 deletions)

View changed files

📝 packages/client/src/components/panels/CharactersPanel.tsx (+25 -0)
📝 packages/server/src/services/storage/character-catalog.ts (+2 -0)
📝 packages/shared/src/types/character-catalog.ts (+2 -0)
📝 packages/shared/src/utils/onboarding.ts (+11 -0)

📄 Description

Linked issue

Closes #8513

Why this change

Cards with interactive onboarding were only recognisable in Chat Settings' available-character list. In the right-side Characters panel nothing told you which cards ask questions.

What changed

  • Characters panel (CharactersPanel.tsx): a passive UserPlus badge on the avatar of every card with onboarding, in both root rows and folder rows (the panel has no grid view). Tooltip and aria-label reuse the existing ui.characters.onboarding.hasOnboarding key, so there is no new locale string.
  • Character catalog (server + CharacterCatalogEntry): new hasOnboarding flag. The panel only loads the slim catalog (no card data), so the flag is computed once per catalog build and cached with the entry; there is no per-card fetch and no client-side parsing.
  • Shared helper cardHasInteractiveOnboarding(data) in onboarding.ts: onboarding enabled and hasOnboardingContent, the same gate the setup wizard's marker uses.

UI precedent: the available-list badge in ChatSettingsDrawer.tsx (onboardingByCharacterId.has(c.id), UserPlus, "Has interactive onboarding"). The avatar placement copies this panel's own favourite star badge (bottom-right, so it never collides with the star).

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

  • Manually verify a card with enabled onboarding and at least one question or persona text shows the badge on its avatar in the Characters panel, and a card without onboarding (or with onboarding switched off, or enabled but empty) does not.
  • Manually verify the badge also shows on a card inside a folder, with the favourite star still visible alongside it.
  • Manually verify the badge in light and dark mode, both themes, and at phone width.
  • Manually verify enabling/disabling onboarding on a card and saving updates the badge.

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] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

None yet.

🤖 Generated with Claude Code


🔄 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/8514 **Author:** [@ylli-selmani](https://github.com/ylli-selmani) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@ylli-selmani](https://github.com/ylli-selmani) **Base:** `staging` ← **Head:** `feat/panel-onboarding-marker` --- ### 📝 Commits (1) - [`122f54d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/122f54d95a3a7e7ce0694a65265b275442126f1a) feat(characters): mark cards with onboarding in the Characters panel ### 📊 Changes **4 files changed** (+40 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/panels/CharactersPanel.tsx` (+25 -0) 📝 `packages/server/src/services/storage/character-catalog.ts` (+2 -0) 📝 `packages/shared/src/types/character-catalog.ts` (+2 -0) 📝 `packages/shared/src/utils/onboarding.ts` (+11 -0) </details> ### 📄 Description ## Linked issue Closes #8513 ## Why this change Cards with interactive onboarding were only recognisable in Chat Settings' available-character list. In the right-side Characters panel nothing told you which cards ask questions. ## What changed - Characters panel (`CharactersPanel.tsx`): a passive `UserPlus` badge on the avatar of every card with onboarding, in both root rows and folder rows (the panel has no grid view). Tooltip and `aria-label` reuse the existing `ui.characters.onboarding.hasOnboarding` key, so there is no new locale string. - Character catalog (server + `CharacterCatalogEntry`): new `hasOnboarding` flag. The panel only loads the slim catalog (no card `data`), so the flag is computed once per catalog build and cached with the entry; there is no per-card fetch and no client-side parsing. - Shared helper `cardHasInteractiveOnboarding(data)` in `onboarding.ts`: onboarding enabled and `hasOnboardingContent`, the same gate the setup wizard's marker uses. UI precedent: the available-list badge in `ChatSettingsDrawer.tsx` (`onboardingByCharacterId.has(c.id)`, `UserPlus`, "Has interactive onboarding"). The avatar placement copies this panel's own favourite star badge (bottom-right, so it never collides with the star). ## 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 - Manually verify a card with enabled onboarding and at least one question or persona text shows the badge on its avatar in the Characters panel, and a card without onboarding (or with onboarding switched off, or enabled but empty) does not. - Manually verify the badge also shows on a card inside a folder, with the favourite star still visible alongside it. - Manually verify the badge in light and dark mode, both themes, and at phone width. - Manually verify enabling/disabling onboarding on a card and saving updates the badge. ## Docs and release impact - [x] 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]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) None yet. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:46:12 +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#8645
No description provided.