mirror of
https://github.com/bitbaum/causius.git
synced 2026-12-04 04:27:36 +01:00
* Build out Causius: case intake, case file, helper marketplace Replace the day-zero page with the product: a landing page, letter intake with env-gated AI analysis, a case view (deadline, checklist, translations, draft reply), browser-only case storage with export/import, and the helper marketplace rules for legal assistants and licensed lawyers. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012EJFFkKhmaVnnH8E3mHnaZ * Put Causius on the fleet's stack and its three planes - AI: replace the hand-rolled single-vendor fetch with @bitbaum/ai-kit complete() over the shared free chain; no pinned model id. Add the fleet's own-model flow (ai-kit byok + probe), key kept in the browser. - Validation with zod, rate limits with limitkit, tests with Vitest. - Identity rendered from the Loki fleet map; ROADMAP.md and CHANGELOG.md as the public record, shown through bip-kit. - Helpers live on OrangeCat as services; OrangeCat and Solon links appear only when the fleet map reports the profiles exist. - Nav contract: routes constant, aria-current, 44px targets. Beta label. - CI and auto-merge from the current site template; TypeScript 6, ESLint 10, Node 24; AGENTS.md from the fleet template. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012EJFFkKhmaVnnH8E3mHnaZ * Speak English, German and French; make intake work end to end - next-intl with locale routing (en unprefixed, /de, /fr), every string in the message catalogues, a parity test, Swiss German spelling. - The analysis is written in the reader's language. - Several pages per letter; photos are shrunk in the browser so a phone picture fits. - The deadline is shown with the sentence it was read from, and the model is told never to compute a date the letter does not state. - /api/health, and the intake page says up front what the free models can do. `pnpm run check:analyze` runs the sample letter through a real model. - A down fleet map no longer stalls on-demand pages. - Refuse the two build scripts next-intl brought, so installs stay clean. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012EJFFkKhmaVnnH8E3mHnaZ --------- Co-authored-by: Claude <noreply@anthropic.com>
62 lines
1.9 KiB
TypeScript
62 lines
1.9 KiB
TypeScript
import { DevelopmentPage } from "bip-kit/react";
|
|
import "bip-kit/styles.css";
|
|
import { getTranslations } from "next-intl/server";
|
|
import { shell } from "@/components/ui";
|
|
import { getPathname } from "@/i18n/navigation";
|
|
import type { Locale } from "@/i18n/routing";
|
|
import { FLEET_PROFILE_URL, loadFleetPresence } from "@/lib/fleet";
|
|
import { ROUTES } from "@/lib/routes";
|
|
|
|
const LABELS = [
|
|
"roadmap",
|
|
"changelog",
|
|
"home",
|
|
"profile",
|
|
"beta",
|
|
"source",
|
|
"unavailable",
|
|
"emptyRoadmap",
|
|
"emptyChangelog",
|
|
"progress",
|
|
"target",
|
|
] as const;
|
|
|
|
/**
|
|
* The roadmap or the changelog, inside Causius's shell. The data is the fleet
|
|
* map's (which ingests ROADMAP.md and CHANGELOG.md from this repository); the
|
|
* chrome is ours. bip-kit's neutral theme is retuned to this site's tokens in
|
|
* globals.css (`--bp-*`). When the map cannot be read, bip-kit says
|
|
* "unavailable" rather than showing a stored copy that may have drifted.
|
|
*
|
|
* The labels are translated; the record text itself is the operator's own
|
|
* words and is left as written, in English, with a line saying so.
|
|
*/
|
|
export async function DevelopmentRecords({
|
|
section,
|
|
locale,
|
|
}: {
|
|
section: "roadmap" | "changelog";
|
|
locale: Locale;
|
|
}) {
|
|
const t = await getTranslations("Records");
|
|
const { development } = await loadFleetPresence();
|
|
// bip-kit renders plain anchors, so the language prefix is applied here.
|
|
const at = (href: string) => getPathname({ href, locale });
|
|
const note = t("englishOnly");
|
|
|
|
return (
|
|
<main className={`${shell} py-10 sm:py-14`}>
|
|
{note && <p className="mb-6 text-sm text-fg-secondary">{note}</p>}
|
|
<DevelopmentPage
|
|
profile={development}
|
|
section={section}
|
|
homeHref={at(ROUTES.home)}
|
|
roadmapHref={at(ROUTES.roadmap)}
|
|
changelogHref={at(ROUTES.changelog)}
|
|
profileHref={FLEET_PROFILE_URL}
|
|
labels={Object.fromEntries(LABELS.map((key) => [key, t(key)]))}
|
|
/>
|
|
</main>
|
|
);
|
|
}
|