feat: add private day, history and reminder command graphics

This commit is contained in:
syntaxbullet
2026-09-08 08:58:34 +02:00
parent d088179c5e
commit f79d593a04
8 changed files with 254 additions and 6 deletions

View File

@@ -46,7 +46,7 @@ export function preferences(c: Context, command: string, data: ControlData = {})
...(visible.length ? [select(c, 'Choose a reminder', 'prefs.select', state, visible.map((g, i) => ({ id: String(page * 10 + i), name: g.name, description: `${g.times.join(', ')} · ${schedule(g.entry)}` })))] : []),
...pages(c, 'prefs.list', { page }, all.length),
row(button(c, 'Add reminder', 'prefs.edit', { ...state, index: undefined }), button(c, prefs.enabled ? 'Disable delivery' : 'Enable delivery', 'prefs.toggle', { ...state, done: !prefs.enabled }), button(c, 'Quiet hours', 'prefs.quiet', state)),
row(button(c, 'Settings', 'prefs.settings'), button(c, 'Refresh', 'prefs.list', { page })),
row(button(c, 'Settings', 'prefs.settings'), button(c, 'Refresh', 'prefs.list', { page }), button(c, 'View schedule card', 'graphic.reminders')),
]);
}
function edit(c: Context, data: ControlData): Reply {