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

Improve error reporting on jbrowse-web start screen when user attempts to open a broken recent session #3198

Merged
merged 4 commits into from
Sep 20, 2022

Conversation

carolinebridge
Copy link
Contributor

  • removes deprecated prop ("raised") on listItem to fix a console error
  • sets a message for the user instead of throwing an error on the front end that was causing a crash if the user attempted to open a "Recent session" that cannot be loaded

…ead of throwing an error that crashes the application if the user clicks a session that cannot be loaded
@carolinebridge carolinebridge added the bug Something isn't working label Sep 19, 2022
@codecov
Copy link

codecov bot commented Sep 19, 2022

Codecov Report

Merging #3198 (1c98794) into main (ebd548c) will increase coverage by 0.06%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##             main    #3198      +/-   ##
==========================================
+ Coverage   59.48%   59.54%   +0.06%     
==========================================
  Files         671      670       -1     
  Lines       28734    28717      -17     
  Branches     6968     6968              
==========================================
+ Hits        17092    17100       +8     
+ Misses      11320    11296      -24     
+ Partials      322      321       -1     
Impacted Files Coverage Δ
products/jbrowse-web/src/StartScreen.tsx 53.12% <66.66%> (+2.33%) ⬆️
products/jbrowse-web/src/RecentSessionCard.tsx
packages/core/util/layouts/GranularRectLayout.ts 87.28% <0.00%> (+0.42%) ⬆️
...FeatureRenderer/components/ProcessedTranscript.tsx 88.73% <0.00%> (+1.40%) ⬆️
...gins/svg/src/SvgFeatureRenderer/components/util.ts 95.91% <0.00%> (+4.08%) ⬆️
...src/SvgFeatureRenderer/components/FeatureLabel.tsx 86.11% <0.00%> (+5.55%) ⬆️
...svg/src/SvgFeatureRenderer/components/Segments.tsx 92.85% <0.00%> (+7.14%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@cmdcolin
Copy link
Collaborator

looks good.

might also be worth using the @jbrowse/core/ui/ErrorMessage component and giving user actual error message in this case

@cmdcolin
Copy link
Collaborator

could also be good to typescriptify the RecentSessionCards to tsx

@cmdcolin cmdcolin changed the title Fix crash on start screen when user attempts to open a broken recent session Fix crash on jbrowse-web start screen when user attempts to open a broken recent session Sep 20, 2022
@cmdcolin cmdcolin changed the title Fix crash on jbrowse-web start screen when user attempts to open a broken recent session Better error reporting on jbrowse-web start screen when user attempts to open a broken recent session Sep 20, 2022
@cmdcolin cmdcolin merged commit aaa5080 into main Sep 20, 2022
@cmdcolin cmdcolin deleted the fix-crash-start-screen branch September 20, 2022 23:07
cmdcolin pushed a commit that referenced this pull request Sep 30, 2022
… to open a broken recent session (#3198)

* removes deprecated prop on listitem, sets a message for the user instead of throwing an error that crashes the application if the user clicks a session that cannot be loaded

* tsx update and change start screen to use internal error message

* lint

* displays full error message instead of custom message
@cmdcolin cmdcolin changed the title Better error reporting on jbrowse-web start screen when user attempts to open a broken recent session Improve error reporting on jbrowse-web start screen when user attempts to open a broken recent session Oct 3, 2022
@cmdcolin cmdcolin added enhancement New feature or request and removed bug Something isn't working labels Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants