keep icon indicating copy to clipboard operation
keep copied to clipboard

Error handling in UI is broken (ErrorComponent and ErrorBoundary)

Open talboren opened this issue 2 years ago â€ĸ 3 comments
trafficstars

Describe the bug Error handling in the UI is broken, a simple use case can be when the API is not reachable and we throw the "KeepApiError", the only thing that is shown on the screen is Keep's logo.

To Reproduce Steps to reproduce the behavior:

  1. Take down the API
  2. Start the UI
  3. Go to localhost:3000

Expected behavior Error should be presented beautifully with all the context that is possible and a clear CTA should be displayed (e.g. "Try Again")

Screenshots CleanShot 2023-11-08 at 14 30 57

talboren avatar Nov 08 '23 12:11 talboren

Hey @talboren , I wanted to take this issue. I will look around the code and let you know the solution approach.

TakshPanchal avatar Nov 23 '23 08:11 TakshPanchal

Hey @talboren , I wanted to take this issue. I will look around the code and let you know the solution approach.

Perfect @TakshPanchal, thank you! You can reach out to @shahargl who added the ErrorBoundary approach and consult with him.

talboren avatar Nov 23 '23 09:11 talboren

hey @TakshPanchal , any progress? want me to dive in?

shahargl avatar Nov 26 '23 09:11 shahargl

/bounty 50

Matvey-Kuk avatar Jun 06 '24 10:06 Matvey-Kuk

💎 $50 bounty â€ĸ Keep (YC W23)

Steps to solve:

  1. Start working: Comment /attempt #465 with your implementation plan
  2. Submit work: Create a pull request including /claim #465 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to keephq/keep!

Add a bounty â€ĸ Share on socials

Attempt Started (GMT+0) Solution
🔴 @ibishal Jun 6, 2024, 10:35:04 AM WIP
🔴 @TakshPanchal Jun 13, 2024, 10:38:09 AM WIP
🔴 @ezhil56x Jun 25, 2024, 8:34:52 PM WIP
đŸŸĸ @35C4n0r Jul 30, 2024, 4:28:18 PM #1534

algora-pbc[bot] avatar Jun 06 '24 10:06 algora-pbc[bot]

/attempt #465 can i get assigned with it ?

Algora profile Completed bounties Tech Active attempts Options
@ibishal 2 bounties from 2 projects
Rust, Scala,
TypeScript
Cancel attempt

ibishal avatar Jun 06 '24 10:06 ibishal

@ibishal: Reminder that in 4 days the bounty will become up for grabs, so please submit a pull request before then 🙏

algora-pbc[bot] avatar Jun 09 '24 10:06 algora-pbc[bot]

@ibishal is there any update from you, are you still working on this one.

35C4n0r avatar Jun 10 '24 06:06 35C4n0r

The bounty is up for grabs! Everyone is welcome to /attempt #465 🙌

algora-pbc[bot] avatar Jun 13 '24 10:06 algora-pbc[bot]

/attempt #465

Algora profile Completed bounties Tech Active attempts Options
@TakshPanchal 1 bounty from 1 project
Jupyter Notebook, JavaScript,
Python & more
Cancel attempt

TakshPanchal avatar Jun 13 '24 10:06 TakshPanchal

is it possible to discuss this on a meet @shahargl. I have some findings.

TakshPanchal avatar Jun 16 '24 04:06 TakshPanchal

@TakshPanchal: Reminder that in 4 days the bounty will become up for grabs, so please submit a pull request before then 🙏

algora-pbc[bot] avatar Jun 16 '24 10:06 algora-pbc[bot]

The bounty is up for grabs! Everyone is welcome to /attempt #465 🙌

algora-pbc[bot] avatar Jun 20 '24 10:06 algora-pbc[bot]

/attempt #465

Algora profile Completed bounties Tech Active attempts Options
@ezhil56x    7 keephq bounties
+ 27 bounties from 10 projects
JavaScript, TypeScript,
Java & more
īšŸ1258
Cancel attempt

ezhil56x avatar Jun 25 '24 20:06 ezhil56x

I am able to display error to user using error boundry. image

TakshPanchal avatar Jun 26 '24 02:06 TakshPanchal

@TakshPanchal Are you still working on this?

ezhil56x avatar Jun 26 '24 21:06 ezhil56x

Yes yes, I have created PR too

TakshPanchal avatar Jun 27 '24 00:06 TakshPanchal

@ezhil56x: Reminder that in 4 days the bounty will become up for grabs, so please submit a pull request before then 🙏

algora-pbc[bot] avatar Jun 28 '24 20:06 algora-pbc[bot]

The bounty is up for grabs! Everyone is welcome to /attempt #465 🙌

algora-pbc[bot] avatar Jul 02 '24 20:07 algora-pbc[bot]

I don't see any activity, I'm picking this up.

/attempt #465

Algora profile Completed bounties Tech Active attempts Options
@35C4n0r    14 keephq bounties
+ 10 bounties from 4 projects
Python, HTML,
JavaScript & more
Cancel attempt

35C4n0r avatar Jul 30 '24 16:07 35C4n0r

image

35C4n0r avatar Aug 04 '24 07:08 35C4n0r

💡 @35C4n0r submitted a pull request that claims the bounty. You can visit your bounty board to reward.

algora-pbc[bot] avatar Aug 04 '24 13:08 algora-pbc[bot]

🎉🎈 @35C4n0r has been awarded $50! 🎈🎊

algora-pbc[bot] avatar Aug 08 '24 14:08 algora-pbc[bot]