fix architecture and write new tests

This commit is contained in:
root
2026-06-10 00:40:19 -04:00
parent 560da1cadf
commit 80a597bc10
377 changed files with 84020 additions and 1337 deletions
@@ -56,14 +56,13 @@ export default function AdminNotificationsPage() {
function load(p: number) {
setLoading(true)
setError(null)
const token = localStorage.getItem('admin_token') ?? ''
const params = new URLSearchParams({ page: String(p), pageSize: '50' })
if (filterChannel) params.set('channel', filterChannel)
if (filterStatus) params.set('status', filterStatus)
if (filterCompany) params.set('companyId', filterCompany)
fetch(`${ADMIN_API_BASE}/admin/notifications?${params.toString()}`, {
headers: { Authorization: `Bearer ${token}` },
credentials: 'include',
cache: 'no-store',
})
.then((r) => r.json())