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>
This commit is contained in:
dingo
2026-02-28 07:48:07 -05:00
co-authored by Claude Happy
parent 1b440e92ba
commit 6a33e26237
13 changed files with 1366 additions and 3 deletions
@@ -103,6 +103,7 @@ layout_mode = 2
theme_override_constants/separation = 10
[node name="CollectionBtn" type="Button" parent="Layout/Scroll/Content/ContentMargin/ContentInner/NavButtons"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(0, 52)
text = "My Collection"
@@ -7,9 +7,10 @@ extends Control
## If auth.hello re-validation fails after a reconnect (expired session),
## Auth.auth_failed fires and we redirect back to the login screen.
@onready var welcome_label : Label = %WelcomeLabel
@onready var status_label : Label = %StatusLabel
@onready var logout_btn : Button = %LogoutBtn
@onready var welcome_label : Label = %WelcomeLabel
@onready var status_label : Label = %StatusLabel
@onready var logout_btn : Button = %LogoutBtn
@onready var collection_btn : Button = %CollectionBtn
# ── Lifecycle ─────────────────────────────────────────────────────────────────
@@ -20,6 +21,8 @@ func _ready() -> void:
Network.disconnected.connect(_update_status)
Auth.auth_failed.connect(_on_auth_failed)
logout_btn.pressed.connect(_on_logout_pressed)
collection_btn.pressed.connect(func():
get_tree().change_scene_to_file("res://scenes/collection/CollectionScreen.tscn"))
_update_status()