amalia/28-mei-26 #27

Merged
amaliadwiy merged 16 commits from amalia/28-mei-26 into main 2026-05-28 17:22:56 +08:00
12 changed files with 249 additions and 140 deletions
Showing only changes of commit 75d2ef5b4c - Show all commits

View File

@@ -270,7 +270,7 @@ function AppOverviewPage() {
<Group gap="sm" wrap="nowrap">
<TbAlertTriangle size={18} color="var(--mantine-color-orange-5)" style={{ flexShrink: 0 }} />
<Text fw={700} size="sm" c="orange.4">
{staleRes.data.count} desa tidak ada aktivitas dalam {staleDays} hari terakhir
{staleRes.data.count} {staleRes.data.count === 1 ? 'village' : 'villages'} with no activity in the last {staleDays} days
</Text>
</Group>
<Group gap="xs" wrap="nowrap">
@@ -279,9 +279,9 @@ function AppOverviewPage() {
value={String(staleDays)}
onChange={(v) => setStaleDays(Number(v) as 7 | 14 | 30)}
data={[
{ label: '7H', value: '7' },
{ label: '14H', value: '14' },
{ label: '30H', value: '30' },
{ label: '7D', value: '7' },
{ label: '14D', value: '14' },
{ label: '30D', value: '30' },
]}
/>
<ActionIcon variant="subtle" color="gray" size="sm" onClick={toggleStale}>
@@ -305,7 +305,7 @@ function AppOverviewPage() {
{v.name}
</Anchor>
<Text size="xs" c="orange.6" fw={600}>
{v.daysSince === null ? 'Belum pernah ada aktivitas' : `${v.daysSince} hari lalu`}
{v.daysSince === null ? 'No activity yet' : `${v.daysSince}d ago`}
</Text>
</Group>
))}