Skip to content

feat: hide scorecard badges and wire dependency graph#163

Merged
IsmaelMartinez merged 2 commits intomainfrom
feat/hide-scorecards-wire-dependency-graph
Feb 26, 2026
Merged

feat: hide scorecard badges and wire dependency graph#163
IsmaelMartinez merged 2 commits intomainfrom
feat/hide-scorecards-wire-dependency-graph

Conversation

@IsmaelMartinez
Copy link
Owner

Summary

  • Remove scorecard-to-badge mapping from the pipeline (dynamic metrics create noise in a versioned catalog)
  • Wire DEPENDS_ON relationships into the SDK sends property so <NodeGraph /> renders the dependency graph
  • Scorecard API fetch capability preserved for custom template consumers

Test plan

  • All 112 tests pass (pnpm run test -- run)
  • Build succeeds (pnpm run build)
  • Lint clean (pnpm run lint)

🤖 Generated with Claude Code

Scorecards are dynamic metrics that create noise in a versioned catalog.
Remove scorecard-to-badge mapping while keeping the API fetch capability
for custom templates. Wire DEPENDS_ON relationships into the SDK sends
property so <NodeGraph /> renders the dependency graph.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gemini-code-assist
Copy link

Summary of Changes

Hello @IsmaelMartinez, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request refines the catalog generation process by integrating dependency relationships for enhanced visualization and by streamlining the output through the removal of dynamic scorecard badges. The changes aim to provide a clearer understanding of service interdependencies via a node graph, while simultaneously reducing visual clutter caused by frequently changing scorecard metrics in the static catalog.

Highlights

  • Scorecard Badges Removed: The scorecard-to-badge mapping has been removed from the pipeline, as dynamic metrics were creating noise in the versioned catalog. The Scorecard API fetch capability is preserved for custom template consumers.
  • Dependency Graph Visualization: The DEPENDS_ON relationships are now wired into the SDK's sends property, enabling the <NodeGraph /> component to render a dependency graph for better visualization of service interdependencies.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • PLAN.md
    • Updated the status of 'Component relationship visualisation' to 'done'
    • Added a note about wiring DEPENDS_ON relationships and hiding scorecards from badge output
  • src/index.ts
    • Removed the import of fetchScorecardNames
    • Removed the call to fetchScorecardNames when fetching components from the Compass API
  • src/service.ts
    • Removed the buildBadges logic responsible for generating badges from scorecards
    • Added logic to populate the service.sends property with resolved dependencies
  • src/test/compass-api.test.ts
    • Removed the makeEmptyScorecardsResponse helper function
    • Removed all test calls to fetchScorecardNames
    • Deleted the entire test suite for 'API mode: scorecard badges integration'
  • src/test/plugin.test.ts
    • Added new assertions to verify that the service.sends property is correctly populated with dependencies for NodeGraph visualization
    • Added an assertion to confirm service.sends is undefined when no dependencies exist
    • Removed the entire test suite for 'scorecard-to-badge mapping'
Activity
  • The pull request was generated with Claude Code.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request effectively implements two main features: hiding scorecard badges to reduce noise in the static catalog and enabling dependency graph visualization by wiring DEPENDS_ON relationships to the sends property. The implementation is clean, and the changes are well-reflected in the updated tests. The capability to fetch scorecard data is thoughtfully preserved for custom template consumers. I've reviewed the changes and found no issues.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@IsmaelMartinez IsmaelMartinez merged commit 8c92d1c into main Feb 26, 2026
5 checks passed
@IsmaelMartinez IsmaelMartinez deleted the feat/hide-scorecards-wire-dependency-graph branch February 26, 2026 14:58
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.

1 participant