Skip to content

Feature/download example#184

Open
rugeli wants to merge 6 commits intomainfrom
feature/download-example
Open

Feature/download example#184
rugeli wants to merge 6 commits intomainfrom
feature/download-example

Conversation

@rugeli
Copy link
Contributor

@rugeli rugeli commented Feb 27, 2026

Problem

What is the problem this work solves, including
closes #182

Solution

What I/we did to solve this problem

  • now two buttons are always visible but disabled/enabled based on job state
    • enabled when there's no job at all (initial load) or it succeeded
    • everything else is disabled (a job is running, starting, failed)

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Verify

  • open the preview site, for testing only, we have manually added output paths to some example recipes:
    • Peroxisome: doesn't have a outputs_directory field in its document, Download packing result button should be greyed out and Share should be enabled
    • Peroxisome + ER and Endosome have valid paths for outputs_directory, both download and share buttons should be enabled
    • if modify a editable field, the Re-run button should become enabled, after clicking Re-run, both download and share buttons should be disabled until the re-run packing job succeeds

Note: for the next step, we'll use our scripts and client configs to upload the current example recipes rather than inputing manually

@rugeli rugeli marked this pull request as ready for review February 27, 2026 22:54
@github-actions
Copy link

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 32.8% 663 / 2021
🔵 Statements 32.8% 663 / 2021
🔵 Functions 40.19% 41 / 102
🔵 Branches 73.46% 144 / 196
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
src/components/StatusBar/index.tsx 0% 0% 0% 0% 1-7, 9-13, 24-25, 27-28, 32-37, 39-42, 44-48, 50-56, 58-59, 62-71, 73-81, 83-90, 92-96, 98-102, 104, 106
src/constants/firebase.ts 100% 100% 100% 100%
src/state/store.ts 62.92% 67.64% 22.5% 62.92% 100, 112, 160, 190-191, 202, 206-213, 216-232, 254, 258, 263-267, 270-274, 277-281, 284-288, 291-294, 297-300, 303, 307-309, 312-314, 317-319, 322-325, 328-331, 334-344, 347-350, 354, 359, 362, 364, 366
src/types/index.ts 100% 100% 100% 100%
src/utils/aws.ts 0% 0% 0% 0% 1, 6-10, 12-15, 17-20, 22-27, 29-30, 32-36, 38-40, 42, 44-46, 48, 50-51, 53-55, 57-66, 68-76, 78-79, 81-85, 87-89
src/utils/firebase.ts 63.91% 75% 71.42% 63.91% 40-43, 82-92, 103-116, 127-128, 215-220, 223-233, 235-244, 246, 248-252, 254-259
Generated in workflow #243

@github-actions
Copy link

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://AllenCell.github.io/cellpack-client/pr-preview/pr-184/

Built to branch gh-pages at 2026-02-27 22:54 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Comment on lines +321 to +326
const useDefaultOutputDir = () => {
const manifest = useCurrentRecipeManifest();
const recipe = useCurrentRecipeData();
return (recipe && manifest?.defaultOutputDir) || "";
};

Copy link
Contributor Author

Choose a reason for hiding this comment

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

when no job runs, falls back to the initial recipe outputs

@rugeli rugeli requested review from ascibisz and interim17 February 27, 2026 23: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.

Enable Download packing result button for example recipes

1 participant