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

Don't render ActionBarView during loading #4612

Merged
merged 4 commits into from
May 12, 2020
Merged

Conversation

philippotto
Copy link
Member

@philippotto philippotto commented May 12, 2020

This kills two birds with one stone: The action bar view doesn't show incorrect data during loading anymore (e.g., invalid position). Additionally, the sharing modals are not instantiated before loading which avoids trying to load sharing tokens for the dummy dataset which the store holds initially (which always fails).

URL of deployed dev instance (used for testing):

Steps to test:

  • load a dataset or tracing
  • ensure that the action bar is there after loading
  • check the network tab that no bogus sharing token requests were performed

Issues:


@philippotto philippotto self-assigned this May 12, 2020
Copy link
Member Author

@philippotto philippotto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@daniel-wer I recommend to enable the Hide whitespace changes setting in github.

@@ -287,8 +287,8 @@ class DatasetInfoTabView extends React.PureComponent<Props> {

return (
<div className="flex-overflow">
<p>{annotationTypeLabel}</p>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This produced a warning because p tags shouldn't contain divs.

Copy link
Member

@daniel-wer daniel-wer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, very elegant 👍

@philippotto philippotto merged commit acb0079 into master May 12, 2020
@daniel-wer daniel-wer deleted the avoid-token-errors branch June 3, 2020 08:28
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.

Hide most action bar entries during initialization
2 participants