João Salavisa
a59909ca5a
fix(jira): use shared prompt template with placeholder autocomplete ( #801 )
...
* fix(jira): use shared prompt template with placeholder autocomplete
Default prompt for the JIRA watcher now lives in
config/prompts/jira-issue-watch-default.md (loaded via promptcfg.Get),
matching how the GitHub issue/PR-review watchers source their defaults.
The watch dialog swaps the plain Textarea for the ScriptEditor used by
the GitHub dialog so users get {{...}} autocomplete, and the inline
hardcoded default string is gone from both backend and frontend.
* fix(jira): treat whitespace-only stored prompt as empty on hydrate
CodeRabbit caught that w.prompt || DEFAULT keeps a stored " " value,
which canSave then rejects — dialog reopens in an unsavable state. Fall
back to the default whenever the trimmed value is empty.
---------
Co-authored-by: Kandev Agent <agent@kandev.dev >
2026-05-03 20:48:10 +01:00
..
2026-03-13 00:44:06 +00:00
2026-05-02 20:26:42 +01:00
2026-04-27 10:22:58 +01:00
2026-05-03 10:22:57 +01:00
2026-05-03 16:15:28 +01:00
2026-05-03 20:48:10 +01:00
2026-05-03 16:15:28 +01:00
2026-05-03 10:22:57 +01:00
2026-04-20 23:42:14 +01:00
2026-05-03 16:15:28 +01:00
2026-05-03 16:15:28 +01:00
2026-05-02 20:26:42 +01:00
2026-04-24 17:14:03 +01:00
2026-04-19 11:08:18 +01:00
2026-05-03 10:22:57 +01:00
2026-05-02 18:53:59 +01:00
2026-05-01 21:02:41 +01:00
2026-05-03 17:32:29 +01:00
2026-04-17 23:12:45 +01:00
2026-05-02 20:26:42 +01:00
2026-02-19 22:18:01 +00:00
2026-05-01 13:24:12 +01:00
2026-05-02 20:26:42 +01:00
2026-03-07 03:59:01 +00:00
2026-04-01 23:29:49 +01:00
2026-02-19 22:18:01 +00:00
2026-02-24 00:48:55 +00:00
2026-03-07 18:55:03 +00:00
2026-04-25 23:53:43 +01:00
2026-02-19 22:18:01 +00:00
2026-04-15 13:22:32 +01:00
2026-04-27 22:50:08 +01:00
2026-02-19 22:18:01 +00:00
2026-04-01 23:29:49 +01:00
2026-05-01 15:18:18 +01:00
2026-05-01 15:18:18 +01:00
2026-05-01 15:18:18 +01:00
2026-05-01 15:18:18 +01:00
2026-03-31 23:31:18 +01:00
2026-04-17 18:16:39 +01:00
2026-05-02 23:01:21 +01:00
2026-05-02 20:26:42 +01:00
2026-05-01 21:02:41 +01:00
2026-05-01 18:01:17 +01:00
2026-02-19 22:18:01 +00:00
2026-05-01 15:18:18 +01:00
2026-04-20 23:42:14 +01:00
2026-05-03 16:15:28 +01:00
2026-02-19 22:18:01 +00:00
2026-03-29 15:33:40 +01:00
2026-03-05 00:47:58 +00:00
2026-04-20 22:31:09 +01:00
2026-04-20 13:44:24 +01:00
2026-02-19 22:18:01 +00:00
2026-02-19 22:18:01 +00:00
2026-04-16 10:14:45 +01:00
2026-05-02 20:26:42 +01:00
2026-05-01 21:02:41 +01:00
2026-05-02 20:26:42 +01:00
2026-05-02 20:26:42 +01:00
2026-05-02 20:26:42 +01:00
2026-05-01 21:02:41 +01:00
2026-05-02 23:47:19 +01:00
2026-04-25 23:53:43 +01:00
2026-04-25 23:53:43 +01:00
2026-05-03 16:15:28 +01:00
2026-05-02 20:26:42 +01:00
2026-05-02 20:26:42 +01:00
2026-05-02 20:26:42 +01:00
2026-05-02 20:26:42 +01:00
2026-05-02 20:26:42 +01:00
2026-05-03 16:15:28 +01:00
2026-05-03 16:15:28 +01:00
2026-05-03 16:15:28 +01:00
2026-05-03 16:15:28 +01:00
2026-05-03 16:15:28 +01:00
2026-05-03 16:15:28 +01:00
2026-05-02 20:26:42 +01:00
2026-05-03 16:15:28 +01:00
2026-05-02 20:26:42 +01:00
2026-05-01 21:02:41 +01:00
2026-05-03 16:15:28 +01:00
2026-05-02 20:26:42 +01:00
2026-05-02 20:26:42 +01:00
2026-05-02 23:47:19 +01:00
2026-05-01 18:01:17 +01:00
2026-02-19 22:18:01 +00:00
2026-02-19 22:18:01 +00:00
2026-03-05 00:47:58 +00:00
2026-05-02 20:26:42 +01:00
2026-05-02 20:26:42 +01:00
2026-04-20 09:26:53 +01:00
2026-02-19 22:18:01 +00:00