Skip to content

Commit

Permalink
feat: add feature flags to explorer (#769)
Browse files Browse the repository at this point in the history
  • Loading branch information
seve authored Feb 21, 2024
1 parent e90792f commit b50116e
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 363 deletions.
4 changes: 4 additions & 0 deletions client/src/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { packDiffExPdu, DiffExMode, DiffExArguments } from "../util/diffexpdu";
import { track } from "../analytics";
import { EVENTS } from "../analytics/events";
import AnnoMatrix from "../annoMatrix/annoMatrix";
import { checkFeatureFlags } from "../util/featureFlags/featureFlags";

function setGlobalConfig(config: Config) {
/**
Expand Down Expand Up @@ -161,6 +162,9 @@ const doInitialDataLoad = (): ((
dispatch({ type: "initial data load start" });
if (!globals.API) throw new Error("API not set");

// check URL for feature flags
checkFeatureFlags();

try {
const s3URI = await s3URIFetch();
const oldPrefix = globals.updateAPIWithS3(s3URI);
Expand Down
8 changes: 0 additions & 8 deletions client/src/components/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,11 @@ interface Props {
class App extends React.Component<Props> {
componentDidMount(): void {
const { dispatch } = this.props;
/* listen for url changes, fire one when we start the app up */
window.addEventListener("popstate", this._onURLChanged);
this._onURLChanged();
dispatch(actions.doInitialDataLoad());
dispatch(actions.checkExplainNewTab());
this.forceUpdate();
}

_onURLChanged(): void {
const { dispatch } = this.props;
dispatch({ type: "url changed", url: document.location.href });
}

render(): JSX.Element {
const {
loading,
Expand Down
354 changes: 0 additions & 354 deletions client/src/components/geneExpression/menus/addGenes.tsx

This file was deleted.

Loading

0 comments on commit b50116e

Please sign in to comment.