feat: streamline dashboard UI and improve refill reminder (#86)
- Hide Reorder Reminder card when reminders are enabled (avoids redundancy with Reminder Bar) - Show all low stock medications in Reminder Bar instead of just the next one - Rename 'Reorder' to 'Refill' throughout the app - Make medication names clickable in Refill Reminder card (opens detail modal) - Add daysLeft display for each low stock medication - Update translations (EN + DE)
This commit is contained in:
@@ -237,7 +237,7 @@ export function getReminderStatusText(
|
||||
});
|
||||
if (medsNeedingReminder.length > 0) {
|
||||
lines.push({
|
||||
text: `⚠ ${t("dashboard.reminders.needReorder", { count: medsNeedingReminder.length })}`,
|
||||
text: `⚠ ${t("dashboard.reminders.needRefill", { count: medsNeedingReminder.length })}`,
|
||||
className: "danger-text",
|
||||
});
|
||||
}
|
||||
@@ -255,7 +255,7 @@ export function getReminderStatusText(
|
||||
|
||||
if (medsNeedingReminder.length > 0) {
|
||||
lines.push({
|
||||
text: `⚠ ${t("dashboard.reminders.needReorder", { count: medsNeedingReminder.length })}`,
|
||||
text: `⚠ ${t("dashboard.reminders.needRefill", { count: medsNeedingReminder.length })}`,
|
||||
className: "danger-text",
|
||||
strong: true,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user