Skip to content

Commit

Permalink
chore: Seurat deprecation instructions analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloster committed Nov 22, 2024
1 parent 9b168ef commit 2730d09
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/src/common/analytics/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export enum EVENTS {
DOWNLOAD_DATA_COMPLETE = "DOWNLOAD_DATA_COMPLETE",
DOWNLOAD_DATA_COPY = "DOWNLOAD_DATA_COPY",
DOWNLOAD_DATA_FORMAT_CLICKED = "DOWNLOAD_DATA_FORMAT_CLICKED",
DOWNLOAD_DATA_SEURAT_DEPRECATION_CLICKED = "DOWNLOAD_DATA_SEURAT_DEPRECATION_CLICKED",
HOMEPAGE_SEC_NAV_DE = "HOMEPAGE_SEC_NAV_DE",
HOMEPAGE_SEC_NAV_CENSUS = "HOMEPAGE_SEC_NAV_CENSUS",
HOMEPAGE_SEC_NAV_CELL_GUIDE = "HOMEPAGE_SEC_NAV_CELL_GUIDE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import {
StyledLink,
TextWrapper,
} from "./style";
import { track } from "src/common/analytics";
import { EVENTS } from "src/common/analytics/events";

export const PROMPT_TEXT =
"Select one of the data formats to view its download details.";
Expand Down Expand Up @@ -56,7 +58,16 @@ const Details: FC<Props> = ({
<TextWrapper>
Seurat support will be removed between Nov 15 - Dec 31, 2024. You
can download and convert the .h5ad yourself by following these {""}
<StyledLink href={DOC_SITE_URL}>instructions</StyledLink>.
<StyledLink
href={DOC_SITE_URL}
target="_blank"
onClick={() =>
track(EVENTS.DOWNLOAD_DATA_SEURAT_DEPRECATION_CLICKED)
}
>
instructions
</StyledLink>
.
</TextWrapper>
</SeuratNotice>
)}
Expand Down

0 comments on commit 2730d09

Please sign in to comment.