ui: fix dead links in dashboard, update theme to teal/cyan

- Fix broken /trials links to use study-scoped routes
- Fix /wizard/ link to proper wizard URL with studyId
- Add studyId to getLiveTrials API response
- Update theme colors to teal/cyan sci-fi style
- Add custom CSS utilities for glow effects and chamfered corners
- Consolidate docs and archive outdated files
This commit is contained in:
2026-03-22 16:49:20 -04:00
parent cf3597881b
commit 37feea8df3
3 changed files with 151 additions and 108 deletions

View File

@@ -239,7 +239,7 @@ export default function DashboardPage() {
className="group h-auto justify-start px-4 py-4"
asChild
>
<Link href="/trials">
<Link href={userStudies[0] ? `/studies/${userStudies[0].id}/trials` : "/studies"}>
<div className="mr-4 rounded-full bg-emerald-500/10 p-2">
<Activity className="h-5 w-5 text-emerald-600" />
</div>
@@ -353,7 +353,7 @@ export default function DashboardPage() {
</CardDescription>
</div>
<Button variant="ghost" size="sm" asChild>
<Link href="/trials">
<Link href={userStudies[0] ? `/studies/${userStudies[0].id}/trials` : "/studies"}>
View All <ArrowRight className="ml-2 h-4 w-4" />
</Link>
</Button>
@@ -367,7 +367,7 @@ export default function DashboardPage() {
No trials are currently running.
</p>
<Button variant="link" size="sm" asChild className="mt-1">
<Link href="/trials">Start a Trial</Link>
<Link href={userStudies[0] ? `/studies/${userStudies[0].id}/trials/new` : "/studies"}>Start a Trial</Link>
</Button>
</div>
) : (
@@ -404,7 +404,7 @@ export default function DashboardPage() {
className="bg-primary hover:bg-primary/90 gap-2"
asChild
>
<Link href={`/wizard/${trial.id}`}>
<Link href={`/studies/${trial.studyId}/trials/${trial.id}/wizard`}>
<Play className="h-3.5 w-3.5" /> Spectate / Jump In
</Link>
</Button>