Fix workspace user header null render and ignore .idea

This commit is contained in:
2026-02-26 11:01:15 +01:00
parent d0da35a68c
commit 9036a3a157
4 changed files with 14 additions and 1 deletions

4
FAQ.md
View File

@@ -73,6 +73,10 @@ There is no separate activate button in Play. The selected character in the char
`Home.razor` + `Home.razor.cs` now act as a small gateway that switches between loading, anonymous auth, and workspace views.
Authenticated application state and behavior were moved into `Components/Pages/Workspace.razor`, while reusable concern UI remains under `Components/Pages/HomeControls/`.
## Why does the workspace header sometimes show "Loading user..." briefly?
`Workspace` initializes authenticated session data after the first render (`OnAfterRenderAsync`). During that first render pass, the header now intentionally shows a null-safe fallback label instead of dereferencing user fields before `/api/me` has been loaded.
## Why is auth form state kept in `AuthSection` instead of `Home`?
Auth inputs, validation, and submit workflows are transient UI concerns, so they now live in `AuthSection`. `Home` keeps shared session/workspace state and cross-control refresh/orchestration only.