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:
Daniel Volz
2026-01-30 22:21:05 +01:00
committed by GitHub
parent 1dcd333fde
commit 99ef5bd622
8 changed files with 319 additions and 196 deletions
@@ -577,15 +577,15 @@ describe("DashboardPage with email notifications", () => {
expect(statusBar).toBeInTheDocument();
});
it("shows reminder email button when there are low stock meds", () => {
it("hides reorder reminder card when reminders are enabled (to avoid redundancy)", () => {
render(
<MemoryRouter>
<DashboardPage />
</MemoryRouter>
);
// Should show send reminder button
expect(screen.getByText(/dashboard\.reorder\.sendReminder/i)).toBeInTheDocument();
// Reorder card should NOT be shown when reminders are active (Reminder Bar shows the info instead)
expect(screen.queryByText(/dashboard\.reorder\.sendReminder/i)).not.toBeInTheDocument();
});
});