feat: visitor pages, My QR, sign-in frame and shell refinements #39

Merged
ngqile merged 14 commits from refine-visitor-pages-and-shell into main 2026-12-01 15:44:50 +00:00
3 changed files with 7 additions and 2 deletions
Showing only changes of commit 372cd7244e - Show all commits

No files matched your search

@@ -24,4 +24,9 @@ describe("RegistrationForm look", () => {
expect(screen.getByText("English text").parentElement?.className).toContain("text-muted-foreground");
expect(screen.getByText("Teks Melayu")).toBeTruthy();
});
it("sets the consent sentences in regular weight", () => {
wrap(<RegistrationForm {...props} />);
expect(screen.getByText(/I agree to INS/).closest("span[class*=space-y]")).toHaveClass("font-normal");
});
});
@@ -126,7 +126,7 @@ export function RegistrationForm({ tooManyKey, info, initial, submit, onDone, on
</div>
<Label htmlFor="reg-consent" className={CONSENT_ROW}>
<Checkbox id="reg-consent" className={`${BOX} mt-0.5`} checked={form.consent} onCheckedChange={(on) => set({ consent: on === true })} aria-invalid={!!errors.consent} aria-describedby={errors.consent ? "reg-consent-error" : undefined} />
<span className="space-y-1">
<span className="space-y-1 font-normal">
<span className="block">{t("RegConsentEn", { company: info.companyName })}</span>
<span className="block">{t("RegConsentMs", { company: info.companyName })}</span>
</span>
@@ -50,7 +50,7 @@ export function VisitorState({ icon: Icon, heading, text, action, role, tone = "
<span className={`flex size-12 items-center justify-center rounded-full ${tone === "error" ? "bg-destructive/10 text-destructive" : "bg-accent text-accent-foreground"}`}>
<Icon className="size-6" aria-hidden="true" />
</span>
<Heading className="text-lg font-semibold">{heading}</Heading>
<Heading className="text-lg font-semibold text-balance">{heading}</Heading>
{text && <p className="text-sm text-muted-foreground">{text}</p>}
{action}
</div>