feat(mui): migrate Warehouse overview + replace residual admin-loading loaders with LoadingState

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
BOHA
2026-06-07 01:45:04 +02:00
parent c7e42a923a
commit e4038051e9
6 changed files with 312 additions and 254 deletions

View File

@@ -15,7 +15,7 @@ import PlanGrid from "../components/PlanGrid";
import PlanCellModal from "../components/PlanCellModal";
import PlanCategoriesModal from "../components/PlanCategoriesModal";
import Forbidden from "../components/Forbidden";
import { Button, Alert } from "../ui";
import { Button, Alert, LoadingState } from "../ui";
import { projectListOptions, type Project } from "../lib/queries/projects";
import { planCategoriesOptions, type PlanCategory } from "../lib/queries/plan";
// plan.css is imported once globally in AdminApp.tsx — no per-page re-import.
@@ -670,11 +670,7 @@ export default function PlanWork() {
</Box>
</motion.div>
{gridLoading && (
<div className="admin-loading">
<div className="admin-spinner" />
</div>
)}
{gridLoading && <LoadingState />}
{/*
Grid entrance: same pattern as the h1 / banner / toolbar above