Commit Graph
34 Commits
Author SHA1 Message Date
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
dingo 80c0f4d372 build(web): use headless mode to avoid X/Wayland display init in CI 2026-02-28 11:54:15 +00:00
dingo 44bc876e9b build(web): use Godot 4 export-release flag 2026-02-28 03:58:14 +00:00
dingo a39059a774 build(web): switch to HTML5 preset and no-window export command 2026-02-28 03:50:04 +00:00
dingo 0211e97e09 build(web): use Godot 4.5 image to match project feature version 2026-02-28 03:41:33 +00:00
dingo c19cf651de build(web): ensure export presets exist in image and precreate .godot/editor for headless export 2026-02-28 03:37:25 +00:00
dingo 505c0b59fa build(web): force compatibility renderer + import pass; export and copy index.html 2026-02-28 03:25:00 +00:00
dingo 1252486c3c ci: build Godot web export inside Dockerfile to avoid dind workspace mount issue 2026-02-28 03:20:50 +00:00
dingo 0383dd431b Add Godot web client build pipeline, image packaging, and Argo webclient deployment manifests 2026-02-28 02:47:41 +00:00
2d6b20f3cb Godot client: version check + content sync + caching architecture
Client flow after auth is now:
  LoginScreen → auth_success → InitScreen → MainScreen

autoloads/ContentCache.gd
  - Cursor-based incremental sync via content.sync (PageSize=200)
  - Merges definition DTOs in-memory (id → Dictionary)
  - Persists to user://content/defs.json on sync completion
  - Incremental on repeat launches: 0 round trips when nothing changed
  - Signals: sync_progress(fetched_total), sync_complete(total), sync_failed(error)

scenes/init/InitScreen.tscn + init_screen.gd
  - Step 1: version.check (clientVersion="0.1.0", platform="web")
      UpdateRequired  → show "please refresh" panel, block
      UpdateAvailable → soft banner, continue
      Ok              → continue
      DISCONNECTED    → wait for Network.connected (one-shot), retry
      other error     → warn + proceed (don't block player on non-critical check)
  - Step 2: ContentCache.start_sync()
      Shows running card count while pages arrive
      On sync_complete: transition to MainScreen
      On sync_failed: show error + Retry button

scenes/login/login_screen.gd
  - _go_to_main() now routes to InitScreen instead of MainScreen directly

project.godot
  - ContentCache registered as autoload (loads before Auth)
  - pointing/emulate_touch_from_mouse=true for desktop browser testing

Caching architecture decision (see plan):
  - Layer 1 (definitions/text): always sync all eagerly — no privacy concern
  - Layer 2 (2D art): lazy by definition ID, CDN fetch on demand
  - Layer 3 (3D models/animations): set-bundle granularity + server-injected
    noise during match pre-warm to prevent cache oracle attack
    (Layer 2/3 implementation is future work)

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-27 21:31:47 -05:00
3aaabe75e3 Godot client networking + auth + login/main screens; fix admin hamburger
Server:
- ConnectionLoop: accept auth.login and auth.register as valid first messages
  (not just auth.hello); all ack payloads now include sessionToken for client
  persistence
- IGatewayAuthValidator: add LoginAsync and RegisterAsync
- GatewayAuthValidator: implement both via auth gRPC; fetch displayName from
  ValidateAsync after login/register succeeds
- Admin hamburger: custom .sor-admin-hamburger CSS (hardcoded white, no Bootstrap
  btn-link theme fighting); topbar z-index 1050 with position:sticky

Client (Godot 4.5, GDScript):
- autoloads/Network.gd: WebSocketPeer state machine (CONNECTING / CONNECTED /
  RECONNECTING), exponential backoff (1→30s), app-level keepalive ping every
  30s of idle, 30s ping timeout → reconnect, request/reply correlation by
  sequence number, debug_log_packets export flag for full packet dumps
- autoloads/Auth.gd: drives auth.hello / auth.login / auth.register as first
  WS message; persists sessionToken + userId + displayName to user://auth.cfg;
  auto-resumes saved session on reconnect; auth_success / auth_failed signals
- scenes/login/LoginScreen.tscn + login_screen.gd: Login + Register tabs,
  touch-friendly inputs (44px height), status label, Enter key submits, handles
  reconnect/resume states
- scenes/main/MainScreen.tscn + main_screen.gd: top bar with live connection
  dot, welcome label, placeholder nav buttons, sign-out, redirects to login on
  session expiry
- project.godot: Network and Auth autoloads registered; LoginScreen as main scene

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-27 20:48:53 -05:00
dingo 80c5c0408a Add ranked matchmaking v1 integration spec and policies 2026-02-23 04:30:56 +00:00
dingo d6a0b393d5 Refine ranked flow and add matchmaking design draft 2026-02-23 04:28:48 +00:00
dingo 8e2a83e21a Draft bazaar economy scene with marketplace, store, sacrifice, and audit chain 2026-02-23 04:24:33 +00:00
dingo 636aa4070e Changes 2026-02-22 15:19:35 -05:00
dingo fd7964c044 Merge hub connection flow into login scene 2026-02-22 15:46:41 +00:00
dingo a7dc4e60e0 Consolidate auth and patch flows: merge AuthGateway/OAuth into Login and PatchCheck into ClientLaunch 2026-02-22 15:44:35 +00:00
dingo f577b121fa Remove outdated client-plan draft file 2026-02-22 15:35:06 +00:00
dingo a5330843a5 Expand settings scene with support, audio, and brightness controls 2026-02-22 14:47:35 +00:00
dingo 4dc5691c51 Restructure: move agnostic context docs to Shared/context-files 2026-02-22 14:17:53 +00:00
dingo d711c50d4e Split scene planning into global + per-scene context files 2026-02-22 14:11:44 +00:00
dingo 34e56d4d3d Add monthly spending cap lock, warnings, and cooldown contract 2026-02-22 14:05:22 +00:00
dingo f8a9c3c8dd Add global settings/bug controls and detailed account management scene spec 2026-02-22 14:02:46 +00:00
dingo f298c73879 Require multi-touch and global input consistency across scenes 2026-02-22 13:44:53 +00:00
dingo f3b271aed1 Add hub input model for touch/mouse camera and node selection 2026-02-22 13:43:44 +00:00
dingo c34d28f630 Expand main scene hub links and background visual direction 2026-02-22 13:29:11 +00:00
dingo 8dd3781b20 Refocus scenes doc on client scene/page/UI mapping 2026-02-22 13:22:04 +00:00
dingo 659010154d Add initial client planning draft 2026-02-22 04:27:29 +00:00
dingo 3bdbfc8c57 Initial commit 2026-02-21 17:47:52 -05:00