A large UX, settings, catalog, and reliability release driven by the UX spec
(docs/spec-ux.md) and the settings/reports spec (docs/spec-settings-and-catalog.md).
Added
Job creation & management (UX overhaul)
- Dedicated job creation page /jobs/new?report=<id> with a shared, reusable job
form (replaces the old modal dialog).
- Job edit page /jobs/[id]/edit and clone flow /jobs/new?clone=<id> (" (copy)").
- Quick-setup presets on the creation page (daily email, weekly digest, on-change alert).
- Live "next 5 runs" schedule preview, natural-language schedule summaries, and a
custom-cron mode.
- Tags on jobs (new tags column) with a tag filter bar on the dashboard.
- Dashboard richness: health pill (last-3 runs), 20-run sparkline, bulk
select/enable/disable/delete, and an Edit/Duplicate action.
- Required-permissions panel on the creation page — lists the report's Graph scopes
plus Mail.Send, with a "grant in Entra" hint.
Settings & platform
- General tab: global recipients, admin contacts, language, app version, master-key banner.
- Schedule timezone (IANA) — jobs fire and preview in the configured zone.
- Configurable data-retention window (was a hardcoded 90-day prune).
- From-address / Reply-To overrides for outbound report email.
- Backup export/import (/api/backup) of jobs, templates, and non-secret settings —
credentials and the master key are never exported.
- Granular permission validation — Test Connection probes the app's granted Graph
permissions and lists the exact missing scopes (incl. Mail.Send).
- One-click permission grant — admin-consent bootstrap link plus programmatic
appRoleAssignment of missing scopes via Graph (Settings → Integrations).
Catalog — 12 → 26 built-in reports
- Tier-1 JSON: Secure Score Trend, Provisioning Log Summary, Risky Service Principals.
- Tier-2 CSV usage reports (new getCsv transport seam + CSV parser): Teams User Activity,
Mailbox Quota, M365 Groups Activity, OneDrive Usage, SharePoint Site Usage, Email
Activity, Active Users per Service.
- Tier-3 JSON: User Risk Detections, SP Risk Detections, Custom Security Attribute Audit,
Service Principal Sign-Ins.
Changed
- Settings navigation restructured:
General (default) + Integrations. Microsoft 365
credentials moved into the Integrations vendor card; vendors are collapsible cards with
brand logos (M365, GCP, AWS, Custom Webhook). Mailbox permissions folded into the M365
card (standalone Permissions tab removed).
- Catalog cards now start the creation flow ("Create job" →
/jobs/new) instead of
opening the template editor.
- Template previews are report-specific (each shows its own report name/summary).
- Legibility: raised muted-foreground and border contrast tokens for readability.
- Execution detail shows the parent job's name + tags and a clickable run-history timeline.
Fixed
- Connection test no longer reports a false "green": it now validates real Graph
permissions and
Mail.Send instead of merely checking that a mailbox string was saved.
- Graph errors are now human-readable — HTTP status + Graph error code + an actionable hint
(e.g. a 403 names the exact permissions the failing report needs), instead of dumping the
raw request URL.
- Templates page no longer offers a "Create job" button (kept as a separate workflow).
Migrations
0003 settings admin_contacts
0004 jobs tags
0005 settings timezone, retention_days, from_address, reply_to
0006 settings missing_permissions