GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||
GeezerVison is showing github.com — fix(mobile): Composer says why Send is disabled after an attachment upload fails by mwolson · Pull Request #141 · mwolson/t3code Conversation
Owner
ProblemWhen an attachment upload fails in the mobile composer, Send turns gray and nothing on screen says why. The composer already has the reason ("Retry or remove the failed attachment") but sets it only as the Send button's accessibility label. A sighted user gets a small Retry pill on one thumbnail. With the composer collapsed and more than one attachment, the failed thumbnail can sit behind the "+1" counter, and a failed document has no thumbnail at all. To reproduce: attach two photos on a phone, have one upload fail (a dropped cellular connection does it), and try to send. Expected: the app says what is blocking Send, as the web composer does ("Retry or remove failed uploads before sending."). ChangeWhile a failed upload blocks Send, the composer shows that reason on a line inside the composer, collapsed or expanded, and outlines the failed thumbnail in red. The wording and the rule for when Send is blocked are unchanged. The reason VoiceOver already read out is now visible as well. ScopeA small fix for an obvious bug, so there is no issue: Send is blocked and the explanation the app already has never reaches the screen. The diff is 24 added lines in two mobile composer files. VerificationI hit this on an iPhone over 5G. One of two pasted images failed to upload, Send stayed gray, and the app looked hung until I noticed the Retry pill. Reproduced in the iOS Simulator (iPhone 18 Pro, iOS 27.0) with the dev client against an isolated dev server. The first photo uploaded normally. I then made the server's attachments directory read-only, so the second upload failed. Before the change, Send is gray with no explanation. After it, the line and the outline appear, and the line also shows in the collapsed composer, where the failed thumbnail was hidden behind "+1". Restoring the directory and tapping Retry uploads the photo, removes the line and the outline, and enables Send.
No test added: the change only renders a value the composer already computes, and the blocking logic is untouched. UpstreamOpen upstream as PR 38395 mobile-send-block-reason in
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Owner
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. 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. | |||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |