fix(codebase): clean up initial loading state UI

This commit is contained in:
2026-06-14 13:53:29 -07:00
parent ecd51a3987
commit a695f74132

View File

@@ -73,34 +73,34 @@ export default function CodeTab() {
{/* ── Left rail ── */} {/* ── Left rail ── */}
<section style={leftCol}> <section style={leftCol}>
{showLoading && ( {showLoading && (
<Card> <div
<div style={{
style={{ display: "flex",
display: "flex", alignItems: "center",
alignItems: "center", justifyContent: "center",
gap: 8, padding: "48px 0",
color: THEME.mid, gap: 8,
fontSize: "0.875rem", color: THEME.muted,
}} fontSize: "0.85rem",
> }}
<Loader2 size={15} className="animate-spin" /> Loading >
</div> <Loader2 size={16} className="animate-spin" /> Loading codebase
</Card> </div>
)} )}
{error && !showLoading && ( {error && !showLoading && (
<Card> <div
<div style={{
style={{ display: "flex",
display: "flex", alignItems: "center",
alignItems: "center", justifyContent: "center",
gap: 8, padding: "48px 0",
color: THEME.danger, gap: 8,
fontSize: "0.875rem", color: THEME.danger,
}} fontSize: "0.85rem",
> }}
<AlertCircle size={15} /> {error} >
</div> <AlertCircle size={16} /> {error}
</Card> </div>
)} )}
{anatomy && ( {anatomy && (