Skip to content

send JSON object in body instead of uploading edited recipe#174

Draft
ascibisz wants to merge 3 commits intomainfrom
feature/pass-json-recipe
Draft

send JSON object in body instead of uploading edited recipe#174
ascibisz wants to merge 3 commits intomainfrom
feature/pass-json-recipe

Conversation

@ascibisz
Copy link
Contributor

@ascibisz ascibisz commented Jan 14, 2026

Problem

In an effort to improve the efficiency of our packings, we want to remove the step where we're posting the edited recipe to firebase from the client and instead send the edited recipe JSON to the server in the body of the POST request, and then the server will handle any necessary firebase interactions.

Part of this ticket

Solution

This PR sends the edited recipe in the body of the POST request.

WARNING: Right now, this is just for use with testing!! We need the server to be able to read the recipe from the body of the request before we can merge this!!

@github-actions
Copy link

github-actions bot commented Jan 14, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 34.36% 675 / 1964
🔵 Statements 34.36% 675 / 1964
🔵 Functions 40.59% 41 / 101
🔵 Branches 73.89% 150 / 203
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
src/App.tsx 0% 0% 0% 0% 1-5, 13-16, 18, 20-21, 23-25, 27-32, 34, 36-38, 40-46, 48-62, 64-81, 83-91, 93-112, 116, 118-137, 139-143, 145-149, 151-170, 172, 174
src/components/InputSwitch/index.tsx 0% 0% 0% 0% 1-2, 9-11, 27-28, 30-33, 37, 40-42, 44-55, 58, 61-63, 65-68, 70-74, 76-83, 85-122, 124, 126-144, 146, 148-155, 157, 159, 161-173, 175-177, 179
src/constants/aws.ts 0% 100% 100% 0% 2, 5, 7-20, 22-24, 26-28, 31-37
src/constants/firebase.ts 100% 100% 100% 100%
src/state/store.ts 63.98% 67.64% 23.07% 63.98% 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-324, 327-337, 340-343, 347, 352, 355, 357, 359
src/utils/firebase.ts 63.87% 73.91% 71.42% 63.87% 40-43, 82-92, 103-116, 119-123, 134-135, 220-230, 232-241, 243, 245-249, 251-256
src/utils/recipeLoader.ts 95.98% 92.04% 100% 95.98% 21, 29-30, 41, 56-57, 61-62, 201-202, 344-345
Generated in workflow #242

@github-actions
Copy link

github-actions bot commented Jan 14, 2026

PR Preview Action v1.8.1

QR code for preview link

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

Built to branch gh-pages at 2026-02-25 21:16 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

ascibisz and others added 3 commits February 25, 2026 13:12
* set retention for job status to 30 days, update job status timestamp on read, and misc bug fixes

* code cleanup
* remove irrelevant gradient data from final recipe string

* round radius to 2 decimal points

* update test file to remove unnecessary gradients

* copilot suggestions
@ascibisz ascibisz force-pushed the feature/pass-json-recipe branch from 00f3d24 to 38be27f Compare February 25, 2026 21:16
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.

1 participant