feat: dashboard overhaul, chargeability reports, dispo import enhancements, UI polish

Dashboard: expanded chargeability widget, resource/project table widgets
with sorting and filters, stat cards with formatMoney integration.

Chargeability: new report client with filtering, chargeability-bookings
use case, updated dashboard overview logic.

Dispo import: TBD project handling, parse-dispo-matrix improvements,
stage-dispo-projects resource value scores, new tests.

Estimates: CommercialTermsEditor component, commercial-terms engine
module, expanded estimate schemas and types.

UI: AppShell navigation updates, timeline filter/toolbar enhancements,
role management improvements, signin page redesign, Tailwind/globals
polish, SystemSettings SMTP section, anonymization support.

Tests: new router tests (anonymization, chargeability, effort-rule,
entitlement, estimate, experience-multiplier, notification, resource,
staffing, vacation).

Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
2026-03-14 23:29:07 +01:00
parent ad0855902b
commit 625a842d89
74 changed files with 11680 additions and 1583 deletions
+15 -3
View File
@@ -12,6 +12,15 @@ function getBaseUrl() {
return `http://localhost:${process.env["PORT"] ?? 3100}`;
}
function isIgnorableTransportError(error: unknown): boolean {
const message =
typeof error === "object" && error !== null && "message" in error
? String((error as { message?: unknown }).message ?? "")
: "";
return message.includes("Failed to fetch") || message.toLowerCase().includes("aborted");
}
export function TRPCProvider({ children }: { children: React.ReactNode }) {
const [queryClient] = useState(
() =>
@@ -29,9 +38,12 @@ export function TRPCProvider({ children }: { children: React.ReactNode }) {
trpc.createClient({
links: [
loggerLink({
enabled: (opts) =>
process.env["NODE_ENV"] === "development" ||
(opts.direction === "down" && opts.result instanceof Error),
enabled: (opts) => {
const isDownError = opts.direction === "down" && isIgnorableTransportError(opts.result);
if (isDownError) return false;
if (process.env["NODE_ENV"] === "development") return true;
return opts.direction === "down";
},
}),
httpBatchLink({
url: `${getBaseUrl()}/api/trpc`,