Skip to content

fix(spp_graduation): add web_icon to Graduation menu#99

Merged
emjay0921 merged 3 commits into19.0from
fix/graduation-icon-and-precommit
Mar 12, 2026
Merged

fix(spp_graduation): add web_icon to Graduation menu#99
emjay0921 merged 3 commits into19.0from
fix/graduation-icon-and-precommit

Conversation

@emjay0921
Copy link
Copy Markdown
Contributor

Why is this change needed?

The openspp-graduation-menu-icons.png file existed in spp_graduation/static/description/ but was not referenced by the Graduation root menu, so the menu had no icon.

Also fixes pre-existing README diffs for spp_aggregation, spp_metrics_core, and spp_metrics_services that were causing pre-commit CI failures on all PRs.

How was the change implemented?

  • Added web_icon attribute to the menu_graduation_root menuitem
  • Regenerated READMEs for 3 modules to match their updated DESCRIPTION.md files

New unit tests

Unit tests executed by the author

How to test manually

  1. Install spp_graduation
  2. Check the top-level Graduation menu displays the custom icon

Related links

…ting README diffs

- Added web_icon attribute to Graduation root menu to display the
  existing openspp-graduation-menu-icons.png icon
- Regenerated READMEs for spp_aggregation, spp_metrics_core, and
  spp_metrics_services to match updated DESCRIPTION.md content
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, 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 addresses a user interface inconsistency by ensuring the Graduation menu displays its intended icon. Concurrently, it resolves several documentation discrepancies across core modules by updating their README files, which also rectifies pre-commit CI failures related to outdated documentation.

Highlights

  • Graduation Menu Icon: The web_icon attribute was added to the menu_graduation_root menu item in spp_graduation to display the custom icon, which was previously unreferenced.
  • README Documentation Updates: The README files for spp_aggregation, spp_metrics_core, and spp_metrics_services were regenerated and updated to reflect current module descriptions and prevent pre-commit CI failures.
Changelog
  • spp_aggregation/README.rst
    • Updated the module's general description for clarity.
    • Revised the 'Key Capabilities' section to reflect current features.
    • Refined the 'Key Models' table with updated descriptions and removed the 'Type' column.
    • Modified the 'Configuration' instructions for better guidance.
    • Added a new 'UI Location' section.
    • Streamlined the 'Security' group access table.
    • Introduced an 'Extension Points' section outlining customization options.
  • spp_graduation/views/graduation_menus.xml
    • Added the web_icon attribute to the menu_graduation_root menu item, linking it to the openspp-graduation-menu-icons.png image.
  • spp_metrics_core/README.rst
    • Updated the module's general description to be more comprehensive.
    • Revised the 'Key Capabilities' section with updated feature descriptions.
    • Refined the 'Key Models' table with updated descriptions and removed the 'Type' column.
    • Modified the 'Configuration' instructions for clarity.
    • Added new 'UI Location', 'Security', and 'Extension Points' sections.
  • spp_metrics_services/README.rst
    • Updated the module's general description for improved clarity.
    • Revised the 'Key Capabilities' section with updated feature descriptions.
    • Refined the 'Key Models' table with updated descriptions and removed the 'Type' column.
    • Modified the 'Configuration' instructions for better guidance.
    • Added new 'UI Location', 'Security', and 'Extension Points' sections.
Activity
  • The author executed unit tests.
  • The author provided manual testing steps for spp_graduation installation and icon verification.
  • The author mentioned new unit tests, though no specific details were provided in the description.
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
Copy Markdown

@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 correctly adds the web_icon to the Graduation menu as intended. It also includes updates to several README files. While most of the documentation changes are fine, the spp_aggregation/README.rst file contains a formatting error in the 'Key Models' table that breaks the reStructuredText syntax and will likely cause rendering issues. I've added a specific comment with details on how to address this.

Comment thread spp_aggregation/README.rst Outdated
Comment on lines +61 to +66
| `` | Abstract service: resolves |
| spp.aggregation.scope.resolver`` | scopes to registrant IDs |
+----------------------------------+----------------------------------+
| ``spp. | Abstract service: dispatches |
| aggregation.statistic.registry`` | statistic computation |
+----------------------------------+----------------------------------+
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The Key Models table has formatting issues that will likely cause rendering problems. The backticks (``) for code formatting are split across lines for spp.aggregation.scope.resolver and `spp.aggregation.statistic.registry`, which is invalid reStructuredText syntax.

Since this file is auto-generated, the root cause is likely in the generator script. A proper fix would be to adjust the script to handle long model names correctly, either by widening the table column or by ensuring the content within the backticks is wrapped correctly. A simpler, immediate fix would be to remove the code formatting for these two long model names.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.39%. Comparing base (31cf2d2) to head (7f3f047).
⚠️ Report is 4 commits behind head on 19.0.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             19.0      #99   +/-   ##
=======================================
  Coverage   70.39%   70.39%           
=======================================
  Files         674      674           
  Lines       37005    37005           
=======================================
  Hits        26051    26051           
  Misses      10954    10954           
Flag Coverage Δ
spp_aggregation 85.06% <ø> (ø)
spp_api_v2_gis 71.52% <ø> (ø)
spp_api_v2_simulation 69.61% <ø> (ø)
spp_base_common 90.26% <ø> (ø)
spp_case_graduation 97.77% <ø> (ø)
spp_dci_demo 69.23% <ø> (ø)
spp_graduation 93.45% <ø> (ø)
spp_metrics_core 97.29% <ø> (ø)
spp_metrics_services 88.31% <ø> (ø)
spp_mis_demo_v2 69.82% <ø> (ø)
spp_programs 45.51% <ø> (ø)
spp_security 66.66% <ø> (ø)
spp_simulation 70.08% <ø> (ø)
spp_statistic 77.31% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Table column widths differ between macOS and Linux docutils rendering.
Adjusted to match CI-generated output exactly.
…c, spp_statistic_studio

These modules have DESCRIPTION.md files but their generated README.rst
files were not committed, causing CI check-in step to fail.
@emjay0921 emjay0921 merged commit 4854031 into 19.0 Mar 12, 2026
29 checks passed
@emjay0921 emjay0921 deleted the fix/graduation-icon-and-precommit branch March 12, 2026 07:49
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.

2 participants