Skip to content

AutoShorts is a local-first desktop application for turning long-form video or audio recordings into high-impact, vertical short-form clip candidates (9:16 portrait) with AI-powered viral moment ranking.

Rust

feat: add navigation to home dashboard in sidebar with active state support

JayWebtech0eef5dd6ffca
diff --git a/src/main.tsx b/src/main.tsx
index b32a73b..40916bd 100644
--- a/src/main.tsx
+++ b/src/main.tsx
@@ -346,7 +346,12 @@ function App() {
<div className="app-shell-container">
<main className="app-shell">
<aside className="sidebar">
- <div className="brand-row">
+ <div
+ className="brand-row"
+ onClick={() => setDetail(null)}
+ style={{ cursor: "pointer" }}
+ title="Go to Home Dashboard"
+ >
<div className="brand-mark">
<Clapperboard size={20} />
</div>
@@ -362,6 +367,15 @@ function App() {
</button>
<section className="project-list" aria-label="Projects">
+ <button
+ className={`project-row ${!detail ? "active" : ""}`}
+ onClick={() => setDetail(null)}
+ >
+ <Clapperboard size={15} />
+ <span>All Projects</span>
+ <ChevronRight size={14} />
+ </button>
+
{projects.map((project) => (
<button
key={project.id}
diff --git a/src/styles.css b/src/styles.css
index bcead4e..b42e2e1 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -120,6 +120,11 @@ button:disabled {
grid-template-columns: 36px 1fr;
gap: 12px;
align-items: center;
+ transition: opacity 0.2s ease;
+}
+
+.brand-row:hover {
+ opacity: 0.85;
}
.brand-mark {