[PR #8535] [MERGED] Put First Message and Example Dialogue in the card field panel #8658

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

📋 Pull Request Information

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

Base: staging ← Head: feat/greeting-panel


📝 Commits (3)

  • 3021a2b feat(characters): put greetings and example dialogue in the card field panel
  • 5190a30 test(characters): follow greeting fields into TextareaTab in the token check
  • 1f618db fix(characters): number alternates after First Message, match trash colour

📊 Changes

3 files changed (+166 additions, -172 deletions)

View changed files

📝 packages/client/src/components/characters/CharacterEditor.tsx (+155 -170)
📝 packages/client/src/localization/locales/en.json (+1 -0)
📝 scripts/regressions/prompt-token-counters.regression.ts (+10 -2)

📄 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

Closes #8534

Why this change

  • In the Character Editor, Appearance, Scenario and the other card fields sit in a bordered panel with their title, wand, field and alternatives. First Message and Example Dialogue floated without one, so the same page read as two different designs.

What changed

Panels

  • First Message and Example Dialogue now render through TextareaTab, the component the other card fields use, so they share its panel, title, subtitle, wand slot, field and footer.
  • TextareaTab gained an optional textareaClassName, which keeps Example Dialogue's prompt font.
  • The "Only Roleplay chats start with a greeting" hint is now First Message's subtitle. The copy above the alternates is gone, since one panel holds both.

Alternate greetings

  • They now sit inside the First Message panel as nested cards, styled like the entries in CardFieldAlternatives, with larger action buttons (40px instead of 32px, for touch) and token counts.
  • Their headings and placeholders now start at Greeting #2, since First Message is greeting #1. Accessible labels stay "Alternate Greeting #1", the alternate's own position and the name the chat's greeting picker uses.
  • Their add button moved below the cards and reads "Add Alternate Greeting", styled like "Add Alternative Field".

Not changed

  • first_mes and alternate_greetings keep their data, with no backend change, and alternates remain swipes. They do not become alternative fields, because an alternative field replaces the original in chats the author picks, while an alternate greeting is a swipe in every new chat.
  • GreetingVariableChips, the data-mari-field anchors and MariFieldReview stay. alternate_greetings now nests inside first_mes, so Mari's glow on First Message wraps the whole panel, as it already wraps Appearance's alternatives.

Precedents: CharacterEditor.tsx TextareaTab for the panel, CardFieldAlternatives.tsx AlternativeField for the cards and the add button.

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

Open a character with two or more alternate greetings, then go to Card > Dialogue.

  • Manually verify in the browser that First Message and Example Dialogue have the same panel as Appearance and Scenario, in the default and sillytavern themes, each in light and dark mode.
  • Manually verify that the alternate greeting cards, their icons and the trash button stay readable in all four of those combinations.
  • Manually verify at phone width (375px) that the card headers fit, the page does not scroll sideways, and the wand, move and trash buttons are easy to tap.
  • Manually verify that Add Alternate Greeting adds an empty card, trash removes the right one, and the arrows reorder cards without losing text. Then save, reload and confirm the order held.
  • Manually verify on a card with onboarding questions that the variable chips appear only under the greeting you last focused, and that a chip inserts at the caret in that greeting.
  • Manually verify that a new Roleplay chat still offers the alternates as swipes.
  • Manually verify that the First Message wand, the alternate greeting wands and Example Dialogue's wand still generate into the right field, and that Example Dialogue's Add Alternative Field still works.
  • Manually verify that a Prof. Mari edit to First Message or Example Dialogue still shows its review inside the panel and focuses the right field.

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)

Not attached 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/8535 **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/greeting-panel` --- ### 📝 Commits (3) - [`3021a2b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3021a2bb519397c507f99176fd4096390f26499d) feat(characters): put greetings and example dialogue in the card field panel - [`5190a30`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5190a3093535ff2b2847c2c3ed387b32a1dfcb46) test(characters): follow greeting fields into TextareaTab in the token check - [`1f618db`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1f618db2bb6a912e37d3800b09e1eabd04075e5a) fix(characters): number alternates after First Message, match trash colour ### 📊 Changes **3 files changed** (+166 additions, -172 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+155 -170) 📝 `packages/client/src/localization/locales/en.json` (+1 -0) 📝 `scripts/regressions/prompt-token-counters.regression.ts` (+10 -2) </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`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #8534 ## Why this change - In the Character Editor, Appearance, Scenario and the other card fields sit in a bordered panel with their title, wand, field and alternatives. First Message and Example Dialogue floated without one, so the same page read as two different designs. ## What changed **Panels** - First Message and Example Dialogue now render through `TextareaTab`, the component the other card fields use, so they share its panel, title, subtitle, wand slot, field and footer. - `TextareaTab` gained an optional `textareaClassName`, which keeps Example Dialogue's prompt font. - The "Only Roleplay chats start with a greeting" hint is now First Message's subtitle. The copy above the alternates is gone, since one panel holds both. **Alternate greetings** - They now sit inside the First Message panel as nested cards, styled like the entries in `CardFieldAlternatives`, with larger action buttons (40px instead of 32px, for touch) and token counts. - Their headings and placeholders now start at Greeting #2, since First Message is greeting #1. Accessible labels stay "Alternate Greeting #1", the alternate's own position and the name the chat's greeting picker uses. - Their add button moved below the cards and reads "Add Alternate Greeting", styled like "Add Alternative Field". **Not changed** - `first_mes` and `alternate_greetings` keep their data, with no backend change, and alternates remain swipes. They do not become alternative fields, because an alternative field replaces the original in chats the author picks, while an alternate greeting is a swipe in every new chat. - `GreetingVariableChips`, the `data-mari-field` anchors and `MariFieldReview` stay. `alternate_greetings` now nests inside `first_mes`, so Mari's glow on First Message wraps the whole panel, as it already wraps Appearance's alternatives. **Precedents:** `CharacterEditor.tsx` `TextareaTab` for the panel, `CardFieldAlternatives.tsx` `AlternativeField` for the cards and the add button. ## 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 Open a character with two or more alternate greetings, then go to Card > Dialogue. - Manually verify in the browser that First Message and Example Dialogue have the same panel as Appearance and Scenario, in the `default` and `sillytavern` themes, each in light and dark mode. - Manually verify that the alternate greeting cards, their icons and the trash button stay readable in all four of those combinations. - Manually verify at phone width (375px) that the card headers fit, the page does not scroll sideways, and the wand, move and trash buttons are easy to tap. - Manually verify that Add Alternate Greeting adds an empty card, trash removes the right one, and the arrows reorder cards without losing text. Then save, reload and confirm the order held. - Manually verify on a card with onboarding questions that the variable chips appear only under the greeting you last focused, and that a chip inserts at the caret in that greeting. - Manually verify that a new Roleplay chat still offers the alternates as swipes. - Manually verify that the First Message wand, the alternate greeting wands and Example Dialogue's wand still generate into the right field, and that Example Dialogue's Add Alternative Field still works. - Manually verify that a Prof. Mari edit to First Message or Example Dialogue still shows its review inside the panel and focuses the right field. ## 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) Not attached 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:17 +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#8658
No description provided.