Skip to content

feat(support): add support issue templates (DEV-4571)#1110

Merged
davidleomay merged 9 commits into
developfrom
feature/DEV-4571-support-issue-templates
May 22, 2026
Merged

feat(support): add support issue templates (DEV-4571)#1110
davidleomay merged 9 commits into
developfrom
feature/DEV-4571-support-issue-templates

Conversation

@bernd2022

Copy link
Copy Markdown
Collaborator

Summary

  • New /templates screen and dashboard button to manage bilingual reply templates (DE required, EN optional)
  • Template picker inside a support issue with placeholder syntax (\$userData.firstname, \$transaction:last.id, \$issue.uid, …), live preview, language auto-pick from the customer locale, and an array-selection dialog when multiple transactions match
  • Send button now blocks while the message still contains unresolved placeholders
  • Modal gained a maxWidthClass prop so the picker can render wider than the default dialog

Companion API PR: DFXswiss/api#3728

Test plan

  • Create / edit / delete templates from /templates (incl. bilingual content)
  • Picker shows preview in customer language, falls back to DE if EN missing
  • \$transaction.id opens the array picker when the customer has multiple transactions; \$transaction:last.id resolves directly
  • Send button stays disabled while unresolved placeholders remain in the textarea
  • Lazy-load of user data triggers only on first template-picker open per issue

Comment thread src/components/support-templates/bilingual-content-editor.tsx
Comment thread src/components/support-templates/template-list.tsx Outdated
Comment thread src/hooks/support-templates.hook.ts
Comment thread src/screens/support-templates.screen.tsx
@bernd2022 bernd2022 requested a review from davidleomay May 20, 2026 18:48
@davidleomay davidleomay marked this pull request as ready for review May 22, 2026 13:13
@davidleomay davidleomay requested a review from TaprootFreak as a code owner May 22, 2026 13:13
@davidleomay davidleomay merged commit b098203 into develop May 22, 2026
6 checks passed
@davidleomay davidleomay deleted the feature/DEV-4571-support-issue-templates branch May 22, 2026 13:13
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