Skip to content

chore: replace Bazored.Toast with custom Toast component - #864

Open
eduardosmaniotto wants to merge 1 commit into
MUnique:masterfrom
eduardosmaniotto:chore/toast
Open

chore: replace Bazored.Toast with custom Toast component#864
eduardosmaniotto wants to merge 1 commit into
MUnique:masterfrom
eduardosmaniotto:chore/toast

Conversation

@eduardosmaniotto

@eduardosmaniotto eduardosmaniotto commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Replace Blazored.Toast with a native Bootstrap 5 toast component

Summary

Removes the third-party Blazored.Toast NuGet dependency and replaces it with a toast implementation built on the Bootstrap 5 styles already present in the project. The new system follows the same service/container pattern as the existing ModalService/ModalContainer components and keeps the current API surface, so existing call sites compile unchanged.

Changes

  • New toast components & services in Web/Shared:
    • IToastService + ToastService — scoped service with ShowSuccess / ShowInfo / ShowWarning / ShowError, manual close, and auto-dismiss.
    • ToastContainer — renders Bootstrap 5 toasts (level-based color/icon, slide-in, closing animation, dark-theme aware).
    • AddToasts() DI registration extension.
  • Removed the Blazored.Toast package reference from Web/Shared, Web/AdminPanel, and the central Directory.Packages.props.
  • Updated usages across the AdminPanel (Startup, WebApplicationExtensions, MainLayout, CreationPanel, pages) and host _Imports to use the new toast service/container; removed all Blazored @using directives.

Minor

  • Fix new build warnings in EntityFrameworkContextBase.cs and 20260730194321_AddCastleSiege.cs

Sample

toast-sample

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