Skip to content

Commit

Permalink
feat: change path urls from /analyze to /analysis and port /analysis …
Browse files Browse the repository at this point in the history
…to /analysis/legacy
  • Loading branch information
kevinjosethomas committed Jan 22, 2025
1 parent cff9625 commit 31bbc4a
Show file tree
Hide file tree
Showing 6 changed files with 995 additions and 993 deletions.
6 changes: 3 additions & 3 deletions src/components/Analysis/ConfigureAnalysis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const ConfigureAnalysis: React.FC<Props> = ({
<p className="text-sm text-secondary">Analyze using:</p>
<select
value={currentMaiaModel}
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"
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"
onChange={(e) => setCurrentMaiaModel(e.target.value)}
>
{MAIA_MODELS.map((model) => (
Expand All @@ -34,12 +34,12 @@ export const ConfigureAnalysis: React.FC<Props> = ({
</div>
<ContinueAgainstMaia
launchContinue={launchContinue}
background="bg-human-4/40 hover:bg-human-4/60 text-primary/70 hover:text-primary"
background="bg-human-4/60 hover:bg-human-4/80 text-primary/70 hover:text-primary"
/>
<p className="mt-2 text-sm text-secondary">
If you are having performance issues, you can switch to our legacy{' '}
<Link
href={window.location.href.replace('/analyze', '/analysis')}
href={window.location.href.replace('/analysis', '/analysis/legacy')}
className="text-primary/80 underline transition duration-200 hover:text-primary/100"
>
Analysis Lite
Expand Down
4 changes: 1 addition & 3 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ import { Footer, Compose, ErrorBoundary, Header } from 'src/components'

function MaiaPlatform({ Component, pageProps }: AppProps) {
const router = useRouter()
const isAnalysisPage =
router.pathname.startsWith('/analysis') ||
router.pathname.startsWith('/analyze')
const isAnalysisPage = router.pathname.startsWith('/analysis')

return (
<Compose
Expand Down
Loading

0 comments on commit 31bbc4a

Please sign in to comment.