6bab68e96d
Store layer: ListReminders returns the n most recent reminders (newest first). IPC: new MethodListReminders wired through server, client, and lockedAPI. Web: /reminders page with table of created time, fire time, status badge, and payload text; empty state with prompt to ask maven for a reminder. Sidebar entry under Automation.
18 lines
913 B
HTML
18 lines
913 B
HTML
{{template "shellTop" "reminders"}}
|
|
<h1>Reminders</h1>
|
|
{{if .Reminders}}<div class=scroll><table>
|
|
<tr><th>created</th><th>fires</th><th>status</th><th>what</th></tr>
|
|
{{range .Reminders}}<tr>
|
|
<td class=hint>{{.CreatedTs.Format "02 Jan 15:04"}}</td>
|
|
<td>{{.FireTs.Format "02 Jan 15:04"}}</td>
|
|
<td><span class="badge {{.Status}}">{{.Status}}</span></td>
|
|
<td class=text-max>{{.Payload}}</td>
|
|
</tr>{{end}}</table></div>
|
|
{{else}}<div class=empty>
|
|
<svg class=icon width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>
|
|
<div>no reminders yet</div>
|
|
<div class=hint>ask maven to remind you of something</div>
|
|
</div>{{end}}
|
|
{{template "shellBottom"}}
|
|
</html>
|