Repository navigation
fix(play): a framing page can say that a file did not come, and the page asks the person for it (#106) - #107
Merged
Merged
Conversation
…age then asks the person for it (#106)
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
…e, and with the question shown (#106)
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 #106. Part of missing-elements/h5p-toolkit#210.
Where a card cannot bring a file the page asked it for, the page waited on with nothing said. The app server's card now says so (h5p-toolkit#271), and the page takes it.
What a person sees now
For the page that frames this one
{ type: 'failed', name }The row's words are those the page already has for a file it fetches itself, in a tab of its own: one function says both now.
Checked
By hand, as this repository has no page tests: the built site served locally, framed by a page of another origin acting as a card, its frame sandboxed.
progressand thenfailed(light at 720 px, dark at 360 px)progressand thenfailed(light at 720 px, dark at 360 px)npm run buildpasses. Screenshots of both views looked at.Not verified
Summary by cubic
Handles a
failedmessage from a framing page so the play page no longer waits silently when a file it asked for did not come. For a download, the row under the stage explains and shows "Try again"; for a file needed to build the activity, the page asks the person to choose it from their computer, noting it stays in their browser. Both apply whether or not any of the file came first, and even when the question is shown already.Written for commit 611edcd. Summary will update on new commits.