mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
MessageManager and NotificationManager were thin facades over lib/toast since #37207. This rewrites their ~750 call sites (226 files) to import { toast } from @/lib/toast directly: success/info/warning/error keep their names, fromBackend becomes fromError, destroy/clear become dismiss. The one config-object caller (CreateMCPServer's admin-review branch) becomes an explicit toast.success(message, { description }). Behaviour is unchanged: no production caller passed a duration, so every toast keeps the same kind, title and default duration. Tests: the global vitest mock now targets @/lib/toast (toast.test.ts opts back out with vi.unmock), so the per-file vi.mock boilerplate for the facades is deleted and assertions read toast.success / toast.fromError. The two facade files, their test and their filename-case suppressions are removed, along with the commented-out facade calls left in networking.tsx |
||
|---|---|---|
| .. | ||
| litellm-dashboard | ||
| Dockerfile | ||
| nginx.conf | ||