Add counts to tabs
What / Why
We will want to add a lightweight way to gather tab counts similar to !165105 (merged) for projects.
Implementation Plan
- Create a
app/assets/javascripts/groups/your_work/graphql/queries/group_counts.query.graphqlfile similar toapp/assets/javascripts/projects/your_work/graphql/queries/project_counts.query.graphql - In
app/assets/javascripts/groups/your_work/components/app.vueadd acountsGraphQL query and save to Vue reactive data. - Add counts to tabs similar to app/assets/javascripts/projects/your_work/components/app.vue#L225
- Add
activeargument to app/graphql/resolvers/groups_resolver.rb#L51. Set default totrueand make it experimental. Set argument tofalsefor the counts onInactivetab.
Edited by Peter Hegman