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

feat: add feature flags to explorer #769

Merged
merged 4 commits into from
Feb 21, 2024
Merged

feat: add feature flags to explorer #769

merged 4 commits into from
Feb 21, 2024

Conversation

seve
Copy link
Contributor

@seve seve commented Feb 20, 2024

#741

This PR adds the ability to add and utilize feature flags in explorer.

Use ?spatial=true for testing, you should see a new button on the menu bar with a train icon

@seve seve requested a review from tihuan February 20, 2024 22:30
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unused file

Comment on lines -46 to -50
_onURLChanged(): void {
const { dispatch } = this.props;
dispatch({ type: "url changed", url: document.location.href });
}

Copy link
Contributor Author

@seve seve Feb 20, 2024

Choose a reason for hiding this comment

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

This action doesn't exist

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for deleting this!

@@ -329,6 +334,23 @@ class MenuBar extends React.PureComponent<{}, State> {
/>
</ButtonGroup>
) : null}
{isSpatial && (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

temp testing button

Copy link

codecov bot commented Feb 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e90792f) 77.70% compared to head (3477745) 77.70%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #769   +/-   ##
=======================================
  Coverage   77.70%   77.70%           
=======================================
  Files          88       88           
  Lines        6782     6782           
=======================================
  Hits         5270     5270           
  Misses       1512     1512           
Flag Coverage Δ
frontend 77.70% <ø> (ø)
javascript 77.70% <ø> (ø)
smokeTest ∅ <ø> (∅)
unitTest 77.70% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@tihuan tihuan left a comment

Choose a reason for hiding this comment

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

Looks really great! Thanks for adding this along with all the PR comments, Seve 🙏 Super helpful!

Comment on lines -46 to -50
_onURLChanged(): void {
const { dispatch } = this.props;
dispatch({ type: "url changed", url: document.location.href });
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for deleting this!

@@ -206,6 +206,9 @@ function QuickGene() {
itemDisabled={userDefinedGenesLoading ? () => true : () => false}
noResults={<MenuItem disabled text="No matching genes." />}
onItemSelect={(g) => {
// (seve): I made an attempt at typing this, but it looks like the type of g is not consistent with the type of the argument in onItemSelect
Copy link
Contributor

Choose a reason for hiding this comment

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

thanks for the comment!

@seve seve enabled auto-merge (squash) February 21, 2024 20:12
@seve seve merged commit b50116e into main Feb 21, 2024
6 of 7 checks passed
@seve seve deleted the seve/ff branch February 21, 2024 20:23
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