Hi @galexandre,
maybe this is helpful too
and also GitHub - SonarSource/sonar-custom-plugin-example: Shows how to write a SonarQube plugin
The example has a custom page that shows projects and Quality gate status, but only for the main branch (default = master).
Gilbert