Skip to content

Commit 31bbc4a

Browse files
feat: change path urls from /analyze to /analysis and port /analysis to /analysis/legacy
1 parent cff9625 commit 31bbc4a

File tree

6 files changed

+995
-993
lines changed

6 files changed

+995
-993
lines changed

src/components/Analysis/ConfigureAnalysis.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const ConfigureAnalysis: React.FC<Props> = ({
2222
<p className="text-sm text-secondary">Analyze using:</p>
2323
<select
2424
value={currentMaiaModel}
25-
className="cursor-pointer rounded border-none bg-human-4/40 p-2 text-primary/70 outline-none transition duration-300 hover:bg-human-4/60 hover:text-primary"
25+
className="cursor-pointer rounded border-none bg-human-4/60 p-2 text-primary/70 outline-none transition duration-300 hover:bg-human-4/80 hover:text-primary"
2626
onChange={(e) => setCurrentMaiaModel(e.target.value)}
2727
>
2828
{MAIA_MODELS.map((model) => (
@@ -34,12 +34,12 @@ export const ConfigureAnalysis: React.FC<Props> = ({
3434
</div>
3535
<ContinueAgainstMaia
3636
launchContinue={launchContinue}
37-
background="bg-human-4/40 hover:bg-human-4/60 text-primary/70 hover:text-primary"
37+
background="bg-human-4/60 hover:bg-human-4/80 text-primary/70 hover:text-primary"
3838
/>
3939
<p className="mt-2 text-sm text-secondary">
4040
If you are having performance issues, you can switch to our legacy{' '}
4141
<Link
42-
href={window.location.href.replace('/analyze', '/analysis')}
42+
href={window.location.href.replace('/analysis', '/analysis/legacy')}
4343
className="text-primary/80 underline transition duration-200 hover:text-primary/100"
4444
>
4545
Analysis Lite

src/pages/_app.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ import { Footer, Compose, ErrorBoundary, Header } from 'src/components'
2121

2222
function MaiaPlatform({ Component, pageProps }: AppProps) {
2323
const router = useRouter()
24-
const isAnalysisPage =
25-
router.pathname.startsWith('/analysis') ||
26-
router.pathname.startsWith('/analyze')
24+
const isAnalysisPage = router.pathname.startsWith('/analysis')
2725

2826
return (
2927
<Compose

0 commit comments

Comments
 (0)