AlexsLemonade / scpca-portal

Single-cell Pediatric Cancer Atlas Portal is a growing database of uniformly processed single-cell data from pediatric cancer tumors and model systems
https://scpca.alexslemonade.org
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Add the metadata download on project level #736

Closed nozomione closed 2 days ago

nozomione commented 1 month ago

Context

Design handoff: https://github.com/AlexsLemonade/scpca-portal/issues/701

On the portal, we are going to provide users with a metadata-only download option by adding buttons to the project card and the samples table.

During the file download, the download modal UI should display metadata-only download content.

Problem or idea

Based on the design, we'll implement metadata-only download buttons on projects and display metadata-only download content in the download modal.

Solution or next step

davidsmejia commented 1 month ago

Looking at the Comps, I don't think we need to change to say Sample everywhere so let's only address appending Metadata to the title and leave the rest as it will render already.

Suggestion for next steps:

Solution or next step

davidsmejia commented 1 month ago

Metadata only download is available on staging. Note that modality and format may be undefined which is something you might need to account for when rendering contents.

        {
            "created_at": "2024-06-11T13:57:23.470755Z",
            "format": null,
            "has_bulk_rna_seq": false,
            "has_cite_seq_data": false,
            "has_multiplexed_data": false,
            "id": 21011,
            "includes_merged": false,
            "metadata_only": true,
            "modality": null,
            "project": "SCPCP000001",
            "s3_bucket": "scpca-portal-deployer-staging",
            "s3_key": "SCPCP000001_all_metadata.zip",
            "sample": null,
            "size_in_bytes": 21528,
            "updated_at": "2024-06-11T13:57:23.470782Z",
            "workflow_version": "v0.8.0"
        },
davidsmejia commented 2 days ago

closed with #769