Fix route constraint for Credits dashboards

What does this MR do and why?

Related to https://gitlab.com/gitlab-org/customers-gitlab-com/-/work_items/15567

This MR fixes a bug in the route definition for GitLab Credits Dashboards for both group and instance settings where username was not properly parsed into params for usernames containing a period (e.g. ralph.wiggum). This addresses the bug by setting constraints for username matching as well as ignoring the format option.

References

https://gitlab.com/gitlab-org/customers-gitlab-com/-/work_items/15567+

Screenshots or screen recordings

Before After
Screenshot_2026-01-16_at_4.57.59_PM Screenshot_2026-01-16_at_4.57.14_PM

How to set up and validate locally

  1. Make sure you have at least one group member that has a username containing a period. If not, create one before continuing.
  2. Visit the GitLab Credits page for the group: e.g. http://localhost:3000/groups/clickhouse/-/settings/gitlab_credits_dashboard
  3. Click the user with the username containing a period.
  4. While on this branch, the resulting user page should load. Without this branch, the page will show a loading spinner indefinitely.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading