mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-08-21 14:34:32 +00:00
Brings the Tauri 2.x tray popover from #1022 onto main as windows/, mirroring mac/. Product name, bundle identifier, and version line up with the macOS menubar (org.agentseal.codeburn-menubar, 0.9.20); the crate is renamed off "desktop" so it no longer collides with the Electron app in app/. Linux (ksni) stays compiled and dev-usable but is documented as experimental: gnome/ is the shipping Linux surface. The five src/ CLI commits on that branch are dropped - they re-implement a daily-bucketing fix main already carries.
35 lines
1.4 KiB
TypeScript
35 lines
1.4 KiB
TypeScript
/// First-run copy for a machine where the CLI ran fine but found no sessions. Paths are
|
|
/// shown the way the reader's own OS spells them.
|
|
|
|
import { homePath } from '../lib/platform'
|
|
|
|
const SOURCES: Array<{ path: string | null; tool: string }> = [
|
|
{ path: homePath('.claude', 'projects'), tool: 'Claude Code' },
|
|
{ path: homePath('.codex', 'sessions'), tool: 'Codex CLI' },
|
|
{ path: null, tool: 'Cursor local database' },
|
|
{ path: null, tool: 'GitHub Copilot session events' },
|
|
{ path: homePath('.local', 'share', 'opencode'), tool: 'OpenCode' },
|
|
{ path: homePath('.pi'), tool: 'Pi' },
|
|
]
|
|
|
|
export function NoDataState({ onRefresh }: { onRefresh: () => void }) {
|
|
return (
|
|
<section className="no-data">
|
|
<h2 className="no-data-title">No session data yet</h2>
|
|
<p>
|
|
CodeBurn reads local session logs written by your AI coding tools. None of the
|
|
supported tools have recorded a session on this machine yet.
|
|
</p>
|
|
<p className="no-data-sub">Watched locations</p>
|
|
<ul>
|
|
{SOURCES.map(s => (
|
|
<li key={s.tool}>
|
|
{s.path ? <><code>{s.path}</code> <span className="no-data-tool">{s.tool}</span></> : s.tool}
|
|
</li>
|
|
))}
|
|
</ul>
|
|
<p>Run one of those tools for a session, then refresh.</p>
|
|
<button type="button" className="btn" onClick={onRefresh}>Refresh now</button>
|
|
</section>
|
|
)
|
|
}
|