[PR #8796] [MERGED] fix(client): chat settings rows open the picker, folders add from inside it #8809

Closed
opened 2026-11-07 17:39:52 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8796
Author: @Gunterlie
Created: 11/3/2026
Status: ✅ Merged
Merged: 11/4/2026
Merged by: @Gunterlie

Base: staging ← Head: soup/drawer-picker-rows


📝 Commits (3)

  • 4531dbd fix(client): chat settings rows open the picker, folders add from inside it
  • 17b81fe fix(client): show Add all for a single real folder in the picker
  • 11de5e9 fix(client): anchor drawer pickers to elements that stay mounted

📊 Changes

7 files changed (+292 additions, -305 deletions)

View changed files

📝 docs/appearance/card-css-theming.md (+1 -1)
📝 docs/chats/group-chats.md (+2 -1)
📝 packages/client/src/components/characters/CharacterPickerList.tsx (+53 -13)
📝 packages/client/src/components/characters/CharacterSelect.tsx (+2 -1)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+228 -284)
📝 packages/client/src/lib/character-identity-groups.ts (+3 -1)
📝 packages/client/src/localization/locales/en.json (+3 -4)

📄 Description

Why

In the chat settings drawer, a click on a character row closed the drawer and opened the character profile. Users expect the row to open the new picker, like the persona card should. The drawer also had a second, separate "Add from Folder" dropdown next to the picker, which already shows folders.

No issue exists for this. It is a follow-up to #8763 (shared CharacterSelect).

What changes

  • A click on a character row (game party and chat characters) opens the character picker. The picker anchors to the always-mounted Add Character button, so focus returns there and a deselect cannot remove the anchor. The pencil still opens the edit in the drawer.
  • A click on the persona card (game and chat) opens the persona picker, anchored to a focusable wrapper that stays mounted when the persona changes. The dashed "Choose Persona" button shows only when no persona is set.
  • Folder rows in the multi-pick picker get an Add all (N) button. The drawer passes onPickGroup, and the old "Add from Folder" dropdown is removed. The "Ungrouped" folder gets no Add all button.
  • The game persona pick now also clears personaCharacterId.
  • Docs: docs/chats/group-chats.md and docs/appearance/card-css-theming.md name the new path.
  • Unused locale keys removed: ui.chat.chatsettingsdrawer.{change,selectAFolder,value1New,allAdded}.

Validation run

  • check-locales.mjs, localization:ui-check: pass
  • eslint on the changed files: pass
  • client tsc --noEmit: pass
  • the 15 regression files that read the changed components: pass

Manual verification needed

  • Manually verify in browser: a click on a chat character row opens the picker (desktop popover next to Add Character, phone bottom sheet).
  • Manually verify: a click on the persona card opens the persona picker, and picking None clears it.
  • Manually verify: "Add all" on a folder adds the missing characters, also in a hosted multiplayer room.
  • Manually verify: focus returns to the Add Character button or the persona box after the picker closes.
  • docs-i18n: mirror the two doc edits on docs-i18n or open a [docs-i18n] follow-up issue.

🔄 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/8796 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 11/3/2026 **Status:** ✅ Merged **Merged:** 11/4/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `soup/drawer-picker-rows` --- ### 📝 Commits (3) - [`4531dbd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4531dbd9e5e2b609d25065c73c575ba052c22591) fix(client): chat settings rows open the picker, folders add from inside it - [`17b81fe`](https://github.com/Pasta-Devs/Marinara-Engine/commit/17b81fe594d430b12025ae0d767f7d71a301b83c) fix(client): show Add all for a single real folder in the picker - [`11de5e9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/11de5e9d00fd218b1f54d76a0c5564ded5913584) fix(client): anchor drawer pickers to elements that stay mounted ### 📊 Changes **7 files changed** (+292 additions, -305 deletions) <details> <summary>View changed files</summary> 📝 `docs/appearance/card-css-theming.md` (+1 -1) 📝 `docs/chats/group-chats.md` (+2 -1) 📝 `packages/client/src/components/characters/CharacterPickerList.tsx` (+53 -13) 📝 `packages/client/src/components/characters/CharacterSelect.tsx` (+2 -1) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+228 -284) 📝 `packages/client/src/lib/character-identity-groups.ts` (+3 -1) 📝 `packages/client/src/localization/locales/en.json` (+3 -4) </details> ### 📄 Description ## Why In the chat settings drawer, a click on a character row closed the drawer and opened the character profile. Users expect the row to open the new picker, like the persona card should. The drawer also had a second, separate "Add from Folder" dropdown next to the picker, which already shows folders. No issue exists for this. It is a follow-up to #8763 (shared CharacterSelect). ## What changes - A click on a character row (game party and chat characters) opens the character picker. The picker anchors to the always-mounted **Add Character** button, so focus returns there and a deselect cannot remove the anchor. The pencil still opens the edit in the drawer. - A click on the persona card (game and chat) opens the persona picker, anchored to a focusable wrapper that stays mounted when the persona changes. The dashed "Choose Persona" button shows only when no persona is set. - Folder rows in the multi-pick picker get an **Add all (N)** button. The drawer passes `onPickGroup`, and the old "Add from Folder" dropdown is removed. The "Ungrouped" folder gets no Add all button. - The game persona pick now also clears `personaCharacterId`. - Docs: `docs/chats/group-chats.md` and `docs/appearance/card-css-theming.md` name the new path. - Unused locale keys removed: `ui.chat.chatsettingsdrawer.{change,selectAFolder,value1New,allAdded}`. ## Validation run - `check-locales.mjs`, `localization:ui-check`: pass - eslint on the changed files: pass - client `tsc --noEmit`: pass - the 15 regression files that read the changed components: pass ## Manual verification needed - [ ] Manually verify in browser: a click on a chat character row opens the picker (desktop popover next to Add Character, phone bottom sheet). - [ ] Manually verify: a click on the persona card opens the persona picker, and picking None clears it. - [ ] Manually verify: "Add all" on a folder adds the missing characters, also in a hosted multiplayer room. - [ ] Manually verify: focus returns to the Add Character button or the persona box after the picker closes. - [ ] docs-i18n: mirror the two doc edits on `docs-i18n` or open a `[docs-i18n]` follow-up issue. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 17:39:52 +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#8809
No description provided.