Move Razor component logic into code-behind files
This commit is contained in:
1
TECH.md
1
TECH.md
@@ -92,6 +92,7 @@ This pattern is a strong baseline for low to medium scale and should be the defa
|
||||
### 2.6 Frontend architecture
|
||||
|
||||
- Blazor component tree rooted in `Components/App.razor` and `Components/Pages/Home.razor`.
|
||||
- Razor components are split into markup-first `.razor` files with behavior/state in paired `.razor.cs` code-behind classes.
|
||||
- `Home.razor` + `Home.razor.cs` are intentionally minimal and only manage loading/auth/workspace view-mode switching.
|
||||
- Authenticated workspace UI plus workspace state/behavior are centralized in `Components/Pages/Workspace.razor`.
|
||||
- Form UX state uses reusable `FormState<TModel>` containers in leaf controls (`HomeControls/*`) rather than parallel form/error/message property sets in `Home`.
|
||||
|
||||
Reference in New Issue
Block a user