Skip to content

feat: add per-user changeTicketType override UI and endpoint (#460)#8

Merged
rogeriolino merged 1 commit into
v2.3from
feat/issue-460-change-ticket-type
Mar 23, 2026
Merged

feat: add per-user changeTicketType override UI and endpoint (#460)#8
rogeriolino merged 1 commit into
v2.3from
feat/issue-460-change-ticket-type

Conversation

@rogeriolino
Copy link
Copy Markdown
Member

Summary

Adds the per-user changeTicketType override in the settings module as part of novosga/novosga#460 (main PR: novosga/novosga#494).

  • UpdateUsuarioBehaviorDto: adds ?bool $changeTicketType
  • DefaultController: includes changeTicketType in the user behavior data and UserBehaviorSettings construction; simplifies JS payload to send the full behavior object
  • index.html.twig: adds a new row with null/true/false dropdown for changeTicketType
  • All 6 locale translation files: adds settings.user.change_ticket_type

Test plan

  • Per-user override false → that user's type selector is disabled regardless of global setting
  • Per-user override null → inherits global changeTicketType value (shown in parentheses)
  • Per-user override true → type selector enabled regardless of global setting

🤖 Generated with Claude Code

Expose `changeTicketType` in the user behavior DTO, controller, and settings
UI (dropdown with null/true/false options). Also simplifies the JS payload to
send the full behavior object instead of individual fields.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@rogeriolino rogeriolino merged commit 5b693cf into v2.3 Mar 23, 2026
1 of 2 checks passed
@rogeriolino rogeriolino deleted the feat/issue-460-change-ticket-type branch March 23, 2026 13:06
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.

1 participant