Skip to content

feat(notifications): per-application fallback notification templates - #740

Merged
ymarcon merged 5 commits into
masterfrom
improvement/app-notifications
Sep 25, 2026
Merged

ymarcon merged 5 commits into
masterfrom
improvement/app-notifications

Conversation

@kazoompa

Copy link
Copy Markdown
Member

An application can now fall back to another notification templates folder for any template missing from its own notifications// folder. The fallback is chosen in the application dialog of the admin UI (Fallback notification templates), from the folders Agate finds: the bundled mica one and any under AGATE_HOME/conf/templates/notifications/.

  • GET /ws/applications/_notification-templates lists these folders
  • the fallback applies only to a missing file, never to a parse error
  • looked up by application id, not display name, so a differently cased display name still resolves correctly
  • default is None (no fallback) for new and existing applications: applications have no type, so Agate does not assume a Mica
  • fix: updateApplication was not persisting the fallback folder
  • see UPGRADE.md for the multi-Mica setup

An application can now fall back to another notification templates
folder for any template missing from its own notifications/<name>/
folder. The fallback is chosen in the application dialog of the admin
UI (Fallback notification templates), from the folders Agate finds:
the bundled mica one and any under AGATE_HOME/conf/templates/notifications/.

- GET /ws/applications/_notification-templates lists these folders
- the fallback applies only to a missing file, never to a parse error
- looked up by application id, not display name, so a differently
  cased display name still resolves correctly
- default is None (no fallback) for new and existing applications:
  applications have no type, so Agate does not assume a Mica
- fix: updateApplication was not persisting the fallback folder
- see UPGRADE.md for the multi-Mica setup
@ymarcon
ymarcon merged commit 37ab0c1 into master Sep 25, 2026
2 checks passed
@ymarcon
ymarcon deleted the improvement/app-notifications branch September 25, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants