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

Replace Create Explorative buttons by Links #4410

Closed
wants to merge 7 commits into from

Conversation

fm3
Copy link
Member

@fm3 fm3 commented Jan 17, 2020

URL of deployed dev instance (used for testing):

Steps to test:

  • in dashboard, the create tracing links should actually be links now (should work with “open in new tab”
  • in view mode, the blue button should behave like that too. (Also, it should not show the fallback-layer dropdown if there is no segmentation layer in the first place)

Issues:


  • Ready for review

@fm3 fm3 requested a review from philippotto January 17, 2020 09:18
@fm3 fm3 self-assigned this Jan 17, 2020
@fm3 fm3 added the frontend label Jan 17, 2020
@fm3
Copy link
Member Author

fm3 commented Jan 17, 2020

@philippotto Could you have a look if this is a sensible way of doing this? Also, I don’t know how to combat the flow errors in router.js (all the things parsed from the url can be null or undefined, apparently)

frontend/javascripts/router.js Show resolved Hide resolved
to={`/datasets/${dataset.owningOrganization}/${
dataset.name
}/createExplorative/${type}/true`}
title={`Create ${typeCapitalized} Tracing`}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
title={`Create ${typeCapitalized} Tracing`}
title={`Create ${typeCapitalized} Annotation`}

to={`/datasets/${dataset.owningOrganization}/${
dataset.name
}/createExplorative/${type}/false`}
title={`Create ${typeCapitalized} Tracing`}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
title={`Create ${typeCapitalized} Tracing`}
title={`Create ${typeCapitalized} Annotation`}

@@ -428,6 +434,42 @@ class ReactRouter extends React.Component<Props> {
/>
)}
/>
<Route
Copy link
Member

Choose a reason for hiding this comment

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

I recommend SecuredRoute

@fm3
Copy link
Member Author

fm3 commented Feb 18, 2020

superseded by new implementation in #4439

@fm3 fm3 closed this Feb 18, 2020
@fm3 fm3 deleted the create-explorative-links branch March 20, 2020 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Middle-click "create tracing" links
3 participants