-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add beta tag to explorer with link to beta announcement (#3938)
- Loading branch information
Fran McDade
authored and
Fran McDade
committed
Apr 10, 2024
1 parent
34db2ca
commit 02c4e21
Showing
10 changed files
with
193 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { BannerPrimary as DXBannerPrimary } from "@clevercanary/data-explorer-ui/lib/components/common/Banner/components/BannerPrimary/bannerPrimary"; | ||
import styled from "@emotion/styled"; | ||
|
||
export const Banner = styled(DXBannerPrimary)` | ||
.MuiAlert-message { | ||
p { | ||
font: inherit; | ||
} | ||
a, | ||
.MuiLink-root { | ||
color: inherit; | ||
text-decoration: underline; | ||
&:hover { | ||
text-decoration: none; | ||
} | ||
} | ||
} | ||
`; |
1 change: 1 addition & 0 deletions
1
explorer/app/components/common/MDXContent/anvil-cmg/betaAnnouncement.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Welcome to our BETA release. Please see the [Beta Announcement](/beta-announcement) to learn more. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<Breadcrumbs | ||
breadcrumbs={[ | ||
{ path: "/", text: "AnVIL Data Explorer" }, | ||
{ path: "", text: "General Announcement" }, | ||
]} | ||
/> | ||
|
||
# General Announcement | ||
|
||
AnVIL is pleased to announce the public beta release of the AnVIL Data Explorer for Terra on Google Cloud Platform. The AnVIL Data Explorer is accessible at [https://explore.anvilproject.org/](https://explore.anvilproject.org). | ||
|
||
We are actively looking for your feedback! Please provide feedback via [https://help.anvilproject.org/](https://help.anvilproject.org). | ||
|
||
The AnVIL Data Explorer enables faceted searches of open and managed access datasets hosted in AnVIL, making it easier for researchers to find and custom-build cohorts. Documentation for using the AnVIL Data Explorer can be found [here](/guides). | ||
|
||
The AnVIL team is actively indexing more datasets, so the available datasets should grow every few weeks. | ||
|
||
At the time of this writing, known limitations of the AnVIL Data Explorer are: | ||
|
||
- Currently supports Terra on Google Cloud Platform. Support for Terra on Microsoft Azure is coming later this year. | ||
- Incomplete dataset descriptions and other supporting information. This information is limited and should be growing, which will increase the usefulness of the AnVIL Data Explorer. | ||
- Limited support for metadata export. This will evolve over time, but currently, some metadata is not handed off to Terra on GCP. We expect this to improve after the release. | ||
|
||
Currently, the General Availability release is targeted for around the middle of 2024. The timing will depend on the feedback and the nature of any issues discovered during this beta period. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { MDXComponents } from "mdx/types"; | ||
import * as C from "./app/components"; | ||
|
||
export function useMDXComponents(components: MDXComponents): MDXComponents { | ||
return { | ||
...components, | ||
a: ({ children, href }) => C.Link({ label: children, url: href ?? "" }), | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,95 +1,93 @@ | ||
import withMDX from "@next/mdx"; | ||
import nextMDX from "@next/mdx"; | ||
import withPlugins from "next-compose-plugins"; | ||
import path from "path"; | ||
|
||
export default withPlugins([withMDX], { | ||
basePath: process.env.NEXT_PUBLIC_BASE_PATH || "", | ||
images: { | ||
unoptimized: true, | ||
}, | ||
output: "export", | ||
reactStrictMode: true, | ||
staticPageGenerationTimeout: 120, | ||
webpack: (config) => { | ||
config.module = { | ||
...config.module, | ||
rules: [ | ||
...config.module.rules, | ||
{ | ||
test: /\.mdx?$/, | ||
use: [ | ||
{ | ||
loader: "@mdx-js/loader", | ||
}, | ||
], | ||
}, | ||
], | ||
}; | ||
// Add the alias for the peer dependency | ||
config.resolve.alias["@emotion/react"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/@emotion/react" | ||
); | ||
config.resolve.alias["@emotion/styled"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/@emotion/styled" | ||
); | ||
config.resolve.alias["@mui/icons-material"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/@mui/icons-material" | ||
); | ||
config.resolve.alias["@mui/material"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/@mui/material" | ||
); | ||
config.resolve.alias["@tanstack/react-table"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/@tanstack/react-table" | ||
); | ||
config.resolve.alias["axios"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/axios" | ||
); | ||
config.resolve.alias["react-dropzone"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/react-dropzone" | ||
); | ||
config.resolve.alias["isomorphic-dompurify"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/isomorphic-dompurify" | ||
); | ||
config.resolve.alias["match-sorter"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/match-sorter" | ||
); | ||
config.resolve.alias["next"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/next" | ||
); | ||
config.resolve.alias["react"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/react" | ||
); | ||
config.resolve.alias["react-dom"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/react-dom" | ||
); | ||
config.resolve.alias["react-gtm-module"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/react-gtm-module" | ||
); | ||
config.resolve.alias["react-window"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/react-window" | ||
); | ||
config.resolve.alias["uuid"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/uuid" | ||
); | ||
config.resolve.alias["validate.js"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/validate.js" | ||
); | ||
return config; | ||
}, | ||
const withMDX = nextMDX({ | ||
extension: /\.mdx?$/, | ||
}); | ||
|
||
export default withPlugins( | ||
[ | ||
withMDX, | ||
{ | ||
pageExtensions: ["md", "mdx", "ts", "tsx"], | ||
}, | ||
], | ||
{ | ||
basePath: process.env.NEXT_PUBLIC_BASE_PATH || "", | ||
images: { | ||
unoptimized: true, | ||
}, | ||
output: "export", | ||
reactStrictMode: true, | ||
staticPageGenerationTimeout: 120, | ||
webpack: (config) => { | ||
// Add the alias for the peer dependency | ||
config.resolve.alias["@emotion/react"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/@emotion/react" | ||
); | ||
config.resolve.alias["@emotion/styled"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/@emotion/styled" | ||
); | ||
config.resolve.alias["@mui/icons-material"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/@mui/icons-material" | ||
); | ||
config.resolve.alias["@mui/material"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/@mui/material" | ||
); | ||
config.resolve.alias["@tanstack/react-table"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/@tanstack/react-table" | ||
); | ||
config.resolve.alias["axios"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/axios" | ||
); | ||
config.resolve.alias["react-dropzone"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/react-dropzone" | ||
); | ||
config.resolve.alias["isomorphic-dompurify"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/isomorphic-dompurify" | ||
); | ||
config.resolve.alias["match-sorter"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/match-sorter" | ||
); | ||
config.resolve.alias["next"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/next" | ||
); | ||
config.resolve.alias["react"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/react" | ||
); | ||
config.resolve.alias["react-dom"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/react-dom" | ||
); | ||
config.resolve.alias["react-gtm-module"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/react-gtm-module" | ||
); | ||
config.resolve.alias["react-window"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/react-window" | ||
); | ||
config.resolve.alias["uuid"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/uuid" | ||
); | ||
config.resolve.alias["validate.js"] = path.resolve( | ||
process.cwd(), | ||
"node_modules/validate.js" | ||
); | ||
return config; | ||
}, | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { Main } from "@clevercanary/data-explorer-ui/lib/components/Layout/components/ContentLayout/components/Main/main"; | ||
import { ContentView } from "@clevercanary/data-explorer-ui/lib/views/ContentView/contentView"; | ||
import { GetStaticProps, InferGetStaticPropsType } from "next"; | ||
import { MDXRemote } from "next-mdx-remote"; | ||
import { ContentTheme } from "../../app/components/common/Content/components/ContentTheme/contentTheme"; | ||
import { MDX_COMPONENTS } from "../../app/content/common/constants"; | ||
import { getContentStaticProps } from "../../app/content/common/contentPages"; | ||
import NotFoundPage from "../404"; | ||
|
||
const slug = ["beta-announcement"]; | ||
|
||
export const getStaticProps: GetStaticProps = async () => { | ||
return getContentStaticProps({ params: { slug } }, "Beta Announcement"); | ||
}; | ||
|
||
const Page = ({ | ||
layoutStyle, | ||
mdxSource, | ||
}: InferGetStaticPropsType<typeof getStaticProps>): JSX.Element => { | ||
if (!mdxSource) return <NotFoundPage />; | ||
return ( | ||
<ContentView | ||
content={ | ||
<ContentTheme> | ||
<MDXRemote {...mdxSource} components={MDX_COMPONENTS} /> | ||
</ContentTheme> | ||
} | ||
layoutStyle={layoutStyle ?? undefined} | ||
/> | ||
); | ||
}; | ||
|
||
Page.Main = Main; | ||
|
||
export default Page; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters