frontend: UI fixes + settings/patients features

- Record history: replace fragile COSS Timeline separator math with a
  continuous-rail list so every audited change renders in full (RTL-safe).
- Prescriptions: new reusable COSS DatePicker (Popover + Calendar) replaces
  raw <input type="date"> for Start/End date.
- Update banner: rebuilt with COSS Alert variant="warning"; pinned physical
  bottom-right so it stays bottom-right under Arabic RTL.
- AI setup notice: thin attached warning banner with clearer copy; now shown
  above the input in active chats too, not just the empty state.
- Settings profile: wire the previously dead Specialty (Select) and
  Professional links (editable rows) into the persisted preferences.
- Patients: add a status filter and broaden search to conditions/allergies.
- Sidebar user menu: quick language switch submenu (RTL already wired).
- ai-elements: fix a subset of Base UI type drift (22 -> 12; remainder is
  cmdk->Autocomplete migration drift kept behind ignoreBuildErrors).
- i18n: new keys added across all five locales (en/de/fr/ar/so).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Khalid Abdi
2026-07-12 21:06:38 +03:00
parent bffed5525d
commit 2c239fbd27
20 changed files with 455 additions and 133 deletions
+10 -4
View File
@@ -263,7 +263,8 @@
"createDialogDescription": "أضف عيادة جديدة وانتقل إليها.",
"signOutFailed": "فشل تسجيل الخروج",
"tryAgain": "يرجى المحاولة مرة أخرى.",
"signedOut": "تم تسجيل الخروج"
"signedOut": "تم تسجيل الخروج",
"language": "اللغة"
},
"clinic": {
"create": "إنشاء عيادة",
@@ -374,7 +375,9 @@
"doneTitle": "تم حذف المريض",
"failedTitle": "تعذّر حذف المريض",
"failedBody": "يرجى المحاولة مرة أخرى."
}
},
"filterStatus": "تصفية حسب الحالة",
"allStatuses": "كل الحالات"
},
"appointments": {
"title": "المواعيد والجدول",
@@ -615,7 +618,8 @@
"removeDates": "إزالة",
"startDate": "تاريخ البدء",
"endDate": "تاريخ الانتهاء",
"addDates": "إضافة تاريخ البدء/الانتهاء"
"addDates": "إضافة تاريخ البدء/الانتهاء",
"selectDate": "اختر التاريخ"
}
},
"pharmacy": {
@@ -1886,7 +1890,9 @@
"pendingApprovalsDesc": "أبلغني عند موافقة مريض على تغيير معلّق أو رفضه",
"recordsShared": "سجلات شُوركت معي",
"recordsSharedDesc": "أبلغني عند مشاركة مريض سجلًا معي"
}
},
"linkPlaceholder": "https://example.com",
"removeLink": "إزالة الرابط"
},
"careTeam": {
"title": "فريق الرعاية",
+10 -4
View File
@@ -259,7 +259,8 @@
"createDialogDescription": "Fügen Sie eine neue Klinik hinzu und wechseln Sie zu ihr.",
"signOutFailed": "Abmeldung fehlgeschlagen",
"tryAgain": "Bitte versuchen Sie es erneut.",
"signedOut": "Abgemeldet"
"signedOut": "Abgemeldet",
"language": "Sprache"
},
"clinic": {
"create": "Klinik erstellen",
@@ -362,7 +363,9 @@
"doneTitle": "Patient gelöscht",
"failedTitle": "Patient konnte nicht gelöscht werden",
"failedBody": "Bitte versuchen Sie es erneut."
}
},
"filterStatus": "Nach Status filtern",
"allStatuses": "Alle Status"
},
"appointments": {
"title": "Termine & Zeitplan",
@@ -599,7 +602,8 @@
"removeDates": "Entfernen",
"startDate": "Startdatum",
"endDate": "Enddatum",
"addDates": "Start-/Enddatum hinzufügen"
"addDates": "Start-/Enddatum hinzufügen",
"selectDate": "Datum wählen"
}
},
"pharmacy": {
@@ -1866,7 +1870,9 @@
"pendingApprovalsDesc": "Benachrichtigen Sie mich, wenn ein Patient eine ausstehende Änderung genehmigt oder ablehnt",
"recordsShared": "Mit mir geteilte Datensätze",
"recordsSharedDesc": "Benachrichtigen Sie mich, wenn ein Patient einen Datensatz mit mir teilt"
}
},
"linkPlaceholder": "https://example.com",
"removeLink": "Link entfernen"
},
"careTeam": {
"title": "Behandlungsteam",
+10 -4
View File
@@ -259,7 +259,8 @@
"createDialogDescription": "Add a new clinic and switch to it.",
"signOutFailed": "Sign out failed",
"tryAgain": "Please try again.",
"signedOut": "Signed out"
"signedOut": "Signed out",
"language": "Language"
},
"clinic": {
"create": "Create clinic",
@@ -362,7 +363,9 @@
"doneTitle": "Patient deleted",
"failedTitle": "Couldn't delete patient",
"failedBody": "Please try again."
}
},
"filterStatus": "Filter by status",
"allStatuses": "All statuses"
},
"appointments": {
"title": "Appointments & Schedule",
@@ -599,7 +602,8 @@
"removeDates": "Remove",
"startDate": "Start date",
"endDate": "End date",
"addDates": "Add start/end dates"
"addDates": "Add start/end dates",
"selectDate": "Select date"
}
},
"pharmacy": {
@@ -1866,7 +1870,9 @@
"pendingApprovalsDesc": "Notify me when a patient approves or rejects a pending change",
"recordsShared": "Records shared with me",
"recordsSharedDesc": "Notify me when a patient shares a record with me"
}
},
"linkPlaceholder": "https://example.com",
"removeLink": "Remove link"
},
"careTeam": {
"title": "Care team",
+10 -4
View File
@@ -259,7 +259,8 @@
"createDialogDescription": "Ajoutez une nouvelle clinique et passez-y.",
"signOutFailed": "Échec de la déconnexion",
"tryAgain": "Veuillez réessayer.",
"signedOut": "Déconnecté"
"signedOut": "Déconnecté",
"language": "Langue"
},
"clinic": {
"create": "Créer une clinique",
@@ -362,7 +363,9 @@
"doneTitle": "Patient supprimé",
"failedTitle": "Impossible de supprimer le patient",
"failedBody": "Veuillez réessayer."
}
},
"filterStatus": "Filtrer par statut",
"allStatuses": "Tous les statuts"
},
"appointments": {
"title": "Rendez-vous & Planning",
@@ -599,7 +602,8 @@
"removeDates": "Retirer",
"startDate": "Date de début",
"endDate": "Date de fin",
"addDates": "Ajouter les dates de début/fin"
"addDates": "Ajouter les dates de début/fin",
"selectDate": "Choisir une date"
}
},
"pharmacy": {
@@ -1866,7 +1870,9 @@
"pendingApprovalsDesc": "Me notifier lorsqu'un patient approuve ou rejette une modification en attente",
"recordsShared": "Dossiers partagés avec moi",
"recordsSharedDesc": "Me notifier lorsqu'un patient partage un dossier avec moi"
}
},
"linkPlaceholder": "https://example.com",
"removeLink": "Supprimer le lien"
},
"careTeam": {
"title": "Équipe soignante",
+10 -4
View File
@@ -259,7 +259,8 @@
"createDialogDescription": "Ku dar rug cusub oo u beddel.",
"signOutFailed": "Ka-bixitaanka waa fashilmay",
"tryAgain": "Fadlan isku day mar kale.",
"signedOut": "Waa laga baxay"
"signedOut": "Waa laga baxay",
"language": "Luqadda"
},
"clinic": {
"create": "Samee rug",
@@ -362,7 +363,9 @@
"doneTitle": "Bukaanka waa la tirtiray",
"failedTitle": "Bukaanka lama tirtiri karin",
"failedBody": "Fadlan isku day mar kale."
}
},
"filterStatus": "Ku kala sooc xaaladda",
"allStatuses": "Dhammaan xaaladaha"
},
"appointments": {
"title": "Ballamaha & Jadwalka",
@@ -599,7 +602,8 @@
"removeDates": "Ka saar",
"startDate": "Taariikhda bilowga",
"endDate": "Taariikhda dhammaadka",
"addDates": "Ku dar taariikhaha bilow/dhammaad"
"addDates": "Ku dar taariikhaha bilow/dhammaad",
"selectDate": "Dooro taariikhda"
}
},
"pharmacy": {
@@ -1866,7 +1870,9 @@
"pendingApprovalsDesc": "I ogeysii marka bukaan ansixiyo ama diido isbeddel la sugayo",
"recordsShared": "Diiwaanno la ila wadaagay",
"recordsSharedDesc": "I ogeysii marka bukaan diiwaan ila wadaago"
}
},
"linkPlaceholder": "https://example.com",
"removeLink": "Ka saar linkiga"
},
"careTeam": {
"title": "Kooxda daryeelka",