For the rule "TDX/Ticket/Update/Prefill Response", create functionality to allow the update template to be configured.
See src/contentScripts/tdx/ticket/update/cs30.ts for the current cookie-cutter prefill.
Functionality already exists to use braces to insert data such as {client.name.first} to populate the requestor's first name.
Tasks:
Create an interface in the Options pages to customize the prefill response
Give API details for the allowed brace variables
Ensure proper escaping of HTML
Maybe include basic WYSIWYG editor (or allow copy+paste from another rich text editor)
Cloud sync (browser.storage.sync) the prefill whenever it is updated
If nothing has been set by the user, fall back to a default
Pull template from cloud sync in cs30.ts when injecting prefill into ticket updates
For the rule "TDX/Ticket/Update/Prefill Response", create functionality to allow the update template to be configured. See
src/contentScripts/tdx/ticket/update/cs30.ts
for the current cookie-cutter prefill.Functionality already exists to use braces to insert data such as
{client.name.first}
to populate the requestor's first name.Tasks:
browser.storage.sync
) the prefill whenever it is updatedcs30.ts
when injecting prefill into ticket updates