Commit Graph
61 Commits
Author SHA1 Message Date
8445a27101 Fix P2 placement: check own arch position, not activePlayerAccountId
activePlayerAccountId stays as P1 for the entire Placement phase, so
P2 always saw "waiting for opponent". Now each player checks whether
their own ArchSpirit has been placed to decide which UI to show.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-07 12:19:01 -05:00
036738e44d Fix Placement-phase move attempts; case-insensitive player ID matching; hand debug
- Block unit selection in Placement phase (prevents sending game.move_unit
  when opponent hasn't placed yet)
- All accountId comparisons now case-insensitive (Guid serialization may
  differ between auth response and state DTO)
- Add debug log in _on_state_updated: phase, player found, hand size

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-07 11:38:48 -05:00
926c9d53a6 Add Game.gd debug logging for all packets sent and received
Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-07 10:50:44 -05:00
c58f03757d Fix occupantId null handling in game_screen.gd
Server sends occupantId as JSON null for empty tiles, not "".
- dict.get("occupantId", "") returns null (not "") when key is present with null value
- Fixed all four occupantId checks to use truthiness instead of "" comparison
- Hold timer: extract to untyped var first then cast, avoids Nil→String assignment crash
- Valid placement/move/channel tiles now correctly identify empty tiles

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-07 10:37:51 -05:00
dingo e7da2532a2 Client fixors 2026-03-07 10:28:32 -05:00
84612614c5 Fix game state push type and reconnect flow in Game.gd
- Server pushes "game.state_update" not "game.state_update.push"
- On "AlreadyStarted" ack (reconnect), explicitly fetch state via game.get_state
  instead of expecting state in the ready ack (it's never there)

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-07 09:33:56 -05:00
7e4e4aad52 Fix %ContextClose missing unique_name_in_owner in GameScreen.tscn
Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-07 09:13:26 -05:00
ef7d45f40e Fix GDScript type inference errors in game_screen.gd
- Explicit Dictionary type on pd variable (unit position)
- Explicit int type on all dist variables (abs() returns Variant
  when operands are from Dictionary.get() calls)

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-07 09:11:45 -05:00
e41e67e188 Fix indentation on split assignments in game_screen.gd
cyl.bottom_radius and sm.height were left at 2-tab indent after
the chained-assignment split; corrected to 3 tabs.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-07 09:10:06 -05:00
dbfd7033e1 Fix GDScript parse errors in game_screen.gd
- Split chained assignments (a = b = val not valid in GDScript)
- Move 'and' continuations onto same line as return in lambda bodies

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-07 09:05:47 -05:00
6a8268613a Fix %MatchBtn unique_name_in_owner missing in MainScreen.tscn
Added unique_name_in_owner = true so the %MatchBtn shorthand resolves correctly.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-07 08:47:14 -05:00
01b6d19d7b Game screen: ownership fix, hand hover, terramorpha, sacrifice, ascend/transition, ability UI
- Game.gd: fix push type "game.over" (not "game.over.push"), store opponent_name
- game_screen.gd full rewrite:
  - Unit ownership via _rebuild_ownership() + _is_enemy_unit()/_is_friendly_unit()
    (CardInstanceDto has no ownerAccountId; build sets from PlayerStateDto instead)
  - Hand card hover y-reset fixed to 0.0 (was incorrectly using container position)
  - Opponent name from Game.opponent_name
  - Terramorpha multi-tile sequential selection with adjacency validation
  - Sacrifice: click ArchSpirit → PopupMenu → select spirit → ConfirmationDialog
  - Ascend/Transition: detected by card tier vs current arch tier, confirmation dialogs
  - Ability panel: parses abilitiesJson, filters Active abilities, floating HUD buttons

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-07 07:20:54 -05:00
3d57931752 Build Bazaar: 4 tabs, sort/filter, art images, USD disabled
Actually: Add ranked gameplay UI — matchmaking + 3D game screen

- Game.gd autoload: stores session/state, handles match_found and
  game.state_update.push, exposes helpers and all server action methods
- MatchmakingScreen: fetches decks, joins ranked queue, shows elapsed
  timer, cancels cleanly; navigates to GameScreen on match_found push
- GameScreen (3D + 2D overlay):
  - 3D board: 1×1×0.5 BoxMesh tiles colored by affinity (24 affinities),
    StaticBody3D per tile for raycast picking
  - Unit placeholders: sphere=Spirit, cylinder=ArchSpirit, box=Ruin,
    team-colored (blue/red), exhaust dimming
  - Camera: orbit (left-drag / one-finger), zoom (scroll / pinch),
    pan (middle-drag / two-finger); isometric default ~40° pitch
  - Hand: scrollable row of GameCardWidgets; hover → scale+rise anim;
    click → select; selected card highlights valid play tiles green
  - Unit selection: click unit → movement range (green), attack
    range (red); click target tile → move; click enemy → attack
  - Placement phase: valid ArchSpirit tiles highlighted automatically
  - Draw phase: auto-draws after 0.3s delay
  - Context popup: hold 0.5s on tile → tile coord/affinity + unit
    stats + ability names
  - Discard viewer: own + opponent, scrollable card list
  - Game-over overlay: result, rank delta, return to main menu
  - All game actions wired: play, move, attack, sacrifice, end turn,
    draw, concede, ascend, transition, activate ability
- main_screen.gd: MatchBtn → MatchmakingScreen

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-07 04:10:31 -05:00
2c107e3851 DM shows player name; add party rename
- ChatGetChannelsHandler: for Direct channels, look up the other
  member's display name from identity DB and return it as the channel
  name (per-caller, no DB schema change)
- ChatDmOpenHandler: same — returns recipient display name in the DTO
  for both new and existing DM channels
- New ChatPartyRenameHandler (chat.party.rename): updates the party
  channel name, returns updated DTO
- Chat.gd: rename_party() calls the new handler and upserts locally
- chat_overlay.gd: "Rename" button in party action bar opens a dialog
  to set a new party name

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-06 22:36:58 -05:00
dceabf4f06 Fix chat bubble visibility, friends refresh, and DM close
- Chat bubble now hidden on all scenes; MainScreen shows/hides it via
  Chat.set_bubble_visible() in _ready/_exit_tree
- send_friend_request now uses Network.request so _fetch_social() fires
  on success, making the friends list update immediately after adding
- Added DM close button (✕) to each conversation row in the DMs tab;
  _close_dm removes the channel from local state via Chat.close_dm()

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-06 22:14:43 -05:00
a482cc5319 Add Settings, Account, Bug Reports, and Leaderboard
Server:
- New SOR.Support project: SubmitBugReport, GetLeaderboard, GetAccountProfile handlers
- New SOR.Database support schema: BugReport + BugReportResponse entities + SupportDbContext
- EF migration: Migrations/Support/AddSupport
- Admin panel: Bug Reports list + detail pages with reply-to-submitter flow
- Admin NavMenu: Support section with Bug Reports link
- Reply creates chat.Notification (type "admin_response") for in-game mailbox

Client:
- Settings autoload (Settings.gd): music/sfx volume+mute, persisted to user://settings.cfg
- SettingsScreen: sliders + mute CheckButtons wired to Settings autoload
- AccountScreen: profile (display name, OP, rank score) + mailbox (admin_response notifications)
- LeaderboardScreen: paginated ranked player list, caller highlighted in blue
- BugReportDialog: category/title/description/steps form, submits via support.submit_bug_report
- MainScreen: new Leaderboard, Account, Settings, Report a Bug navigation buttons

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-06 20:14:12 -05:00
c4ef720570 Build Bazaar: 4 tabs, sort/filter, art images, USD disabled
- Add Boosters, Decks, Cosmetics, Cards (marketplace) tabs
- Sort per-tab: name, price, card count, type, set (boosters)
- Cards tab: filter by rarity and card type, sort by price/rarity/name
- StoreItemRow gets 72x72 art TextureRect with async HTTP image loading;
  falls back to cdn.aeternalisgames.com/sor-assets/cardart/0_No-Card-Art.jpg
- USD prices shown as greyed "$X.XX (coming soon)" — buy disabled
- "Buy OP" button in header present but disabled (USD flow not yet live)
- setup_listing() on StoreItemRow handles marketplace card listings
  with auction bid count, current bid, and Bid/Buy button labels

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-06 17:46:07 -05:00
9dadeda7c1 Add friends, DMs, presence, block, and party chat
- Fix social response key mismatch (incomingRequests, blocked)
- Fix DmOpenResponse to return full ChatChannelDto so client can
  add the channel without a separate fetch
- Add Party channel type to ChatChannelType enum
- Add PartyInviteHandler, PartyInviteRespondHandler, PartyLeaveHandler
  with IClientPush invite notification to the invitee
- Add party tab to chat overlay (action bar, messages, Leave button)
- Wire Invite to Party in both player and friend context menus
- Show accept/decline popup dialog on incoming party invite push

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-06 16:12:51 -05:00
dingo 1d775a0f19 Update chat UI auth visibility, default global tab, and fast polling 2026-03-05 22:25:57 -05:00
dingo 2cfcaf6853 Add global/lobby auto-join and match chat lifecycle 2026-03-05 21:30:43 -05:00
dingo cd43880a9a fix client chat 2026-03-05 08:33:07 -05:00
dingo 8dca906afd fix client 2026-03-05 06:15:41 -05:00
52419e2199 Chat module — overlay, friends, presence, DMs, context menus
- Chat.gd autoload: data layer for channels, messages, social graph,
  presence, and notifications; wires to Network/Auth singletons
- ChatOverlay.tscn + chat_overlay.gd: CanvasLayer (layer=100) that
  persists across all scenes; bubble toggle at bottom-right corner
- Six tabs: Friends, Presence, Global, Lobby, Game, DMs
- Message rows show [HH:MM] [source] Name: text with color-coded
  source badges (global/lobby/game/private/party/system)
- Friends list: online/offline sections, right-click context menu
  (Private Message, Set Nickname, Block, Remove Friend)
- Player name click: Add Friend, Invite to Party (stub), Mute/Unmute,
  Hi Scores (disabled placeholder)
- Presence tab: own status selector (Online/Away/Offline) + friends
  presence overview with status dots
- DMs tab: conversation sidebar + message pane, input bar shown when
  a conversation is selected
- Unread notification badge on chat bubble
- Per-session nickname overrides and muting

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-05 05:48:09 -05:00
dingo 888164603c client 2026-03-04 21:08:56 -05:00
dingo 18aeaf093b Client bug fixes 2026-03-03 08:48:00 -05:00
dingo a3bcc71082 Client changes, admin portal, collection fixes. 2026-03-02 10:49:49 -05:00
dingo ffe1ec5094 Fixing Deck rules on server.... 2026-03-02 08:45:25 -05:00
dingo d3e39f9511 minor admin portal changes 2026-03-02 08:37:51 -05:00
0a1796cd77 fix: setup() after add_child(); defer scene change from _ready()
card_widget.gd uses @onready vars which are null until _ready() fires.
_ready() only fires after add_child(), so both cards_view.gd and decks_view.gd
must call add_child(widget) before widget.setup().

login_screen.gd called change_scene_to_file() synchronously from _ready(),
causing "parent busy" crash.  Deferred with call_deferred().

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-02 07:45:10 -05:00
56027e0f47 fix: use correct SOR.Database.Enums.Affinity values throughout client
Replace placeholder Fire/Water/Earth/Air/Lightning/Dark/Light affinities
with the actual enum values: Void, Aether, Lake, Hill, Forest, Field (basics)
plus their non-basic combos (Ocean, Island, Marsh, Swamp, Mountain, Steppe,
Fort, Plains, Grove, Jungle, PerfectAether, PureVoid).

- Rename 7 wrong SVG icons → 6 correct ones (Void/Aether/Lake/Hill/Forest/Field)
- card_widget.gd: rewrite AFFINITY_BORDER, AFFINITY_BG for all 18 card affinities;
  add static affinity_icon() helper that maps non-basics to their primary basic icon
- card_detail_popup.gd: use affinity_icon() instead of direct dict lookup
- cars_view.gd: affinity filter now lists all 18 card-valid affinities

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-02 07:34:07 -05:00
8da0172563 fix: PackedByteArray cannot be const in GDScript — move key halves inline
Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-02 07:15:30 -05:00
3c4908eec6 client: remember me, SVG affinity icons, card detail popup
Remember Me (login screen):
- AES-256-CBC encrypted credential storage in user://creds.dat
- Key XOR-obfuscated across two halves; random IV stored with ciphertext
- Checkbox pre-fills email/password on next launch; unchecking clears saved creds

SVG affinity icons (web-compatible):
- Replace emoji art symbols (🔥💧⛰💨⚡✦★) with SVG TextureRect in CardWidget
- 7 new icons/affinity_*.svg — monochrome white, modulate-tinted at runtime
- ArtSymbol node changed from Label to TextureRect (stretch_mode = keep-aspect-centred)

Card detail popup (collection screen):
- Tap any card in Cards tab to see full stats + abilities overlay
- CardDetailPopup added to viewport root (avoids VBoxContainer layout conflict)
- Shows: name, affinity icon, foil badge, type/affinity/rarity, all 6 stats,
  and parsed ability list with names + descriptions
- Dismiss by tapping ✕ or the dim background overlay

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-02 07:12:26 -05:00
2508fe1297 client: force WebSocket reconnect on logout so auth arrives on a fresh connection
logout() now calls Network.force_reconnect() to tear down the existing Phase-5
connection; the next auth.login / auth.register is then the very first message
on the new connection, which is the only point where ConnectionLoop handles auth.

Also adds Network.force_reconnect() public method.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-01 22:55:45 -05:00
fa5beb104c client: map WebSocket close reason to error code in _on_ws_closed
Godot discards buffered data packets when the close frame arrives, so the
JSON error sent by RejectAsync is never received. Map known server close
reasons (auth_failed, auth_required) from the close frame's reason field
to AUTH_FAILED / AUTH_REQUIRED so Auth.gd's logout+navigate logic fires
correctly instead of treating every rejection as a transient DISCONNECTED.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-01 20:46:48 -05:00
2643fe4276 client: fix auth_failed loop — logout + navigate from Auth.gd centrally
When auth.hello is rejected (session expired/revoked), Auth.gd now calls
logout() to wipe all auth state (including auth.cfg) and drives the scene
change to LoginScreen directly, instead of relying on each scene's own
auth_failed handler.

This covers all screens (main, collection, etc.) without each needing a
handler, and eliminates the race where the auth.hello reply arrived as
DISCONNECTED (STATE_CLOSING path, token kept) → reconnect → resend token.

main_screen.gd no longer subscribes to auth_failed; session expiry redirect
is fully owned by Auth.gd.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-01 10:57:15 -05:00
dingo 3d2b9c3608 Client/Server changes 2026-03-01 10:27:12 -05:00
4322732b47 client: fix auth-expiry reconnect loop + improve error messages
Network.gd — drain packets before handling close (main bug fix):
  When the server rejects auth.hello it sends an error frame then closes
  the connection. Godot's WebSocketPeer.poll() can transition directly to
  STATE_CLOSED while the error packet sits unread in the buffer. The old
  code returned early on STATE_CLOSED without calling _poll_packets(), so
  _on_ws_closed() fired DISCONNECTED for the pending auth.hello instead of
  the real AUTH_FAILED. Auth kept the session token and retried forever.
  Fix: drain any buffered packets before _on_ws_closed().

Network.gd — fail request() immediately when not connected:
  Previously request() silently dropped the send but left a dangling
  pending entry that was never resolved until the next disconnect. Now
  on_error("DISCONNECTED") is called immediately, giving the caller
  consistent feedback and keeping _pending clean.

main_screen.gd — stay on screen for DISCONNECTED auth errors:
  A transient network drop during auth.hello was sending the user back
  to the login screen unnecessarily. Only navigate to login when the
  session is explicitly rejected (AUTH_FAILED, ACCOUNT_LOCKED, etc.).
  The "● Reconnecting…" status label already handles the transient case.

login_screen.gd — add missing friendly error translations:
  INVALID_PASSWORD / USER_NOT_FOUND → "Wrong email or password."
  DISPLAY_NAME_TAKEN, ACCOUNT_LOCKED, AUTH_REQUIRED,
  AUTH_SERVICE_UNAVAILABLE all now map to clear human-readable strings
  instead of falling through to the raw server message or error code.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-01 10:17:03 -05:00
773fc6a349 admin/client: fix deck editor concurrency, live search, iOS autofill
PrebuiltDeckEditor.razor:
- Add Db.ChangeTracker.Clear() at OnInitializedAsync start to prevent
  stale Deleted/Modified entities from prior circuit pages causing
  DbUpdateConcurrencyException on save
- Replace @bind + button-only search with @oninput + 300ms debounce for
  both card and arch-spirit search inputs (results appear as you type;
  search button retained as manual fallback)
- Clearing the input immediately clears previous results

LoginScreen.tscn:
- Set virtual_keyboard_type = 5 (EMAIL_ADDRESS) on EmailInput and
  RegEmailInput so Godot's experimental virtual keyboard creates
  <input type="email"> instead of type="text" on mobile/web

export_presets.cfg:
- Extend head_include with a MutationObserver that watches for virtual
  keyboard INPUT elements and sets autocomplete="username" on email
  inputs and autocomplete="current-password" on password inputs,
  enabling iOS Face ID / Touch ID password vault autofill

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-02-28 23:00:13 -05:00
2dcb5c48c8 webclient: fix browser scaling and zoom
- Add [display] section to project.godot:
  - 1280x720 base viewport (was unset → Godot default tiny resolution)
  - stretch/mode = canvas_items: all UI + text scales proportionally
  - stretch/aspect = expand: fills window, adds space on wider screens
- Add html/head_include script that runs on page load:
  - Sets canvas touch-action to 'auto' (removes Godot's default 'none'
    which blocked pinch-to-zoom on mobile)
  - Patches viewport meta to allow user-scalable=yes, maximum-scale=5.0
    so browser zoom works on both desktop and mobile

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-02-28 22:28:48 -05:00
dingo defc563e28 webclient: enable HTML5 experimental virtual keyboard in export presets 2026-03-01 02:21:54 +00:00
2ed7ad2ba9 Fix WebSocket 1009 — increase Godot receive buffer and NATS max payload
Godot's WebSocketPeer.inbound_buffer_size defaults to 65535 bytes (64 KB).
content.sync.ack for a full card catalog (200 cards with assets and animation
bindings) exceeds this, causing Godot to close the connection with code 1009
"Message too big" every time content.sync is called.

- Network.gd: set inbound_buffer_size = 4 MB before connect_to_url so the
  client can receive large sync responses without dropping the connection.
- deployment-nats.yaml: raise NATS max_payload from 1 MB to 8 MB (-max_payload
  8388608) so the content service can reply with large card batches through NATS
  without hitting a publish-too-large error as the card catalog grows.

Note: NATS pod needs a rollout restart to apply the new max_payload arg:
  kubectl rollout restart deployment/nats -n stone-server

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-02-28 20:03:10 -05:00
dingo e18cdc6b80 K8s changes for NATS 2026-02-28 16:31:01 -05:00
bdd6e59dfe Add starter deck flow, admin force-logout + rename, shop flag
Auth chain:
- auth.proto: add needs_starter_deck to Login/Register/ValidateToken responses
- auth.proto: add RevokeAllSessions RPC
- AuthGrpcHandler: populate NeedsStarterDeck from Account.StarterDeckSelectedAt
- AuthGrpcHandler: track tokens in UserSessions Redis SET on create/logout
- AuthGrpcHandler: implement RevokeAllSessions (Redis + Postgres)
- IGatewayAuthValidator / GatewayAuthValidator: thread NeedsStarterDeck through tuples
- ConnectionLoop: include needsStarterDeck in auth ack payload

Client:
- Auth.gd: store needs_starter_deck from auth reply; clear on logout
- login_screen.gd: route to StarterDeckScreen when needs_starter_deck = true
- scenes/starter_deck/: new StarterDeckScreen (fetch decks → pick → confirm → InitScreen)

Admin panel:
- AccountDetail.razor: Force Logout All Sessions card (Redis + Postgres revoke)
- AccountDetail.razor: Change Display Name form with uniqueness check
- SOR.Admin: add StackExchange.Redis package + DI registration
- PrebuiltDeckEditor.razor: split into IsStarterDeck + IsAvailableInShop checkboxes
- PrebuiltDeck.cs: add IsAvailableInShop field
- Migration: AddPrebuiltDeckShopFlag

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-02-28 13:08:08 -05:00
fa8418387b Add session TTL and disconnect auto-logout to Auth; fix export presets
- Auth.gd: discard saved sessions older than 30 days on load (saved_at timestamp)
- Auth.gd: auto-logout and return to login screen after 30 min disconnected
- Auth.gd: cancel auto-logout timer immediately on reconnect
- Auth.gd: emit session_expired signal for any listener that needs it
- Network.gd: enable debug_log_packets for easier debugging
- export_presets.cfg: updated to full Godot 4.5 web preset (variant/thread_support,
  custom_template paths, PWA options) — fixes web CI build

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-02-28 12:30:45 -05:00
dingo 0945208e48 gRPC Error 2026-02-28 08:40:05 -05:00
c6177cd627 build(web): two-step import+export, diagnose templates, drop --path
- Split into godot --import then godot --export-release to avoid the
  race condition where _fs_changed fires before Web export platform
  is fully registered (causes empty "configuration errors" list)
- Remove --path /project (WORKDIR is already /project; matches
  barichello/godot-ci example usage)
- Add diagnostic RUN that prints the export_templates directory so
  CI logs reveal missing templates immediately
- Expand fallback export_presets.cfg with all required Godot 4.5
  Web preset fields (custom_template, variant/extensions_support)

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-02-28 08:09:14 -05:00
9cc4dc7ad3 fix(web): use gl_compatibility renderer for Godot 4.5 web export
Godot 4.5 web export requires renderer/rendering_method="gl_compatibility";
"compatibility" and "mobile" are both invalid for the Web platform.

- project.godot: switch renderer from "mobile" to "gl_compatibility",
  update config/features to "GL Compatibility", add mobile override
- Dockerfile.web: fix sed to replace any renderer value with
  "gl_compatibility" (handles forward_plus/mobile/any future value)

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-02-28 07:59:26 -05:00
4795df6182 fix(client): use instance= syntax for embedded scenes in CollectionScreen
CardsView and DecksView were incorrectly attached via script=ExtResource()
pointing at PackedScene resources.  Godot requires instance=ExtResource()
for scene embedding — this caused a fatal load error at export time.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-02-28 07:54:04 -05:00
6a33e26237 Godot client: Collection screen — cards grid, deck management, card widget
- CardWidget (146×204px): affinity-coloured border + art placeholder,
  stats with tooltips, foil/serial indicators, selection highlight
- DeckListItem: inline rename, clone/delete signals to parent
- CardsView: paginated + filterable grid (search debounce, type/affinity
  filters, responsive columns, Load More pagination)
- DecksView: deck list with New Deck form (ArchSpirit card picker),
  clone/rename/delete wired to API, ConfirmationDialog for delete
- CollectionScreen: pill-tab container (Cards / Decks), background
  incremental content sync, back button → MainScreen
- MainScreen: wire CollectionBtn → CollectionScreen
- ContentCache: expose is_syncing() public method

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-02-28 07:48:07 -05:00
dingo 1b440e92ba build(web): install fontconfig in build stage for Godot HTML5 export 2026-02-28 12:11:45 +00:00