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
@@ -0,0 +1,105 @@
[gd_scene load_steps=4 format=3]
[ext_resource type="Script" path="res://scenes/collection/collection_screen.gd" id="1_cs"]
[ext_resource type="PackedScene" path="res://scenes/collection/views/CardsView.tscn" id="2_cv"]
[ext_resource type="PackedScene" path="res://scenes/collection/views/DecksView.tscn" id="3_dv"]
[node name="CollectionScreen" type="VBoxContainer"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_cs")
[node name="TopBarMargin" type="MarginContainer" parent="."]
layout_mode = 2
theme_override_constants/margin_left = 12
theme_override_constants/margin_right = 12
theme_override_constants/margin_top = 8
theme_override_constants/margin_bottom = 8
[node name="TopBar" type="HBoxContainer" parent="TopBarMargin"]
layout_mode = 2
custom_minimum_size = Vector2(0, 40)
theme_override_constants/separation = 8
[node name="BackBtn" type="Button" parent="TopBarMargin/TopBar"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(40, 40)
text = "←"
tooltip_text = "Back"
theme_override_font_sizes/font_size = 18
[node name="TitleLabel" type="Label" parent="TopBarMargin/TopBar"]
layout_mode = 2
size_flags_horizontal = 3
text = "Collection"
vertical_alignment = 1
theme_override_font_sizes/font_size = 18
[node name="SyncLabel" type="Label" parent="TopBarMargin/TopBar"]
unique_name_in_owner = true
layout_mode = 2
text = ""
visible = false
modulate = Color(0.65, 0.65, 0.80, 1.0)
theme_override_font_sizes/font_size = 12
[node name="HSeparator" type="HSeparator" parent="."]
layout_mode = 2
[node name="TabBarMargin" type="MarginContainer" parent="."]
layout_mode = 2
theme_override_constants/margin_left = 16
theme_override_constants/margin_right = 16
theme_override_constants/margin_top = 6
theme_override_constants/margin_bottom = 6
[node name="TabBar" type="HBoxContainer" parent="TabBarMargin"]
layout_mode = 2
custom_minimum_size = Vector2(0, 36)
theme_override_constants/separation = 8
[node name="CardsTabBtn" type="Button" parent="TabBarMargin/TabBar"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
custom_minimum_size = Vector2(0, 36)
text = "Cards"
theme_override_font_sizes/font_size = 14
[node name="DecksTabBtn" type="Button" parent="TabBarMargin/TabBar"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
custom_minimum_size = Vector2(0, 36)
text = "Decks"
theme_override_font_sizes/font_size = 14
[node name="ContentArea" type="Control" parent="."]
layout_mode = 2
size_flags_vertical = 3
[node name="CardsView" type="VBoxContainer" parent="ContentArea"]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("2_cv")
[node name="DecksView" type="VBoxContainer" parent="ContentArea"]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
visible = false
script = ExtResource("3_dv")