mirror of
https://github.com/bitbaum/causius.git
synced 2026-12-04 05:07:50 +01:00
* wip: front page redesign, CH/LI/US markets, five locales (translations in progress) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud * i18n: German and French for the new front page; one word under budget Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud * i18n: Spanish, and the sample case in Italian and Spanish Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud * wip: Italian (in progress) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud * feat: a new front page, Switzerland, Liechtenstein and the US, five languages Front page (inspired by what Harvey and Laine do well, for a person rather than a firm): an invented letter worked through as an animation (the name hidden, the deadline with its source, a draft, the person's decision), two calendars (days without, minutes with), the anonymisation drawn, an honest comparison with a chatbot and a lawyer, markets counted from the data, the common problems linking straight into a matter. Headlines in sentence case with an italic accent (one edit in theme.css). The OrangeCat section is gone: no account elsewhere is needed, and the page no longer suggests one. Markets: Liechtenstein and the fifty states join the cantons; one grouping (JURISDICTION_GROUPS) feeds every picker; the agent keeps cantonal, state and federal law apart and Liechtenstein's own order distinct. Languages: Italian and Spanish, whole (site, accounts, mail, sample). The locale list is one SSOT; three hard-coded copies are gone. A letter can be translated into nineteen languages, the same list helpers choose from. Sign-up asks who the account is for (needs help / helps others). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud --------- Co-authored-by: Claude <noreply@anthropic.com>
55 lines
2.0 KiB
TypeScript
55 lines
2.0 KiB
TypeScript
import { TRANSLATION_LANGUAGES } from "./languages";
|
|
|
|
/**
|
|
* Who may help, and what each kind may do. The one place this is decided.
|
|
*
|
|
* Causius's matter and helper engine knows nothing about law; this file is the
|
|
* domain. Diplodoctor runs the same shape with `doctor` where this says
|
|
* `lawyer`: change the kinds here and the credential they need, not the store.
|
|
*
|
|
* The line between `assistant` and `lawyer` is set by law in almost every
|
|
* country, not by us: only an admitted lawyer may give legal advice or
|
|
* represent someone. So a lawyer is LISTED only for the jurisdictions a
|
|
* reviewer has verified, never for the ones they type in.
|
|
*/
|
|
export const HELPER_KINDS = ["ai", "assistant", "lawyer"] as const;
|
|
export type HelperKind = (typeof HELPER_KINDS)[number];
|
|
|
|
export const CREDENTIAL_KINDS = ["bar_admission"] as const;
|
|
export type CredentialKind = (typeof CREDENTIAL_KINDS)[number];
|
|
|
|
export interface Profession {
|
|
/** May give advice and represent, where verified. */
|
|
mayAdvise: boolean;
|
|
/** The credential that must be verified before the profile is listed, if any. */
|
|
requires: CredentialKind | null;
|
|
/** A person operates it rather than being it: an AI service answers through its operator. */
|
|
operated: boolean;
|
|
}
|
|
|
|
export const PROFESSIONS: Record<HelperKind, Profession> = {
|
|
ai: { mayAdvise: false, requires: null, operated: true },
|
|
assistant: { mayAdvise: false, requires: null, operated: false },
|
|
lawyer: { mayAdvise: true, requires: "bar_admission", operated: false },
|
|
};
|
|
|
|
/** Languages a helper may list: the ones a letter can be translated into. A closed list, so a filter means something. */
|
|
export const HELPER_LANGUAGES = TRANSLATION_LANGUAGES;
|
|
|
|
/** Areas of law a helper may list. Closed for the same reason; "other" is the escape. */
|
|
export const HELPER_AREAS = [
|
|
"tenancy",
|
|
"employment",
|
|
"migration",
|
|
"family",
|
|
"debt",
|
|
"social",
|
|
"tax",
|
|
"company",
|
|
"contracts",
|
|
"criminal",
|
|
"administrative",
|
|
"other",
|
|
] as const;
|
|
export type HelperArea = (typeof HELPER_AREAS)[number];
|