Skip to content

Use new @geneontology/web-components package on ribbon sandbox and COVID-19 pages #772

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

Merged
merged 1 commit into from
Aug 8, 2025

Conversation

pkalita-lbl
Copy link
Contributor

Fixes #771

These changes replace the old @geneontology/wc-ribbon package with the new @geneontology/web-components package. The changes affect three pages:

Ribbon Sandbox (https://geneontology.org/ribbon)

  • Replaced the old <wc-go-ribbon> element with new <go-annotation-ribbon> element.
  • Updated content of the "Additional Notes" section to point to new component documentation site.
  • General cleanup of layout and HTML.
  • Screenshot of updated page:
image

Ribbon docs page (https://geneontology.org/docs/ribbon.html)

  • Updated content of the "Under the hood" section to point to new docs site, GitHub repo, and NPM page.
  • Removed overly technical information that is covered by new docs site.

COVID-19 page (https://geneontology.org/covid-19.html)

  • Replaced the old <wc-ribbon-strips> element with new <go-annotation-ribbon-strips> element.
  • Remove unnecessary manual data fetching, which is the cause of the ribbons not loading correctly on the current page.
  • Screenshot of updated page:
image

@pkalita-lbl pkalita-lbl requested a review from Copilot August 7, 2025 17:45
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR modernizes the GO ribbon implementation by replacing the legacy @geneontology/wc-ribbon package with the new @geneontology/web-components package. The changes update component names, remove manual data fetching, and improve the styling and layout across three key pages.

Key changes:

  • Replace old web component elements with new standardized ones (<wc-go-ribbon><go-annotation-ribbon>, <wc-ribbon-strips><go-annotation-ribbon-strips>)
  • Remove manual API data fetching logic that was causing loading issues on the COVID-19 page
  • Update documentation to reference the new component package and documentation site

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
ribbon.html Updates ribbon sandbox page with new web component and improved responsive layout
js/ribbon.js Adds clearRibbon function for the updated ribbon interface
js/covid.js Removes manual data fetching logic and simplifies ribbon initialization
covid-19.html Replaces old ribbon components with new ones and removes unused styling
_sass/custom/_typography.scss Adds btn-no-radius CSS class for button styling
_includes/head.html Adds script tag to load the new web-components package
_docs/ribbon.md Updates documentation to reference new package and removes outdated technical details
Comments suppressed due to low confidence (1)

@pkalita-lbl pkalita-lbl requested a review from kltm August 7, 2025 17:46
@pkalita-lbl pkalita-lbl changed the title Use new web-components package on ribbon sandbox and COVID-19 pages Use new @geneontology/web-components package on ribbon sandbox and COVID-19 pages Aug 7, 2025
Copy link
Member

@kltm kltm left a comment

Choose a reason for hiding this comment

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

A refresh on the GO website to use the ribbon refresh as part of the new unified repository.

@pkalita-lbl I was pondering whether we should always be adding the instruction to follow the go-technical-announcements repository to follow, updates, roadmaps changes, formats, EoL announcements, etc. I'm still a little worried that we get uptake and then pull the rug out from under people? But then again, this is not a well trafficked page and this update is still better than the old wc-ribbon...

@kltm
Copy link
Member

kltm commented Aug 7, 2025

Talking to @pkalita-lbl , I think this is a great PR and can be merged at convenience.

@pkalita-lbl pkalita-lbl merged commit 8f252eb into master Aug 8, 2025
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.

Use unified component library on GO site
2 participants