Skip to content

Conversation

@xuang7
Copy link
Contributor

@xuang7 xuang7 commented Dec 7, 2025

What changes were proposed in this PR?

This PR adds support for dataset owners to set a custom cover image from files within their dataset. This improves visual presentation and makes datasets easier to recognize on the hub/home page.

Changes:

  • Database:

    • Added a cover_image column to the dataset table.
    • Stores cover image as {dvid}/{relative_path} format (e.g., v1/demo.png)
  • Backend:

    • POST /api/dataset/{did}/update/cover – Set cover image
    • Validates the cover image size is below coverSizeLimit (default: 10 MB)
  • Frontend:

    • Adds a “Set as Cover” button next to image files in the version file tree, button only visible for image file (.jpg, .jpeg, .png, .gif, .webp)
      set_icon
    • The hub/home page loads cover images from /api/dataset/file using the stored cover_image path.

Public datasets display:

Before (default cover) After (customized cover)
before after

Any related issues, documentation, discussions?

Closes #4115

How was this PR tested?

Tested manually.

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude for code review

@github-actions github-actions bot added feature ddl-change Changes to the TexeraDB DDL frontend Changes related to the frontend GUI service labels Dec 7, 2025
@xuang7 xuang7 marked this pull request as ready for review December 7, 2025 06:57
@xuang7 xuang7 changed the title Add custom cover image support for datasets feat: add custom cover image support for datasets Dec 7, 2025
@chenlica
Copy link
Contributor

chenlica commented Dec 7, 2025

@aicam please review it first before @aglinxinyuan does it.

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

Labels

ddl-change Changes to the TexeraDB DDL feature frontend Changes related to the frontend GUI service

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add custom cover image support for datasets

2 participants