Skip to content
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

Merged
merged 3 commits into from
May 3, 2024
Merged

[Clipclops] Moar error #3837

merged 3 commits into from
May 3, 2024

Conversation

estrattonbailey
Copy link
Member

@estrattonbailey estrattonbailey commented May 3, 2024

Review without whitespace: https://github.com/bluesky-social/social-app/pull/3837/files?diff=split&w=1

This PR introduces some new ConvoTypes, error-fatal (unused atm) and error-recoverable, which has a retry method and will probably be used differently from the fatal version (if we even need that). The idea is to insert a given ConvoError type into the flow of items.

This PR handles only failed history fetches. But imagine similar errors appearing above or below other messages.

CleanShot 2024-05-02 at 22 05 24@2x

Copy link

render bot commented May 3, 2024

Copy link

github-actions bot commented May 3, 2024

Old size New size Diff
6.86 MB 6.86 MB 1.12 KB (0.02%)

if (this.pastMessages.size > 0) {
await new Promise(y => setTimeout(y, 500))
}
if (this.headerItems.has(ConvoError.HistoryFailed)) return
Copy link
Member Author

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.

Copy link
Contributor

@haileyok haileyok left a 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 😅)

@estrattonbailey estrattonbailey merged commit 051e897 into main May 3, 2024
6 checks passed
estrattonbailey added a commit that referenced this pull request May 3, 2024
* 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)
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.

2 participants