fix(01-16): unify records action grammar

- use Save for new and existing lifestyle facts
- show first-entry or populated-list add actions without duplication
This commit is contained in:
Marc-André Bombeck committed 2026-07-29 14:29:19 +02:00
1 parent c4ec2d552f
commit 431120d55e
3 files changed
+13 -11

No files matched your search

+6 -4
View File
@@ -123,10 +123,12 @@ export function AllergyManager() {
<p className="text-muted-foreground text-sm">
{t("records.allergies.description")}
</p>
<Button size="sm" onClick={openNew} className="shrink-0">
<Plus className="h-4 w-4" />
{t("records.allergies.add")}
</Button>
{rows.length > 0 ? (
<Button size="sm" onClick={openNew} className="shrink-0">
<Plus className="h-4 w-4" />
{t("records.allergies.add")}
</Button>
) : null}
</div>
{isLoading ? (
@@ -108,10 +108,12 @@ export function FamilyHistoryManager() {
<p className="text-muted-foreground text-sm">
{t("records.family.description")}
</p>
<Button size="sm" onClick={openNew} className="shrink-0">
<Plus className="h-4 w-4" />
{t("records.family.add")}
</Button>
{rows.length > 0 ? (
<Button size="sm" onClick={openNew} className="shrink-0">
<Plus className="h-4 w-4" />
{t("records.family.add")}
</Button>
) : null}
</div>
{isLoading ? (
@@ -243,9 +243,7 @@ export function HealthProfileFactsManager() {
aria-hidden
/>
)}
{current
? t("records.profileFacts.correct")
: t("records.profileFacts.save")}
{t("records.profileFacts.save")}
</Button>
{current ? (
<ConfirmButton