Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/app/components/dashboard-stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export async function DashboardStats({
];
const completedSteps = steps.filter((step) => step.complete).length;
const cards = [
{ label: "Active projects", value: stats.activeProjects, icon: "projects" as const, tone: "indigo" },
{ label: "Active projects", value: stats.activeProjects, detail: `Projects marked Active · ${projectCount} total`, icon: "projects" as const, tone: "indigo" },
{ label: "Overdue tasks", value: stats.overdueTasks, icon: "overdue" as const, tone: stats.overdueTasks > 0 ? "danger" : "slate" },
{ label: "Pending reviews", value: stats.pendingReviews, icon: "reviews" as const, tone: "amber" },
{ label: "Deliverable approval rate", value: stats.approvalRate === null ? "—" : `${stats.approvalRate}%`, icon: "approval" as const, tone: "emerald" },
Expand Down Expand Up @@ -127,6 +127,7 @@ export async function DashboardStats({
</span>
</div>
<p className="mt-4 text-3xl font-semibold tabular-nums tracking-tight text-slate-950 dark:text-white">{card.value}</p>
{card.detail ? <p className="mt-1 text-xs leading-5 text-slate-600 dark:text-slate-400">{card.detail}</p> : null}
</article>
))}
</div>
Expand Down
5 changes: 5 additions & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { background: var(--background); color: var(--foreground); font-family: Arial, Helvetica, sans-serif; }


/* Consistent visible keyboard focus across the app shell and interactive controls. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid #4f46e5; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
const geistSans = Geist({ variable: "--font-geist-sans", subsets: ["latin"] });
const geistMono = Geist_Mono({ variable: "--font-geist-mono", subsets: ["latin"] });
export const metadata: Metadata = { title: { default: "ClientFlow", template: "%s | ClientFlow" }, description: "A focused workspace for client and project management." };
export const metadata: Metadata = { title: { default: "ClientFlow", template: "%s | ClientFlow" }, description: "A focused workspace for client and project management.", icons: { icon: "/icon.svg", shortcut: "/icon.svg" } };
export default function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) {
return <html lang="en"><body className={`${geistSans.variable} ${geistMono.variable} antialiased`}>{children}</body></html>;
}
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function WorkspacePreview() {
<span className="rounded-lg bg-indigo-600 px-2.5 py-1.5 text-[9px] font-semibold text-white">New project</span>
</div>
<div className="grid grid-cols-3 gap-2">
{[["03", "Projects"], ["05", "Open tasks"], ["02", "Reviews"]].map(([value, label]) => (
{[["3", "Projects"], ["5", "Open tasks"], ["2", "Reviews"]].map(([value, label]) => (
<div key={label} className="rounded-xl border border-slate-100 bg-white p-2.5 dark:border-slate-800 dark:bg-slate-950">
<p className="text-base font-bold tabular-nums text-slate-900 dark:text-white sm:text-lg">{value}</p>
<p className="mt-1 text-[9px] text-slate-500 dark:text-slate-400">{label}</p>
Expand Down
Loading