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
@@ -1,7 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import { Input } from '@/components/ui/Input';
|
||||
import { Pill } from '@/components/ui/Pill';
|
||||
import { Search } from 'lucide-react';
|
||||
import type { ClientStatusFilter } from './clients/types';
|
||||
|
||||
interface ClientsFiltersProps {
|
||||
@@ -27,16 +27,17 @@ export function ClientsFilters({
|
||||
counts,
|
||||
}: ClientsFiltersProps) {
|
||||
return (
|
||||
<div className="mb-3 flex flex-wrap items-center gap-2">
|
||||
<div className="flex h-8 w-full flex-1 items-center gap-1.5 border border-[var(--border)] bg-[var(--surface)] px-2.5 sm:max-w-xs">
|
||||
<Search className="h-3.5 w-3.5 shrink-0 text-[var(--text-faint)]" aria-hidden="true" />
|
||||
<input
|
||||
<div className="mb-2.5 flex flex-wrap items-center gap-2">
|
||||
<div className="w-full flex-1 sm:max-w-xs">
|
||||
<Input
|
||||
compact
|
||||
icon="Search"
|
||||
type="search"
|
||||
aria-label="Search clients"
|
||||
value={search}
|
||||
onChange={(event) => onSearchChange(event.target.value)}
|
||||
placeholder="Search by name or client ID"
|
||||
className="min-w-0 flex-1 bg-transparent text-xs text-[var(--text)] outline-none placeholder:text-[var(--text-faint)]"
|
||||
placeholder="Search client..."
|
||||
className="bg-[var(--surface)]"
|
||||
/>
|
||||
</div>
|
||||
<div className="ml-auto flex min-w-0 gap-1 overflow-x-auto" role="group" aria-label="Filter clients by status">
|
||||
@@ -47,7 +48,7 @@ export function ClientsFilters({
|
||||
onClick={() => onStatusChange(filter.key)}
|
||||
>
|
||||
{filter.label}
|
||||
<span className="text-[10px] text-[var(--text-faint)]">
|
||||
<span className="font-mono text-[9.5px] tabular-nums text-[var(--text-faint)]">
|
||||
{counts[filter.key].toLocaleString()}
|
||||
</span>
|
||||
</Pill>
|
||||
|
||||
Reference in new issue
Block a user