mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3340] [MERGED] feat(dice): animated dice components + wire into chat and game surfaces #5887
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#5887
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3340
Author: @Gunterlie
Created: 7/7/2026
Status: ✅ Merged
Merged: 7/7/2026
Merged by: @SpicyMarinara
Base:
staging← Head:dicey-stuff📝 Commits (6)
5e5d665feat(dice): animated dice components + wire into chat and game surfaces002f7abMerge branch 'staging' into dicey-stufff8c700cfix(dice): address code review findings89a7e63Merge branch 'staging' into dicey-stuff368c2f3fix(schema): revert extra schema restriction — type used by server-internal callers299a7d4fix(dice): coin flip animation instead of lateral roll📊 Changes
19 files changed (+1269 additions, -90 deletions)
View changed files
📝
packages/client/src/components/chat/ChatMessage.tsx(+6 -3)📝
packages/client/src/components/chat/ConversationMessageBubble.tsx(+3 -0)📝
packages/client/src/components/chat/ConversationMessageLine.tsx(+3 -0)📝
packages/client/src/components/chat/ConversationMessageShared.tsx(+7 -0)➕
packages/client/src/components/dice/AnimatedDiceRoll.tsx(+171 -0)➕
packages/client/src/components/dice/AnimatedSkillCheckResult.tsx(+66 -0)➕
packages/client/src/components/dice/DiceGlyph.tsx(+98 -0)➕
packages/client/src/components/dice/dice-shapes.ts(+165 -0)➕
packages/client/src/components/dice/dice-visual-profiles.ts(+54 -0)➕
packages/client/src/components/dice/dice.css(+672 -0)📝
packages/client/src/components/game/GameDiceResult.tsx(+2 -22)📝
packages/client/src/components/game/GameSkillCheckResult.tsx(+2 -42)📝
packages/client/src/components/game/GameSurface.tsx(+2 -0)📝
packages/client/src/hooks/use-chats.ts(+1 -1)📝
packages/client/src/lib/slash-commands.ts(+11 -2)📝
packages/client/src/styles/globals.css(+0 -19)📝
packages/server/src/services/storage/chats.storage.ts(+2 -1)📝
packages/shared/src/schemas/chat.schema.ts(+1 -0)📝
packages/shared/src/types/chat.ts(+3 -0)📄 Description
Linked issue
Closes #
Why this change
What changed
packages/client/src/components/dice/— new component directory:DiceGlyph.tsx— renders a die face (d4 / d6 / d8 / d10 / d12 / d20 / d100) with the rolled valuedice-shapes.ts— SVG path data for each die polygondice-visual-profiles.ts— per-die-type colour and size configAnimatedDiceRoll.tsx— animated wrapper for aDiceRollResult; supports"game"and"chat"display modesAnimatedSkillCheckResult.tsx— animated wrapper for aSkillCheckResultwith critical-success / critical-failure statesdice.css— keyframe animations and die stylesGameDiceResult.tsxandGameSkillCheckResult.tsx— replaced their inline display blocks with the new animated componentsChatMessage,ConversationMessageBubble/Line/Shared) — wired dice results through so rolls appear inline in conversation messageschat.schema.ts,chat.ts) — added fields to carry dice result payloads through the message modeluse-chats.ts,slash-commands.ts,chats.storage.ts— plumbing to surface dice results in chat contextValidation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
/rollcommand in an active game)Docs and release impact
UI evidence (if applicable)
also coins (d2), but they translate to numbers, as we don't have a purpose yet

Summary by CodeRabbit
New Features
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.