- Replace hand-coded skeleton CSS/JSX with boneyard-js auto-generated bones - Remove skeleton.css and @keyframes shimmer from base.css - Add <Skeleton> wrappers with fixtures to all 25+ page components - Generate 20 bone captures via boneyard CLI (CDP auth-gated capture) - Refactor data fetching from useEffect+useState to TanStack Query - Extract query hooks into src/admin/lib/queries/ and apiAdapter - Add usePaginatedQuery hook replacing useApiCall/useListData - Fix parseFloat || 0 anti-pattern in OfferDetail and OffersTemplates inputs - Fix customer_id mandatory validation on offer creation - Fix leave-requests comma-separated status filter (Prisma enum in: []) - Add cross-entity cache invalidation for orders/offers/invoices/projects - Make rate limits configurable via env vars (RATE_LIMIT_MAX, RATE_LIMIT_REFRESH, etc.) - Add boneyard.config.json with routes and breakpoints Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
54 lines
1.7 KiB
TypeScript
54 lines
1.7 KiB
TypeScript
export default function LeaveRequestsFixture() {
|
|
return (
|
|
<div>
|
|
<div className="admin-page-header">
|
|
<div>
|
|
<h1 className="admin-page-title">Žádosti o dovolenou</h1>
|
|
<p className="admin-page-subtitle">3 žádosti</p>
|
|
</div>
|
|
<button className="admin-btn admin-btn-primary">+ Nová žádost</button>
|
|
</div>
|
|
<div className="admin-card">
|
|
<div className="admin-card-body">
|
|
<div className="admin-table-responsive">
|
|
<table className="admin-table">
|
|
<thead>
|
|
<tr>
|
|
<th>Uživatel</th>
|
|
<th>Typ</th>
|
|
<th>Od</th>
|
|
<th>Do</th>
|
|
<th>Dní</th>
|
|
<th>Stav</th>
|
|
<th>Akce</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{Array.from({ length: 3 }, (_, i) => (
|
|
<tr key={i}>
|
|
<td>Jan Novák</td>
|
|
<td>Dovolená</td>
|
|
<td className="admin-mono">1. 7. 2024</td>
|
|
<td className="admin-mono">5. 7. 2024</td>
|
|
<td>5</td>
|
|
<td>
|
|
<span className="admin-badge admin-badge-pending">
|
|
Čeká
|
|
</span>
|
|
</td>
|
|
<td>
|
|
<div className="admin-table-actions">
|
|
<button className="admin-btn-icon">Zrušit</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
))}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|