Files
Heimdall/skills/camera-access-nullable-select/SKILL.md
T
arnaud.dartois 5b1255ad80
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
Fix camera access and related UI issues (#311)
Co-authored-by: Arnaud Dartois <admin@tordais.cc>
2026-11-08 21:19:00 +01:00

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

  1. Run the focused Web tests with dotnet test tests/Heimdall.Web.Tests/Heimdall.Web.Tests.csproj --no-restore and build src/Heimdall.Web/Heimdall.Web.csproj using the SDK pinned in global.json.
  2. 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.
  3. 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.
  4. 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.