-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Clipclops] Moar error #3837
[Clipclops] Moar error #3837
Conversation
Your Render PR Server URL is https://social-app-pr-3837.onrender.com. Follow its progress at https://dashboard.render.com/web/srv-coq56lq1hbls73fl8mu0. |
|
if (this.pastMessages.size > 0) { | ||
await new Promise(y => setTimeout(y, 500)) | ||
} | ||
if (this.headerItems.has(ConvoError.HistoryFailed)) return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should only ever be one of these since I'm using the ConvoError
as the key, so I'm thinking this should be safe. Alternatively we could add other booleans to the class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Styling parts LGTM! We'll probably want to change how the bottom error button looks too with this one in mind (right now it's just a button 😅)
* origin/main: make service url gate friendlier (#3841) remove broken keyboard offset code (#3842) [Clipclops] Header tweaks (#3839) update date logic to account for timezones (#3840) [Clipclops] Moar error (#3837) [Session] Reset global agent on expire (#3838) [Session] Rely on agent session change event for persisting resumed session (#3836)
Review without whitespace: https://github.com/bluesky-social/social-app/pull/3837/files?diff=split&w=1
This PR introduces some new
ConvoType
s,error-fatal
(unused atm) anderror-recoverable
, which has aretry
method and will probably be used differently from the fatal version (if we even need that). The idea is to insert a givenConvoError
type into the flow of items.This PR handles only failed history fetches. But imagine similar errors appearing above or below other messages.