Repository navigation
Issue-184: Offer Build it when only the frames request failed - #235
Merged
Merged
Conversation
Offline, a resolved demo-pack object whose SPHEREx frame list is not cached answered 503 and the Flipbook's error state had no Build it. - Show Build it under the error when the object resolved. - Add unit tests for the error state. - Re-enable demoPackOffline.spec.ts, kill its whole server process tree, and install uv in the frontend e2e job so CI can run it. Closes #184 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
ronisahajoo
requested review from
JoottunAtish,
KevinYerkiah and
MintHerbs
as code owners
November 29, 2026 16:37
Collaborator
Author
|
Tested manually: the Build it button now works on every object I tried. |
The SwiftShader build on a CI runner outlasts the default 30 s test timeout, so both attempts failed while the pane was still building. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Collaborator
Author
|
CI failure on the first run and the follow-up
|
JoottunAtish
approved these changes
Nov 30, 2026
JoottunAtish
left a comment
Contributor
There was a problem hiding this comment.
Approved with nits. This covers all five "Done when" items in #184 with the frontend-only option A, so the contract is unchanged. status === 'error' && sky.resolved can only happen when frames gave up after a successful resolve, so a resolve failure and a coordinate search still get no button. The unit tests cover both cases. CI is green.
Nits (non-blocking, fine as a follow-up):
- Copy: under a 503
offline_cache_miss, the error still says "Try again in a moment", which never helps offline. A frames-specific line would read better, for example "The SPHEREx frames for this object couldn't be loaded. You can still build it in 3D." - The
ci.ymlpath filter: the offline spec now starts the backend and readsbackend/tests/fixtures/cache. Add the backend paths to the frontend filter, astesting.md's rule asks. - All 4 shards install
uv, but only one runs this spec. Consider gating it. demoPackOffline.spec.tskillTree: on Windowstaskkillcan throw if the process has already exited, which skips thermSyncof the temp cache. Wrap it in try/catch, or movermSyncinto afinally.- UML 08 could note that Build it is also offered under the frames error.
- Can
/framesreturn 404 for a resolved object? If so, "No object found" would sit next to Build it.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Closed
9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #184
Problem
Offline (
SX_OFFLINE=1), an object whose SPHEREx frame list is not cached answers 503offline_cache_miss. The Flipbook's error state had no Build it button, so a demo-pack object that resolved fine could not be built from the panel.Change
Flipbook.tsx: the error state shows the existing Build it button under the error when the object resolved, so only the frames request failed. This also covers other frames errors, not only offline ones.Flipbook.test.tsx(new): the button shows in that case, and not when the object did not resolve or there is nothing to build.demoPackOffline.spec.ts: back fromtest.fixmetotest.afterAllnow kills the whole process tree, so no uvicorn stays on port 8791.frontend.yml: the e2e job installsuv(same pin asbackend.yml) and runsuv sync --locked.testing.md: records the spec and the new CI step.The workflow and docs edits are outside
frontend/src/app/flipbook/; the issue's checklist needs them.Testing
demoPackOffline.spec.tspasses locally on Windows (1/1). No server was left listening on port 8791.typecheckpasses;linthas no errors (existing warnings only).npm test: 3391 passed, 4 failed, none in files changed here. Three inflyHeight.test.tsalso fail without this change. One infileNameCase.test.tsflagsstarCloseUp.ts/StarCloseUp.tsx, apparently because its allow list does not match Windows backslashes.Note
The frontend CI path filter does not cover all of
backend/(for examplebackend/tests/fixtures/cache), so a backend-only change could break this spec without the PR running it.🤖 Generated with Claude Code