Add Brili-style scheduled routines timeline view

Replaces the flat routine card list with a day-oriented timeline showing
scheduled routines at their time slots, with week strip navigation and
a live "now" indicator. Adds bulk schedules API endpoint.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-15 18:34:03 -06:00
parent bb01f0213f
commit 749f734aff
3 changed files with 330 additions and 102 deletions

View File

@@ -265,6 +265,18 @@ export const api = {
);
},
listAllSchedules: async () => {
return request<Array<{
routine_id: string;
routine_name: string;
routine_icon: string;
days: string[];
time: string;
remind: boolean;
total_duration_minutes: number;
}>>('/api/routines/schedules', { method: 'GET' });
},
// History
getHistory: async (routineId: string, days = 7) => {
return request<Array<{