Files
sor/Client/origin-client/scenes/starter_deck/StarterDeckScreen.tscn
T
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

82 lines
2.3 KiB
Plaintext

[gd_scene load_steps=2 format=3]
[ext_resource type="Script" path="res://scenes/starter_deck/starter_deck_screen.gd" id="1_sds"]
[node name="StarterDeckScreen" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_sds")
[node name="Background" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.094, 0.094, 0.137, 1.0)
[node name="OuterMargin" type="MarginContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 40
theme_override_constants/margin_right = 40
theme_override_constants/margin_top = 32
theme_override_constants/margin_bottom = 32
[node name="Layout" type="VBoxContainer" parent="OuterMargin"]
layout_mode = 2
theme_override_constants/separation = 16
[node name="TitleLabel" type="Label" parent="OuterMargin/Layout"]
layout_mode = 2
text = "Choose Your Starter Deck"
horizontal_alignment = 1
theme_override_font_sizes/font_size = 28
[node name="SubLabel" type="Label" parent="OuterMargin/Layout"]
layout_mode = 2
text = "Select a deck to begin your journey. This choice is permanent."
horizontal_alignment = 1
modulate = Color(0.7, 0.7, 0.8, 1.0)
theme_override_font_sizes/font_size = 13
[node name="HSeparator" type="HSeparator" parent="OuterMargin/Layout"]
layout_mode = 2
[node name="StatusLabel" type="Label" parent="OuterMargin/Layout"]
unique_name_in_owner = true
layout_mode = 2
text = "Loading…"
horizontal_alignment = 1
autowrap_mode = 3
modulate = Color(0.75, 0.75, 0.8, 1.0)
theme_override_font_sizes/font_size = 13
[node name="Scroll" type="ScrollContainer" parent="OuterMargin/Layout"]
layout_mode = 2
size_flags_vertical = 3
horizontal_scroll_mode = 0
[node name="DeckList" type="VBoxContainer" parent="OuterMargin/Layout/Scroll"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme_override_constants/separation = 10
[node name="ConfirmBtn" type="Button" parent="OuterMargin/Layout"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(0, 48)
text = "Choose This Deck"
disabled = true
theme_override_font_sizes/font_size = 16