Apply shared UI and workflow fixes
Docker / Docker Build & Push (push) Successful in 8m26s
Lint / Lint (push) Failing after 20s
Tests / Go backend (push) Successful in 16s
Tests / Dashboard checks (push) Successful in 23s

This commit is contained in:
Gabriel20xx committed 2026-08-07 15:22:26 +02:00
1 parent fb22af5272
commit f208697859
15 files changed
+287 -62

No files matched your search

@@ -4,7 +4,9 @@
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from './select';
import { SimpleTooltip } from './tooltip';
let { page, pageSize, pageSizes = [12, 24, 48, 96], pageLength = 0, totalLength = 0, onPaging } = $props();
const PAGE_SIZE_OPTIONS = [12, 24, 48, 96];
let { page, pageSize = 24, pageLength = 0, totalLength = 0, onPaging } = $props();
const hasPreviousPage = $derived(page > 1);
const firstItemIndex = $derived((page - 1) * pageSize + 1);
@@ -14,7 +16,7 @@
// Passed as `Select`'s `items` prop so the trigger shows the right label immediately, even
// before the dropdown has ever been opened - bits-ui can't rely on `Select.Item` having
// mounted to the DOM yet to read its label back off of it.
const pageSizeItems = $derived(pageSizes.map((size) => ({ value: String(size), label: String(size) })));
const pageSizeItems = PAGE_SIZE_OPTIONS.map((size) => ({ value: String(size), label: String(size) }));
</script>
<div class="flex flex-wrap items-center justify-end gap-4 px-2 py-3 text-sm">