Skip to content

Add lightweight Blazor Todo Dashboard sample - #9

Merged
balajibashyam merged 5 commits into
mainfrom
feature/blazor-todo-dashboard-sample
Aug 2, 2026
Merged

balajibashyam merged 5 commits into
mainfrom
feature/blazor-todo-dashboard-sample

Conversation

@balajibashyam

Copy link
Copy Markdown
Contributor

Summary

Adds a minimal .NET 10 companion sample for the Blazor Web Development: Create Interactive UIs with C# 12 tutorial.

What's included

  • New sample: blazor/create-interactive-ui-csharp-12/ — 13 files

    • Interactive Server Blazor Web App
    • Razor component composition with [Parameter] and [EditorRequired]
    • EditForm with DataAnnotationsValidator and field-level validation
    • Two-way binding via InputText and InputSelect
    • Scoped in-memory TodoState service
    • EventCallback<int> child-to-parent communication
    • Create, toggle, filter, and delete interactions
    • @key for list identity
    • Route-aware Not Found handling
    • bUnit 2.x component tests (7 tests)
  • Root README: New sample row in the table + updated repository structure

  • GitHub Actions: New test-blazor-todo-dashboard job in the shared workflow; path filters updated

Deliberately omitted (stays in the full tutorial)

  • Interactive WebAssembly, Interactive Auto, offline/PWA, JavaScript interop, QuickGrid, virtualization, authentication, EF Core, Docker, Azure deployment

Versions

  • .NET SDK: 10.0.302
  • bunit: 2.8.6
  • xunit.v3: 3.2.2
  • Microsoft.NET.Test.Sdk: 18.8.1

Validation

  • dotnet restore — passed
  • dotnet build --configuration Release — passed (0 errors, 0 warnings)
  • dotnet test --configuration Release — passed (7/7)
  • Runtime HTTP 200 — verified (dashboard, seeded items, blazor.web.js)
  • Not Found page — verified (/not-found returns 200)
  • Security scan — clean

@balajibashyam
balajibashyam merged commit 9ef86c4 into main Aug 2, 2026
11 checks passed
@balajibashyam
balajibashyam deleted the feature/blazor-todo-dashboard-sample branch August 2, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant