feat: add descriptions to document slots and application sections

This commit is contained in:
Nati
2026-08-20 13:04:20 +00:00
parent 6901e985fc
commit 2ec857f0f0
3 changed files with 16 additions and 3 deletions

View File

@@ -144,6 +144,11 @@ export function DocumentSlots({
</Badge> </Badge>
)} )}
</Group> </Group>
{requirement.description && (
<Text size="xs" c="dimmed" mt={2}>
{localized(requirement.description)}
</Text>
)}
{existing?.files?.[0] && ( {existing?.files?.[0] && (
<Text size="xs" c="dimmed" truncate> <Text size="xs" c="dimmed" truncate>
{existing.files[0].originalName} ·{' '} {existing.files[0].originalName} ·{' '}

View File

@@ -727,9 +727,14 @@ export function LicenseApplicationPage() {
return ( return (
<div key={section.key}> <div key={section.key}>
{index > 0 && <Divider mb="lg" />} {index > 0 && <Divider mb="lg" />}
<Text fw={600} fz="sm" tt="uppercase" c="gray.6" mb="sm"> <Text fw={600} fz="sm" tt="uppercase" c="gray.6" mb={section.description ? 4 : "sm"}>
{localized(section.title)} {localized(section.title)}
</Text> </Text>
{section.description && (
<Text fz="xs" c="dimmed" mb="sm">
{localized(section.description)}
</Text>
)}
{locked && ( {locked && (
<Alert <Alert
color="gray" color="gray"

View File

@@ -50,11 +50,14 @@ export function applicationActionsColumn(
onRetakeExam={deps.onRetakeExam} onRetakeExam={deps.onRetakeExam}
onPay={deps.onPay} onPay={deps.onPay}
/> />
{/* Both fee stops are bypassable — an examined certificate is {/* Every fee stop is bypassable — an examined certificate charges
three separate fees (eligibility, exam, certificate) and is
otherwise untestable without a live gateway. */} otherwise untestable without a live gateway. */}
{deps.bypassEnabled && {deps.bypassEnabled &&
(app.status === 'PAYMENT_PENDING' || (app.status === 'PAYMENT_PENDING' ||
app.status === 'EXAM_PAYMENT_PENDING') && ( app.status === 'ELIGIBILITY_PAYMENT_PENDING' ||
app.status === 'EXAM_PAYMENT_PENDING' ||
app.status === 'EXAM_PASSED') && (
<Button <Button
size="xs" size="xs"
variant="default" variant="default"