refactor: improve auth defaults, update UI, and docs
- Provide fallback values for auth environment variables - Refine global CSS styles and typography - Update application metadata descriptions - Add toast error handling to clients page - Formalize phase implementation guidelines in AGENTS.md
This commit is contained in:
1 parent
df14ee1a9a
commit
fde2c86b1e
48 files changed
+1062
-1665
No files matched your search
@@ -6,39 +6,16 @@ interface FooterProps {
|
||||
}
|
||||
|
||||
export const Footer: React.FC<FooterProps> = ({ isAdmin = false }) => {
|
||||
if (isAdmin) return null;
|
||||
|
||||
return (
|
||||
<footer className="shrink-0 min-h-10 bg-[var(--bg-activity)] border-t border-[var(--border)] px-4 sm:px-6 py-2 flex flex-wrap items-center justify-between gap-2 text-[11px] text-[var(--text-dim)] select-none">
|
||||
{isAdmin ? (
|
||||
<>
|
||||
<div className="flex items-center gap-1.5 truncate min-w-0 pr-2">
|
||||
<span className="font-semibold text-[var(--text-muted)] tracking-tight">DataStack</span>
|
||||
<span className="text-[var(--border-strong)]">/</span>
|
||||
<span className="hidden sm:inline font-mono text-[10px] truncate">
|
||||
storage/data/{clientId}/{YYYY-MM-DD}.csv
|
||||
</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-2 font-mono text-[10.5px] shrink-0 ml-auto">
|
||||
<span className="flex items-center gap-1">
|
||||
<span className="w-1.5 h-1.5 bg-[var(--success)] inline-block" />
|
||||
<span className="text-[var(--text-muted)]">:4000</span>
|
||||
</span>
|
||||
<span className="text-[var(--border-strong)]">|</span>
|
||||
<span className="flex items-center gap-1">
|
||||
<span className="w-1.5 h-1.5 bg-[var(--accent)] inline-block" />
|
||||
<span className="text-[var(--text-muted)]">:3000</span>
|
||||
</span>
|
||||
</div>
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<span>DataStack · Self-hosted</span>
|
||||
<nav aria-label="Footer navigation" className="flex items-center gap-5">
|
||||
<Link href="#features" className="hover:text-[var(--text-muted)]">Features</Link>
|
||||
<Link href="#sdk" className="hover:text-[var(--text-muted)]">SDK</Link>
|
||||
<Link href="#about" className="hover:text-[var(--text-muted)]">About</Link>
|
||||
</nav>
|
||||
</>
|
||||
)}
|
||||
<footer className="shrink-0 min-h-9 bg-[var(--bg-activity)] border-t border-[var(--border)] px-4 sm:px-6 py-2 flex flex-wrap items-center justify-between gap-2 text-[11px] text-[var(--text-dim)] select-none">
|
||||
<span>DataStack</span>
|
||||
<nav aria-label="Footer navigation" className="flex items-center gap-5">
|
||||
<Link href="#features" className="hover:text-[var(--text-muted)]">Features</Link>
|
||||
<Link href="#sdk" className="hover:text-[var(--text-muted)]">SDK</Link>
|
||||
<Link href="#about" className="hover:text-[var(--text-muted)]">About</Link>
|
||||
</nav>
|
||||
</footer>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user