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:
@@ -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<{
|
||||
|
||||
Reference in New Issue
Block a user