7a95097cc7
- Redesign dash/history/notifications/trace pages with unified CSS framework (ui.css): cards, badges, scrollable tables, responsive grid, PWA shell. - Add /voice page with chat-bubble transcript, listening indicator, and push-to-talk button for voice interaction. - Add mavweb.js: client-side JS for live transcript polling, auto-scroll, push-to-talk, and service-worker registration. - Update PWA manifest, icon, and service-worker for installable web app. - Add WebAuthn credential management (register/list/delete) with modal UI. - Update main.go: /voice route, WebAuthn handlers, new page navigation. - Update handlers_test.go for new voice and WebAuthn routes.
19 lines
868 B
HTML
19 lines
868 B
HTML
{{template "shellTop" "notifications"}}
|
|
<h1>Notifications</h1>
|
|
{{if .Nudges}}<div class=scroll><table>
|
|
<tr><th>when</th><th>rule</th><th>channel</th><th>outcome</th><th>message</th></tr>
|
|
{{range .Nudges}}<tr>
|
|
<td class=hint>{{.Ts.Format "15:04"}}</td>
|
|
<td class=key>{{.Rule}}</td>
|
|
<td><span class=badge>{{.Channel}}</span></td>
|
|
<td class={{.Outcome}}>{{.Outcome}}</td>
|
|
<td class=text-max>{{.Message}}</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"><path d="M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9"/><path d="M10.3 21a1.94 1.94 0 0 0 3.4 0"/></svg>
|
|
<div>no notifications yet</div>
|
|
<div class=hint>check back later or ask maven a question</div>
|
|
</div>{{end}}
|
|
{{template "shellBottom"}}
|
|
</html>
|