Play Shell Charts (historical)

Lifecycle: HISTORICAL SUPPORTING
Recovered from legacy wiki path content/current/architecture/charts_play-shell-dock-ux.md (attic copy retained; not deleted).
Prefer current SSOT pages for production decisions. Last promoted: 2026-07-20.

Charts โ€” Funday play shell, dock, drawer, immersive UX

Mermaid views: regular vs pressing issues use node classDef colors (green / amber / red).


1 โ€” Screen layers (birdโ€™s eye)

---
config:
  theme: forest
  look: handDrawn
---
flowchart TB
  %% ๐ŸŽจ Severity hints on concepts
  classDef regular fill:#bbf7d0,stroke:#166534,color:#14532d
  classDef watch fill:#fde68a,stroke:#b45309,color:#78350f
  classDef hot fill:#fecaca,stroke:#b91c1c,color:#7f1d1d

  NAV["๐Ÿงญ Navbar<br/>site chrome"]:::regular
  subgraph MAIN["๐Ÿ–ผ๏ธ Play column (insets when drawer open)"]
    VP["๐Ÿงฑ GameViewport<br/>iframe / native"]:::regular
    HUD["๐Ÿ“Š GameHUD<br/>optional chips"]:::regular
  end
  DR["๐Ÿ—‚๏ธ GameDrawer<br/>lobby ยท match ยท chat"]:::watch
  DK["๐Ÿšข GameDock<br/>icons + platform"]:::regular

  NAV --> MAIN
  MAIN --> DK
  DR -. overlaps right .- MAIN

  TOK["๐Ÿ“ Tokens<br/>--nav-h --dock-h --drawer-w"]:::hot
  TOK -.-> MAIN
  TOK -.-> DK
  TOK -.-> DR

2 โ€” Who talks to whom (sequence)

---
config:
  theme: forest
  look: handDrawn
---
sequenceDiagram
  autonumber
  participant G as ๐ŸŽฎ Game embed
  participant B as ๐Ÿ”Œ Bridge
  participant C as ๐Ÿ“ฆ gameContext
  participant D as ๐Ÿšข GameDock
  participant W as ๐Ÿ—‚๏ธ GameDrawer
  participant N as ๐ŸŒ Nakama

  G->>B: funday:dock:set {actions}
  B->>C: merge actions
  C->>D: render icon buttons + title tooltip
  D->>W: openDrawer('lobby') on Lobby click
  W->>N: list / join / match data
  N-->>W: presences, chat
  W->>G: funday:match-state (via postToGame)

3 โ€” Drawer + Lobby button (state)

---
config:
  theme: forest
  look: handDrawn
---
stateDiagram-v2
  [*] --> Closed: load /play

  Closed --> OpenLobby: ๐Ÿ–ฑ๏ธ tap Lobby on dock<br/>or auto-open MP
  OpenLobby --> Closed: โœ– close drawer<br/>match stays connected

  OpenLobby --> OpenLobby: drawer shows<br/>lobby list + chat

  note right of OpenLobby
    Lobby BUTTON stays on bottom dock (left area).
    CONTENT of lobby lives in the right drawer.
    Visual link: active / pressed state on Lobby
    while open (recommended polish).
  end note

4 โ€” Shared dock vocabulary (mind map)

---
config:
  theme: forest
  look: handDrawn
---
mindmap
  root((๐Ÿšข Universal dock))
    ๐Ÿ  Lobby
      opens right drawer
      icon Clipboard
    ๐Ÿ” Restart / Reset
      confirm destructive
    โ„น๏ธ Howto / Help
      modal or overlay
    ๐ŸŒ Online / Reconnect
      network sanity
    ๐Ÿ”Š Volume
      mute toggle
    โš™๏ธ Settings
      per-game prefs
    ๐Ÿ† Leaderboard
      platform mini LB
    ๐Ÿ’ฌ Feedback
      bugs / praise
    โ›ถ Fullscreen
      immersive shell
    โœ– Exit
      history.back

5 โ€” Player journey (find multiplayer)

---
config:
  theme: forest
  look: handDrawn
---
journey
  title ๐ŸŽฏ Get into a match
  section Land
    Open game from catalog: 5: Player
  section Dock
    See ๐Ÿ  Lobby icon + tooltip: 4: Player
    Tap Lobby: 5: Player
  section Drawer
    New / Join / Refresh: 4: Player
    Read lobby chat: 3: Player
  section Match
    Host starts: 5: Player
    Match chat auto: 4: Player

6 โ€” Immersive fullscreen (target / future)

---
config:
  theme: forest
  look: handDrawn
---
flowchart LR
  classDef regular fill:#bbf7d0,stroke:#166534
  classDef watch fill:#fde68a,stroke:#b45309
  classDef hot fill:#fecaca,stroke:#b91c1c

  FS["โ›ถ Fullscreen / minimal chrome"]:::watch

  FS --> TL["โ†–๏ธ Top-left<br/>โ˜ฐ reopen top bar<br/>icon only"]:::regular
  FS --> BR["โ†˜๏ธ Bottom-right<br/>๐Ÿ‘ค / ๐Ÿ’ฌ strip<br/>peek chat"]:::regular
  FS --> PIN["๐Ÿ“Œ Pin drawer<br/>opaque vs glass"]:::hot
  FS --> CHAT["๐Ÿ’ญ Bubbles fade<br/>Scribblaz guesses"]:::hot

  CHAT -. SSOT .- N["๐ŸŒ Nakama channels<br/>lobby vs match"]:::regular

7 โ€” Issue heat (pie, rough priority mix)

---
config:
  theme: forest
  look: handDrawn
---
pie showData
  title ๐ŸŒก๏ธ Where UX pain clusters (conceptual)
  "๐ŸŸข Clear icon + tooltip pattern" : 35
  "๐ŸŸก Drawer / dock / fullscreen edge cases" : 40
  "๐Ÿ”ด Chat SSOT across game + shell" : 25

Ask Docs

AI assistant to help answer questions about the documentation. Answers are read-only and cite docs/source.

Hi! How can I help you with the documentation today? Answers are read-only and cite docs/source.

Ctrl+Enter to send