Heimdall Gitea / Detect CI scope (push) Successful in 27s
Heimdall Gitea / Build and tests (push) Successful in 20m48s
Heimdall Gitea / Publish versioned release (push) Skipped
Heimdall Gitea / Build and scan server image (push) Successful in 7m28s
Heimdall Gitea / Build and scan agent image (push) Successful in 11m12s
Heimdall Gitea / Publish Docker Hub latest tags (push) Successful in 1m59s
Heimdall Gitea / Build and scan NVIDIA Agent image (push) Successful in 19m43s
Heimdall Gitea / CI policy (push) Successful in 2s
Co-authored-by: Arnaud Dartois <admin@tordais.cc>
1.8 KiB
1.8 KiB
name, description
| name | description |
|---|---|
| camera-access-nullable-select | Keep nullable camera-access grant selectors type-consistent in the Heimdall Blazor UI and verify site-wide and camera-specific grants. |
Camera access nullable selectors
The grant form in src/Heimdall.Web/Components/Pages/CameraAccessPanel.razor stores the selected site and camera as Guid? because the form supports an unset selection. Keep each corresponding MudSelect and all of its MudSelectItem children explicitly typed as Guid?; cast non-nullable model IDs with (Guid?) in each item value. A plain Guid item can compile yet fail at runtime when MudBlazor dispatches the option click to its nullable parent.
When editing this form, preserve the two grant modes: site-wide grants save a site ID and null camera ID, while camera-specific grants save both IDs. Validate both selection interactions and the serialized saved grants.
Acceptance workflow
- Run the focused Web tests with
dotnet test tests/Heimdall.Web.Tests/Heimdall.Web.Tests.csproj --no-restoreand buildsrc/Heimdall.Web/Heimdall.Web.csprojusing the SDK pinned inglobal.json. - For behavior changes, follow the disposable Compose recipe: build the changed source using unique local image tags and isolated credentials, project, ports, network, and volumes.
- Bootstrap an isolated administrator, use a real browser/UI-capable test to select a site-wide option and a camera option, and verify the saved grants contain respectively a null and non-null camera ID with no
InvalidCastException. - Tear down only that Compose project. Verify its containers, volumes, and networks are absent; remove and verify absence of only the recipe's exact locally built tags, preserving shared base images.