Notifications History Template

> Experimental template: Only launch partners should rely on this flow. Expect asset refreshes between demos until the gallery stabilizes.

Last refreshed: 2025‑11‑12 (see templates/apps/notifications-history/template.json)

Overview

Notifications History is a production-ready template that showcases delivery timelines, resend actions, and SLA dashboards for multi-channel notifications (email + Slack). Applying the template preloads:

  • • App Model (weldr.app.json) with the Notification + NotificationEvent entities
  • • Ownership manifest tuned for extending notification providers safely
  • • Generated scaffolds under lib/server/notifications/, app/(dashboard)/notifications-history/, and supporting hooks
  • Use it to demo progressive ownership around messaging workflows or as a starting point for customer notification centers.

    Export / Refresh Workflow

    # Regenerate the eval bundle (requires dev server)
    pnpm eval:autopilot -- --scenario notifications-history
    
    # Export the latest snapshot into templates/apps/notifications-history/
    pnpm template:export notifications-history --force
    
    # (Optional) refresh the gallery cache in dev
    curl -X POST http://localhost:3000/api/templates/reload

    Artifacts land in templates/apps/notifications-history/:

    | File | Purpose | | --- | --- | | bundle.json | Eval bundle (files + metadata) | | weldr.app.json | DSL snapshot used when hydrating a chat | | weldr.ownership.yaml | Ownership manifest (notification providers marked extended/ejected) | | template.json | Gallery metadata (status, summary, commands) | | README.md | Maintenance notes for this template |

    Using the Template in the App

  • Visit /templates and select Notifications History.
  • Review summary stats (entities, pages, workflows) plus the quick-start commands.
  • Click Create from Template. After hydration, the chat shows an inline “Template ready” banner—use “View generated code” to inspect the shipped files immediately.
  • Regenerate previews or continue iterating via chat; ownership badges are ready out of the box thanks to the copied manifest.
  • Demo Checklist

  • • [ ] Slack/email provider scaffolds render under lib/server/notifications/providers/*.
  • • [ ] Notification timeline UI works in the preview iframe (ensure the dev backend is running).
  • • [ ] Ownership manifest highlights notification providers as extended so edits are safe.
  • • [ ] Optional: run pnpm template:export notifications-history --force before demos to keep timestamps fresh.