Skip to content

Conversation

@Smeds
Copy link
Collaborator

@Smeds Smeds commented Oct 24, 2025

Description

This pull-request will make it possible to display organism images

Select workflow page

Screenshot from 2025-10-21 09-05-45

Assembly Table page

Screenshot from 2025-10-21 09-05-29

Organism Table page

Screenshot from 2025-10-21 09-05-09

Please feel free to make updates to formatting. And if someone could create a better looking missing_image file.

Related Issue

Handle issue #937

@Smeds
Copy link
Collaborator Author

Smeds commented Oct 24, 2025

I will add an screenshot of the information popup on monday

@Smeds
Copy link
Collaborator Author

Smeds commented Oct 27, 2025

Screenshot from 2025-10-27 08-49-20

@Smeds
Copy link
Collaborator Author

Smeds commented Oct 27, 2025

@NoopDog It would be great if we could have this looked at during this week. We said that for Genomic Informatics we would have the site in beta stage, and it would be nice to have some changes added between alpha and beta.

@Smeds Smeds linked an issue Oct 27, 2025 that may be closed by this pull request
@NoopDog NoopDog requested a review from frano-m October 29, 2025 07:08
@NoopDog
Copy link
Collaborator

NoopDog commented Oct 29, 2025

@Smeds can you provide some instructions how to run this to get the images?

@Smeds
Copy link
Collaborator Author

Smeds commented Oct 29, 2025

@Smeds can you provide some instructions how to run this to get the images?

@NoopDog To build everything you will have to follow these commands

#Fetch images
npm run fetch-ga2-organism-images
# add image information to intermediate files
npm run build-ga2-from-ncbi
# create final json files with image information
npm run build-ga2-db

@Smeds Smeds requested a review from frano-m October 30, 2025 18:59
@Smeds
Copy link
Collaborator Author

Smeds commented Nov 10, 2025

@NoopDog Did you manage to run the commands?

@Smeds
Copy link
Collaborator Author

Smeds commented Nov 17, 2025

@NoopDog we will do a short demo if GenomeArk on the next VGP meeting on Friday. Do you think someone could look at this feature before that?

@Smeds
Copy link
Collaborator Author

Smeds commented Dec 1, 2025

@NoopDog Have you had time to test the performance?

Copy link
Contributor

@MillenniumFalconMechanic MillenniumFalconMechanic left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

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 adds organism image display functionality to the GA2 catalog, allowing organism avatars to be shown on the Select workflow, Assembly Table, and Organism Table pages. The implementation includes:

  • Scripts to fetch images from Wikimedia Commons and store them in an S3 bucket
  • Integration of image metadata (URL, credit, license, source) into the build pipeline
  • React components to display organism images as thumbnails and full-size with attribution
  • Database schema updates to include image-related fields

Key Changes

  • Python build scripts to fetch and process organism images from Wikimedia Commons
  • TypeScript build updates to include image metadata in catalog entities
  • React OrganismAvatar component with thumbnail and full-size display modes
  • Configuration updates to add organism image columns to tables

Reviewed changes

Copilot reviewed 22 out of 30 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
site-config/ga2/category.ts Adds organism avatar category keys and labels (contains typo)
site-config/ga2/local/index/organism/columnDefs.ts Defines organism image column configuration (contains typo)
site-config/ga2/local/index/genome/columnDefs.ts Defines organism image column for genome table (contains typo)
catalog/py_package/catalog_build/build.py Adds image path mapping logic (has duplicate assignment)
catalog/ga2/build/py/select_images_for_organism.py Interactive tool to select organism images from Wikimedia
catalog/ga2/build/py/fetch_images_from_bucket.py Downloads images from S3-compatible storage
catalog/ga2/build/ts/build-catalog.ts Integrates image data into catalog build
app/components/Entity/components/OrganismAvatar/* React component for displaying organism images
app/apis/catalog/ga2/entities.ts Adds ImageData interface and image fields

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@NoopDog NoopDog merged commit 57b6fa6 into galaxyproject:main Dec 4, 2025
4 checks passed
@github-project-automation github-project-automation bot moved this from Read For Review to Done in GA2 Development Tasks Dec 4, 2025
@Smeds
Copy link
Collaborator Author

Smeds commented Dec 4, 2025

I'm test building everything now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

[GA2] Add Organism image to tables and select workflow page

4 participants