Skip to content

Add multi-teams support for metrics viewer #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 75 commits into
base: main
Choose a base branch
from

Conversation

DevOps-zhuang
Copy link
Owner

Add support for multiple teams in the metrics viewer.

  • API Changes:

    • Modify getTeams function in src/api/GitHubApi.ts to return team names.
    • Update getTeamMetricsApi to handle multiple teams.
    • Add getMultipleTeamsMetricsApi function to fetch metrics for multiple teams.
  • Component Changes:

    • Add a dropdown menu in src/components/MainComponent.vue to select multiple teams.
    • Update setup function to fetch and display metrics data for selected teams.
    • Add a new component MultiTeamsMetricsViewer.vue to display multi-teams metrics information.
  • Configuration Changes:

    • Add support for multiple teams configuration in src/config.ts.
    • Add a new boolean parameter VUE_APP_SHOW_MULTIPLE_TEAMS in .env and src/config.ts.
  • Documentation:

    • Update README.md to describe metrics for multiple teams and the new VUE_APP_SHOW_MULTIPLE_TEAMS parameter.

karpikpl and others added 30 commits January 14, 2025 23:47
Signed-off-by: Piotr Karpala <[email protected]>
Signed-off-by: Piotr Karpala <[email protected]>
…esources/feature/portal

Better UI for Azure deployments
…esources/fix/fixed-footer

Fix for the footer and release action
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: Piotr Karpala <[email protected]>
…esources/bugfix/latest-tag

include latest tag
karpikpl and others added 30 commits February 25, 2025 10:04
Minor Edit
Add your Github project URL as a link 
I find it useful to refer to your github repo for this project!
…s and improve metrics fetching logic,so it support non-unicode team names.
…and loading states

- Updated MultiTeamsMetricsViewer.vue to display organization name in the title and improved team selection logic.
- Added loading state for metrics fetching and improved error handling.
- Introduced API endpoint for fetching team metrics with support for mocked data.
- Refactored team fetching logic to handle both configured and API-fetched teams.
- Improved metrics calculation and display logic for better user experience.
- Updated nuxt.config.ts to support environment variable overrides for configuration.
…pe,only show it when scope is not enterprise
… improve display name logic,so when team is set in .env, it will displayed
…fetch logic for team data retrieval,so for team/org/enterprise level, the behavior is similar now
…ation and enhance toolbar styling for better visibility
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.

5 participants