DONE: fix naming, add transaction for completion of membership application

This commit is contained in:
ISMAIL MASSERAN
2026-07-15 11:35:09 +08:00
parent f7429576b9
commit 4b80b377e5
14 changed files with 125 additions and 256 deletions
+5 -13
View File
@@ -52,7 +52,7 @@ const STATUS_FILTER_CHIPS: StatusFilterChip[] = [
function getEmployerShortLabel(name: string): string {
const match = name.match(/\(([^)]+)\)/)
if (match?.[1]) return match[1]
if (name.startsWith('An-Nisa')) return "An-Nisa'"
if (name.startsWith('Pusat Perubatan An-Nisa')) return "Pusat Perubatan An-Nisa'"
if (name.startsWith('Kel Infra')) return 'Kel Infra'
return name
}
@@ -568,18 +568,10 @@ onMounted(() => {
</div>
<div class="flex flex-wrap items-center gap-2">
<span class="text-sm opacity-70">Unit:</span>
<Badge
v-for="chip in UNIT_FILTER_CHIPS"
:key="chip.value || 'all-units'"
variant="ghost"
:look="isUnitFilterActive(chip.value) ? 'filled' : 'outline'"
role="button"
tabindex="0"
:title="chip.value || 'Semua unit'"
:aria-pressed="isUnitFilterActive(chip.value)"
@click="setUnitFilter(chip.value)"
@keydown.enter="setUnitFilter(chip.value)"
>
<Badge v-for="chip in UNIT_FILTER_CHIPS" :key="chip.value || 'all-units'" variant="ghost"
:look="isUnitFilterActive(chip.value) ? 'filled' : 'outline'" role="button" tabindex="0"
:title="chip.value || 'Semua unit'" :aria-pressed="isUnitFilterActive(chip.value)"
@click="setUnitFilter(chip.value)" @keydown.enter="setUnitFilter(chip.value)">
{{ chip.label }}
</Badge>
</div>