Loading
Lazy-load the GitLab Credits dashboard apps
What does this MR do and why?
The shared initCreditsDashboard helper loaded both apps. I changed it to import only the one it renders, across the admin, group and Organization dashboards.
I used conditional imports instead of the standalone entry and view gate from the issue. The existing admin gate returns a 404 with no dashboard bundle.
References
Related to #604100 (closed)
Screenshots or screen recordings
No UI change.
How to set up and validate locally
Open each dashboard where you have access. Admin access needs an entitled self-managed instance. In Network, expect usageBillingDashboard for data-is-free="true", otherwise gitlabCreditsDashboard. The other app should stay unloaded.
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.
Edited by Aditya Reddy