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 project renaming and deletion, implement DeepSeek LLM provider, and update project schema with names

JayWebtechf96a34d9d167
diff --git a/.env.example b/.env.example
index bf96c83..6b442a1 100644
--- a/.env.example
+++ b/.env.example
@@ -1,2 +1,4 @@
DEEPGRAM_API_KEY=your_deepgram_key_here
ANTHROPIC_API_KEY=your_anthropic_key_here
+LLM_PROVIDER=deepseek
+DEEPSEEK_API_KEY=
diff --git a/src-tauri/src/db.rs b/src-tauri/src/db.rs
index 84c916b..a7be564 100644
--- a/src-tauri/src/db.rs
+++ b/src-tauri/src/db.rs
@@ -39,6 +39,7 @@ impl Database {
CREATE TABLE IF NOT EXISTS projects (
id TEXT PRIMARY KEY,
+ name TEXT,
source_path TEXT NOT NULL,
source_duration REAL,
status TEXT NOT NULL,
@@ -96,6 +97,7 @@ impl Database {
);
",
)?;
+ let _ = conn.execute("ALTER TABLE projects ADD COLUMN name TEXT", []);
Ok(())
}
@@ -108,6 +110,7 @@ impl Database {
let now = Utc::now().to_rfc3339();
let project = Project {
id: Uuid::new_v4().to_string(),
+ name: None,
source_path: source_path.to_string(),
source_duration,
status: "ingest".to_string(),
@@ -118,10 +121,11 @@ impl Database {
let conn = self.conn.lock().expect("database mutex poisoned");
conn.execute(
- "INSERT INTO projects (id, source_path, source_duration, status, transcription_mode, created_at, updated_at)
- VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7)",
+ "INSERT INTO projects (id, name, source_path, source_duration, status, transcription_mode, created_at, updated_at)
+ VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8)",
params![
project.id,
+ project.name,
project.source_path,
project.source_duration,
project.status,
@@ -137,7 +141,7 @@ impl Database {
pub fn list_projects(&self) -> Result<Vec<Project>> {
let conn = self.conn.lock().expect("database mutex poisoned");
let mut stmt = conn.prepare(
- "SELECT id, source_path, source_duration, status, transcription_mode, created_at, updated_at
+ "SELECT id, name, source_path, source_duration, status, transcription_mode, created_at, updated_at
FROM projects ORDER BY updated_at DESC",
)?;
@@ -149,7 +153,7 @@ impl Database {
pub fn get_project(&self, project_id: &str) -> Result<Project> {
let conn = self.conn.lock().expect("database mutex poisoned");
conn.query_row(
- "SELECT id, source_path, source_duration, status, transcription_mode, created_at, updated_at
+ "SELECT id, name, source_path, source_duration, status, transcription_mode, created_at, updated_at
FROM projects WHERE id = ?1",
params![project_id],
project_from_row,
@@ -316,7 +320,7 @@ impl Database {
"SELECT
candidates.id, candidates.project_id, candidates.start_sec, candidates.end_sec,
candidates.score, candidates.hook, candidates.rationale, candidates.rank, candidates.selected,
- projects.id, projects.source_path, projects.source_duration, projects.status,
+ projects.id, projects.name, projects.source_path, projects.source_duration, projects.status,
projects.transcription_mode, projects.created_at, projects.updated_at
FROM candidates
INNER JOIN projects ON projects.id = candidates.project_id
@@ -337,12 +341,13 @@ impl Database {
};
let project = Project {
id: row.get(9)?,
- source_path: row.get(10)?,
- source_duration: row.get(11)?,
- status: row.get(12)?,
- transcription_mode: row.get(13)?,
- created_at: row.get(14)?,
- updated_at: row.get(15)?,
+ name: row.get(10)?,
+ source_path: row.get(11)?,
+ source_duration: row.get(12)?,
+ status: row.get(13)?,
+ transcription_mode: row.get(14)?,
+ created_at: row.get(15)?,
+ updated_at: row.get(16)?,
};
Ok((candidate, project))
},
@@ -427,17 +432,34 @@ impl Database {
rows.collect::<rusqlite::Result<Vec<_>>>()
.map_err(Into::into)
}
+
+ pub fn delete_project(&self, project_id: &str) -> Result<()> {
+ let conn = self.conn.lock().expect("database mutex poisoned");
+ conn.execute("DELETE FROM projects WHERE id = ?1", params![project_id])?;
+ Ok(())
+ }
+
+ pub fn rename_project(&self, project_id: &str, name: &str) -> Result<()> {
+ let conn = self.conn.lock().expect("database mutex poisoned");
+ let now = Utc::now().to_rfc3339();
+ conn.execute(
+ "UPDATE projects SET name = ?1, updated_at = ?2 WHERE id = ?3",
+ params![name, now, project_id],
+ )?;
+ Ok(())
+ }
}
fn project_from_row(row: &rusqlite::Row<'_>) -> rusqlite::Result<Project> {
Ok(Project {
id: row.get(0)?,
- source_path: row.get(1)?,
- source_duration: row.get(2)?,
- status: row.get(3)?,
- transcription_mode: row.get(4)?,
- created_at: row.get(5)?,
- updated_at: row.get(6)?,
+ name: row.get(1)?,
+ source_path: row.get(2)?,
+ source_duration: row.get(3)?,
+ status: row.get(4)?,
+ transcription_mode: row.get(5)?,
+ created_at: row.get(6)?,
+ updated_at: row.get(7)?,
})
}
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index 9f2c31b..58dc7e8 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -23,12 +23,17 @@ struct AppState {
#[tauri::command]
fn environment_status(state: tauri::State<'_, AppState>) -> EnvironmentStatus {
+ let llm_provider = std::env::var("LLM_PROVIDER")
+ .unwrap_or_else(|_| "deepseek".to_string())
+ .to_lowercase();
EnvironmentStatus {
data_dir: state.data_dir.to_string_lossy().to_string(),
has_ffmpeg: media::command_exists("ffmpeg"),
has_ffprobe: media::command_exists("ffprobe"),
has_deepgram_key: std::env::var("DEEPGRAM_API_KEY").is_ok(),
has_anthropic_key: std::env::var("ANTHROPIC_API_KEY").is_ok(),
+ has_deepseek_key: std::env::var("DEEPSEEK_API_KEY").is_ok(),
+ llm_provider,
}
}
@@ -171,7 +176,7 @@ async fn generate_candidates(
state: tauri::State<'_, AppState>,
project_id: String,
api_key: Option<String>,
- allow_demo: bool,
+ _allow_demo: bool,
) -> Result<Vec<Candidate>, String> {
let db = state.db.clone();
let transcript = db
@@ -181,15 +186,26 @@ async fn generate_candidates(
let normalized: NormalizedTranscript =
serde_json::from_str(&transcript.raw_json).map_err(to_command_error)?;
- let drafts = match api_key.or_else(|| std::env::var("ANTHROPIC_API_KEY").ok()) {
- Some(key) => llm::detect_candidates_with_claude(&normalized, &key)
- .await
- .map_err(to_command_error)?,
- None if allow_demo => llm::demo_candidates(&normalized),
- None => {
- return Err(
- "Set ANTHROPIC_API_KEY or enable demo ranking to generate candidates.".to_string(),
- )
+ let provider = std::env::var("LLM_PROVIDER")
+ .unwrap_or_else(|_| "deepseek".to_string())
+ .to_lowercase();
+
+ let drafts = match provider.as_str() {
+ "claude" => {
+ let key = api_key
+ .or_else(|| std::env::var("ANTHROPIC_API_KEY").ok())
+ .ok_or_else(|| "Set ANTHROPIC_API_KEY or supply Claude API Key to generate candidates.".to_string())?;
+ llm::detect_candidates_with_claude(&normalized, &key)
+ .await
+ .map_err(to_command_error)?
+ }
+ _ => {
+ let key = api_key
+ .or_else(|| std::env::var("DEEPSEEK_API_KEY").ok())
+ .ok_or_else(|| "Set DEEPSEEK_API_KEY or supply DeepSeek API Key to generate candidates.".to_string())?;
+ llm::detect_candidates_with_deepseek(&normalized, &key)
+ .await
+ .map_err(to_command_error)?
}
};
@@ -260,6 +276,20 @@ fn render_flat_clip_for_candidate(
}
}
+#[tauri::command]
+fn delete_project(state: tauri::State<'_, AppState>, project_id: String) -> Result<(), String> {
+ state.db.delete_project(&project_id).map_err(to_command_error)
+}
+
+#[tauri::command]
+fn rename_project(
+ state: tauri::State<'_, AppState>,
+ project_id: String,
+ name: String,
+) -> Result<(), String> {
+ state.db.rename_project(&project_id, &name).map_err(to_command_error)
+}
+
pub fn run() {
let _ = dotenvy::dotenv();
@@ -286,7 +316,9 @@ pub fn run() {
save_demo_transcript,
generate_candidates,
set_selected_clip_count,
- render_flat_clip_for_candidate
+ render_flat_clip_for_candidate,
+ delete_project,
+ rename_project
])
.run(tauri::generate_context!())
.expect("error while running AutoShorts");
diff --git a/src-tauri/src/llm.rs b/src-tauri/src/llm.rs
index 2bb6070..6b7b6fb 100644
--- a/src-tauri/src/llm.rs
+++ b/src-tauri/src/llm.rs
@@ -19,6 +19,72 @@ struct AnthropicContent {
text: Option<String>,
}
+#[derive(Debug, Serialize, Deserialize)]
+struct DeepseekMessage {
+ role: String,
+ content: String,
+}
+
+#[derive(Debug, Deserialize)]
+struct DeepseekChoice {
+ message: DeepseekMessage,
+}
+
+#[derive(Debug, Deserialize)]
+struct DeepseekResponse {
+ choices: Vec<DeepseekChoice>,
+}
+
+pub async fn detect_candidates_with_deepseek(
+ transcript: &NormalizedTranscript,
+ api_key: &str,
+) -> Result<Vec<CandidateDraft>> {
+ let segments = compact_segments(&transcript.segments);
+ let prompt = format!(
+ "You are identifying the most viral moments and strongest short-form clip candidates from a long-form transcript. \
+For each candidate, the clip must be self-contained, starting with an extremely engaging hook within the first 3 seconds (to capture immediate attention on social feeds), \
+30-90 seconds long, and cut at clean sentence/thought boundaries. Favor highly shareable content: concrete stories, \
+strong opinions, emotional turns, surprising or counter-intuitive claims, clear payoffs, and high-energy/dramatic peaks. \
+Avoid rambling setup, context-dependent references, and pure filler. Return up to 10 candidates as JSON matching this schema: \
+{{\"candidates\":[{{\"start\":0.0,\"end\":0.0,\"score\":0.0,\"hook\":\"...\",\"rationale\":\"...\"}}]}}\n\nTranscript:\n{segments}"
+ );
+
+ let response = reqwest::Client::new()
+ .post("https://api.deepseek.com/chat/completions")
+ .header("Authorization", format!("Bearer {api_key}"))
+ .json(&json!({
+ "model": "deepseek-chat",
+ "messages": [
+ {
+ "role": "user",
+ "content": prompt,
+ }
+ ],
+ "temperature": 0.2,
+ "response_format": {
+ "type": "json_object"
+ }
+ }))
+ .send()
+ .await
+ .context("calling DeepSeek")?;
+
+ if !response.status().is_success() {
+ let status = response.status();
+ let body = response.text().await.unwrap_or_default();
+ return Err(anyhow!("DeepSeek request failed ({status}): {body}"));
+ }
+
+ let res_body: DeepseekResponse = response.json().await.context("parsing DeepSeek response")?;
+ let text = res_body
+ .choices
+ .first()
+ .map(|c| c.message.content.clone())
+ .ok_or_else(|| anyhow!("DeepSeek response did not include choices content"))?;
+
+ parse_candidate_json(&text)
+}
+
#[derive(Debug, Serialize)]
struct ClaudeMessage<'a> {
role: &'a str,
diff --git a/src-tauri/src/models.rs b/src-tauri/src/models.rs
index 76eb602..1650375 100644
--- a/src-tauri/src/models.rs
+++ b/src-tauri/src/models.rs
@@ -8,6 +8,8 @@ pub struct EnvironmentStatus {
pub has_ffprobe: bool,
pub has_deepgram_key: bool,
pub has_anthropic_key: bool,
+ pub has_deepseek_key: bool,
+ pub llm_provider: String,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
@@ -25,6 +27,7 @@ pub struct MediaProbe {
#[serde(rename_all = "camelCase")]
pub struct Project {
pub id: String,
+ pub name: Option<String>,
pub source_path: String,
pub source_duration: Option<f64>,
pub status: String,
diff --git a/src/main.tsx b/src/main.tsx
index d570942..b32a73b 100644
--- a/src/main.tsx
+++ b/src/main.tsx
@@ -27,10 +27,13 @@ type EnvironmentStatus = {
hasFfprobe: boolean;
hasDeepgramKey: boolean;
hasAnthropicKey: boolean;
+ hasDeepseekKey: boolean;
+ llmProvider: string;
};
type Project = {
id: string;
+ name: string | null;
sourcePath: string;
sourceDuration: number | null;
status: string;
@@ -106,6 +109,7 @@ function App() {
const [error, setError] = useState<string | null>(null);
const [deepgramKey, setDeepgramKey] = useState("");
const [anthropicKey, setAnthropicKey] = useState("");
+ const [deepseekKey, setDeepseekKey] = useState("");
const [showSettings, setShowSettings] = useState(false);
const transcript = useMemo(() => {
@@ -128,6 +132,10 @@ function App() {
}).length;
const canUseCloudKey = environment?.hasDeepgramKey || deepgramKey.trim().length > 0;
const canUseClaude = environment?.hasAnthropicKey || anthropicKey.trim().length > 0;
+ const canUseDeepseek = environment?.hasDeepseekKey || deepseekKey.trim().length > 0;
+
+ const activeLlmProvider = environment?.llmProvider || "deepseek";
+ const canUseActiveLlm = activeLlmProvider === "claude" ? canUseClaude : canUseDeepseek;
useEffect(() => {
void refresh();
@@ -164,6 +172,7 @@ function App() {
}
async function importMedia() {
+ let newProjectId: string | null = null;
await run("import", async () => {
const selected = await open({
multiple: false,
@@ -179,8 +188,97 @@ function App() {
path: selected,
transcriptionMode: "cloud",
});
+ newProjectId = project.id;
await refresh(project.id);
});
+
+ if (newProjectId) {
+ await runAutoPipeline(newProjectId);
+ }
+ }
+
+ async function runAutoPipeline(projectId: string) {
+ setError(null);
+ const env = await invoke<EnvironmentStatus>("environment_status");
+ const hasDG = env.hasDeepgramKey || deepgramKey.trim().length > 0;
+ const activeLlm = env.llmProvider || "deepseek";
+ const hasActiveLlm = activeLlm === "claude"
+ ? (env.hasAnthropicKey || anthropicKey.trim().length > 0)
+ : (env.hasDeepseekKey || deepseekKey.trim().length > 0);
+
+ if (!hasDG) {
+ setError("Import successful. Deepgram key is missing. Please add it to start transcription.");
+ return;
+ }
+
+ // 1. Transcription
+ try {
+ setBusy("transcribe");
+ await invoke<Transcript>("transcribe_project", {
+ projectId,
+ provider: "deepgram",
+ apiKey: deepgramKey.trim() || null,
+ });
+ await refresh(projectId);
+ } catch (err) {
+ setError(err instanceof Error ? err.message : String(err));
+ setBusy("idle");
+ return;
+ }
+
+ if (!hasActiveLlm) {
+ setError(`Transcription complete. ${activeLlm === "claude" ? "Claude" : "DeepSeek"} API Key is missing. Please add it in settings to analyze viral moments.`);
+ setBusy("idle");
+ return;
+ }
+
+ // 2. LLM Moments
+ try {
+ setBusy("moments");
+ const activeKey = activeLlm === "claude" ? anthropicKey.trim() : deepseekKey.trim();
+ await invoke<Candidate[]>("generate_candidates", {
+ projectId,
+ apiKey: activeKey || null,
+ allowDemo: false,
+ });
+ await refresh(projectId);
+ } catch (err) {
+ setError(err instanceof Error ? err.message : String(err));
+ } finally {
+ setBusy("idle");
+ }
+ }
+
+ async function renameProject(projectId: string) {
+ const project = projects.find((p) => p.id === projectId);
+ if (!project) return;
+ const currentName = project.name || fileName(project.sourcePath);
+ const newName = window.prompt("Rename Project:", currentName);
+ if (newName === null) return;
+ const trimmed = newName.trim();
+ if (!trimmed) return;
+
+ try {
+ await invoke("rename_project", { projectId, name: trimmed });
+ await refresh(detail?.project.id);
+ } catch (err) {
+ setError(err instanceof Error ? err.message : String(err));
+ }
+ }
+
+ async function deleteProject(projectId: string) {
+ const project = projects.find((p) => p.id === projectId);
+ if (!project) return;
+ const name = project.name || fileName(project.sourcePath);
+ if (!window.confirm(`Are you sure you want to delete the project "${name}"?`)) return;
+
+ try {
+ await invoke("delete_project", { projectId });
+ const nextActiveId = detail?.project.id === projectId ? null : detail?.project.id;
+ await refresh(nextActiveId ?? undefined);
+ } catch (err) {
+ setError(err instanceof Error ? err.message : String(err));
+ }
}
async function selectProject(projectId: string) {
@@ -202,20 +300,13 @@ function App() {
});
}
- async function demoTranscript() {
- if (!detail) return;
- await run("demoTranscript", async () => {
- await invoke<Transcript>("save_demo_transcript", { projectId: detail.project.id });
- await refresh(detail.project.id);
- });
- }
-
async function moments(allowDemo: boolean) {
if (!detail) return;
await run("moments", async () => {
+ const activeKey = activeLlmProvider === "claude" ? anthropicKey.trim() : deepseekKey.trim();
await invoke<Candidate[]>("generate_candidates", {
projectId: detail.project.id,
- apiKey: anthropicKey.trim() || null,
+ apiKey: activeKey || null,
allowDemo,
});
await refresh(detail.project.id);
@@ -278,7 +369,7 @@ function App() {
onClick={() => void selectProject(project.id)}
>
<FileVideo size={15} />
- <span>{fileName(project.sourcePath)}</span>
+ <span>{project.name || fileName(project.sourcePath)}</span>
<ChevronRight size={14} />
</button>
))}
@@ -291,7 +382,7 @@ function App() {
<header className="topbar">
<div className="project-info">
<div className="eyebrow">{detail.project.status}</div>
- <h2>{fileName(detail.project.sourcePath)}</h2>
+ <h2>{detail.project.name || fileName(detail.project.sourcePath)}</h2>
</div>
<div className="topbar-actions">
<button
@@ -321,7 +412,9 @@ function App() {
/>
</label>
<label>
- <span>Claude API Key</span>
+ <span>
+ Claude API Key {activeLlmProvider === "claude" && <strong style={{ color: "var(--accent-primary)" }}>(Active)</strong>}
+ </span>
<input
value={anthropicKey}
onChange={(event) => setAnthropicKey(event.target.value)}
@@ -329,6 +422,17 @@ function App() {
type="password"
/>
</label>
+ <label>
+ <span>
+ DeepSeek API Key {activeLlmProvider === "deepseek" && <strong style={{ color: "var(--accent-primary)" }}>(Active)</strong>}
+ </span>
+ <input
+ value={deepseekKey}
+ onChange={(event) => setDeepseekKey(event.target.value)}
+ placeholder={environment?.hasDeepseekKey ? "Loaded from env" : "Optional (DeepSeek API Key)"}
+ type="password"
+ />
+ </label>
</div>
</div>
)}
@@ -353,15 +457,17 @@ function App() {
<div className="button-pair">
<button onClick={transcribe} disabled={busy !== "idle" || !canUseCloudKey}>
{busy === "transcribe" ? <Loader2 className="spin" size={16} /> : <AudioLines size={16} />}
- Cloud
- </button>
- <button onClick={demoTranscript} disabled={busy !== "idle"}>
- {busy === "demoTranscript" ? <Loader2 className="spin" size={16} /> : <Wand2 size={16} />}
- Demo
+ Transcribe
</button>
</div>
</div>
+ {!canUseCloudKey && (
+ <div className="api-warning">
+ ⚠️ Deepgram API Key is missing. Transcribing will not work. Please add your key in <strong>API Settings</strong>.
+ </div>
+ )}
+
<div className="transcript-list">
{transcript?.segments.map((segment, index) => (
<article key={`${segment.start}-${index}`} className="segment-row">
@@ -383,17 +489,19 @@ function App() {
{busy === "cut" ? <Loader2 className="spin" size={16} /> : <Scissors size={16} />}
Cut
</button>
- <button onClick={() => void moments(false)} disabled={busy !== "idle" || !detail.transcript || !canUseClaude}>
+ <button onClick={() => void moments(false)} disabled={busy !== "idle" || !detail.transcript || !canUseActiveLlm}>
{busy === "moments" ? <Loader2 className="spin" size={16} /> : <Sparkles size={16} />}
- Claude
- </button>
- <button onClick={() => void moments(true)} disabled={busy !== "idle" || !detail.transcript}>
- {busy === "moments" ? <Loader2 className="spin" size={16} /> : <Wand2 size={16} />}
- Demo
+ Find Viral Moments
</button>
</div>
</div>
+ {!canUseActiveLlm && (
+ <div className="api-warning">
+ ⚠️ {activeLlmProvider === "claude" ? "Claude" : "DeepSeek"} API Key is missing. Viral moment identification will not work. Please add your key in <strong>API Settings</strong>.
+ </div>
+ )}
+
{detail.candidates.length > 0 && (
<div className="clip-control">
<SlidersHorizontal size={17} />
@@ -466,13 +574,55 @@ function App() {
</div>
</>
) : (
- <div className="empty-workspace">
- <Clapperboard size={46} />
- <h2>AutoShorts</h2>
- <button className="primary-action compact" onClick={importMedia}>
- <FileVideo size={18} />
- Import recording
- </button>
+ <div className="home-dashboard">
+ <header className="home-header">
+ <div>
+ <h2>All Projects</h2>
+ <p>Select a project below or import a new media file to get started.</p>
+ </div>
+ <button className="primary-action compact" onClick={importMedia} disabled={busy !== "idle"}>
+ {busy === "import" ? <Loader2 className="spin" size={18} /> : <FileVideo size={18} />}
+ Import recording
+ </button>
+ </header>
+
+ {projects.length > 0 ? (
+ <div className="projects-grid">
+ {projects.map((project) => {
+ const name = project.name || fileName(project.sourcePath);
+ return (
+ <article key={project.id} className="project-card">
+ <div className="project-card-header">
+ <FileVideo size={24} className="project-card-icon" />
+ <span className="project-card-status">{project.status}</span>
+ </div>
+ <h3 className="project-card-title">{name}</h3>
+ <div className="project-card-meta">
+ <span>Duration: {project.sourceDuration ? formatTime(project.sourceDuration) : "Probing..."}</span>
+ <span>Created: {new Date(project.createdAt).toLocaleDateString()}</span>
+ </div>
+ <div className="project-card-actions">
+ <button className="action-btn open-btn" onClick={() => void selectProject(project.id)}>
+ Open
+ </button>
+ <button className="action-btn rename-btn" onClick={() => void renameProject(project.id)}>
+ Rename
+ </button>
+ <button className="action-btn delete-btn" onClick={() => void deleteProject(project.id)}>
+ Delete
+ </button>
+ </div>
+ </article>
+ );
+ })}
+ </div>
+ ) : (
+ <div className="empty-dashboard-state">
+ <Clapperboard size={48} className="empty-state-icon" />
+ <h3>No projects found</h3>
+ <p>Import your first recording to begin creating shorts.</p>
+ </div>
+ )}
</div>
)}
</section>
@@ -488,6 +638,7 @@ function App() {
<span className={`indicator ${environment?.hasFfprobe ? "active" : ""}`} title="FFprobe status">ffprobe</span>
<span className={`indicator ${canUseCloudKey ? "active" : ""}`} title="Deepgram Key status">Deepgram</span>
<span className={`indicator ${canUseClaude ? "active" : ""}`} title="Claude Key status">Claude</span>
+ <span className={`indicator ${canUseDeepseek ? "active" : ""}`} title="DeepSeek Key status">DeepSeek</span>
</div>
</div>
</footer>
diff --git a/src/styles.css b/src/styles.css
index 5b9e820..bcead4e 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -187,6 +187,7 @@ button:disabled {
.project-list {
display: grid;
+ align-content: start;
gap: 6px;
min-height: 0;
overflow-y: auto;
@@ -313,7 +314,7 @@ button:disabled {
.key-stack-horizontal {
display: grid;
- grid-template-columns: 1fr 1fr;
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
}
@@ -859,3 +860,183 @@ button:disabled {
grid-template-columns: 1fr;
}
}
+
+/* Home Dashboard Styling */
+.home-dashboard {
+ display: flex;
+ flex-direction: column;
+ gap: 20px;
+ padding: 10px 0;
+ animation: slideInUp 0.3s ease-out forwards;
+}
+
+.home-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 1px solid var(--border-color);
+ padding-bottom: 16px;
+}
+
+.home-header h2 {
+ font-size: 24px;
+ font-weight: 800;
+ margin: 0;
+}
+
+.home-header p {
+ font-size: 13px;
+ color: var(--text-secondary);
+ margin: 4px 0 0 0;
+}
+
+.projects-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
+ gap: 16px;
+ margin-top: 10px;
+}
+
+.project-card {
+ background: var(--bg-sidebar);
+ border: 1px solid var(--border-color);
+ border-radius: 12px;
+ padding: 16px;
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+ transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
+}
+
+.project-card:hover {
+ border-color: rgba(255, 255, 255, 0.15);
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
+ transform: translateY(-2px);
+}
+
+.project-card-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.project-card-icon {
+ color: var(--accent-primary);
+}
+
+.project-card-status {
+ font-size: 10px;
+ font-weight: 700;
+ text-transform: uppercase;
+ background: rgba(142, 230, 199, 0.08);
+ color: var(--accent-primary);
+ padding: 2px 6px;
+ border-radius: 4px;
+ letter-spacing: 0.5px;
+}
+
+.project-card-title {
+ font-size: 15px;
+ font-weight: 700;
+ margin: 0;
+ color: var(--text-primary);
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.project-card-meta {
+ display: flex;
+ justify-content: space-between;
+ font-size: 11px;
+ color: var(--text-muted);
+}
+
+.project-card-actions {
+ display: grid;
+ grid-template-columns: 2fr 1fr 1fr;
+ gap: 8px;
+ margin-top: 4px;
+}
+
+.action-btn {
+ height: 30px;
+ font-size: 11.5px;
+ font-weight: 700;
+ border-radius: 6px;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ transition: all 0.2s ease;
+}
+
+.open-btn {
+ background: var(--accent-primary);
+ color: var(--accent-text);
+}
+
+.open-btn:hover {
+ background: var(--accent-primary-hover);
+}
+
+.rename-btn, .delete-btn {
+ background: rgba(255, 255, 255, 0.03);
+ border: 1px solid var(--border-color);
+ color: var(--text-secondary);
+}
+
+.rename-btn:hover {
+ background: rgba(255, 255, 255, 0.08);
+ border-color: rgba(255, 255, 255, 0.2);
+ color: var(--text-primary);
+}
+
+.delete-btn:hover {
+ background: var(--color-error-bg);
+ border-color: var(--color-error-border);
+ color: var(--color-error-text);
+}
+
+.empty-dashboard-state {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ gap: 12px;
+ min-height: 250px;
+ color: var(--text-muted);
+ text-align: center;
+}
+
+.empty-dashboard-state h3 {
+ font-size: 16px;
+ font-weight: 700;
+ color: var(--text-primary);
+ margin: 0;
+}
+
+.empty-dashboard-state p {
+ font-size: 13px;
+ margin: 0;
+}
+
+.empty-state-icon {
+ color: var(--text-muted);
+ opacity: 0.6;
+}
+
+/* Inline Warning Banner */
+.api-warning {
+ margin: 10px 16px;
+ padding: 10px 14px;
+ background: rgba(239, 68, 68, 0.08);
+ border: 1px solid rgba(239, 68, 68, 0.2);
+ border-radius: 8px;
+ font-size: 12px;
+ color: #ff9999;
+ line-height: 1.4;
+}
+
+.api-warning strong {
+ color: #ffffff;
+}