Commit Graph
105 Commits
Author SHA1 Message Date
Cato 27c191203a fix(auth): wire shared mail and password recovery 2026-10-25 13:45:51 +01:00
CatoandClaude ceec2e2ee2 fix(law): citations are written without spaces inside the brackets (#299)
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-24 19:04:53 +02:00
CatoandClaude Sonnet 5.5 cccf2e2000 feat(law): a follow-up with no subject of its own is planned with the conversation (#298)
* feat(law): a follow-up with no subject of its own is planned with the conversation

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

* test(law): type the follow-up planner stub

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-24 18:54:42 +02:00
CatoandClaude 834a3a0c5d feat(law): a weak search plan is asked again of the next model (#297)
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-24 18:42:15 +02:00
CatoandClaude 56178c7852 feat(law): the chat starts from the acts a lawyer would open (#296)
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-24 18:31:21 +02:00
CatoandClaude 453e3519bc feat(law): the chat looks at fifteen provisions per place before choosing; the question set reads like a planner (#295)
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-24 18:20:57 +02:00
CatoandClaude 857f3bae3d feat(law): search prefers the fundamental act; a question set measures it (#294)
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-24 18:11:20 +02:00
CatoandClaude 7e9d83e775 feat(law): the law chat checks its own search and searches again for what is missing (#293)
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-24 17:15:56 +02:00
CatoandClaude a00a2b29cc fix(law): search by ideas, answer in the question's language, cite handles, no false article headings (#292)
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-24 08:00:18 +02:00
CatoandClaude Sonnet 5.5 062da325dd feat(law): ask the law, a chat that answers from the provisions it finds (#290)
* feat(law): ask the law, a chat that answers from the provisions it finds

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

* feat(law): the search API takes law-word stems and several authorities

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-24 07:28:05 +02:00
CatoandClaude 80a4860e4d feat(law): municipal collections through one adapter, starting with the City of Zürich (#289)
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-24 07:17:12 +02:00
CatoandClaude 15bc95340e feat(law): search the text of the provisions in force (#288)
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-23 18:15:21 +02:00
CatoandClaude a05284b508 feat(law): find and read acts on Solon (#287)
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-23 13:26:14 +02:00
CatoandClaude 56e5ff8215 fix(law): the official-links read tolerates the few acts whose number has no digit (#286)
Schwyz states 430 acts in force; the digit search finds 426. Links are only
added or replaced, so a short list is safe; under 95% is still refused.


Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-23 12:51:36 +02:00
CatoandClaude Sonnet 5.5 270cedbcd8 feat(law): Zürich's laws from the canton's own collection, dated by the canton (#285)
* feat(law): Zürich's laws from the canton's own collection, dated by the canton

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

* docs(changelog): cite the Zürich reader pull request

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

* ci(law): keep the ssh session to the box alive on long loads

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-23 11:50:09 +02:00
CatoandClaude Sonnet 5.5 a45cf1a3e9 feat(law): Liechtenstein's text, cantonal text, and every Swiss act's own page (#284)
* feat(law): Liechtenstein's text from Lilex, dated by the day it was read

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

* feat(law): every Swiss act points to its own page at the authority that publishes it

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

* feat(law): cantonal acts read as documents, cut into articles

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

* docs(law): cantonal text, official links and Liechtenstein's text on the roadmap and in the design

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

* docs(changelog): cite the text readers pull request

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

* fix(law): law:register read the first argument as the value of --file

Without --file the source name was dropped, so every run read LexFind.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

* feat(law): provisions say whether their date is the publisher's or the day they were read

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-23 11:14:40 +02:00
CatoandClaude Sonnet 5.5 c8de3865eb feat(law): Liechtenstein's laws in the register, from the Government's Systematic Register (#283)
* feat(law): Liechtenstein's laws in the register, from the Government's Systematic Register

3,407 acts in force, named by LR number with the Landesgesetzblatt issue.
The importer now applies generic rows, so a register is a function from its
bytes to rows. Titles and numbers only; the text is the next step.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

* docs(changelog): cite the Liechtenstein register pull request

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-23 11:01:25 +02:00
CatoandClaude Sonnet 5.5 5412aec138 feat(law): federal text from Fedlex, article by article, with its source and hash (#282)
* feat(law): federal text from Fedlex, article by article, with its source and hash

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

* docs(changelog): cite the federal text pull request

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-23 10:29:17 +02:00
CatoandClaude Sonnet 5.5 585375dddc feat(law): the register of every Swiss act, with a coverage page and API (#281)
* feat(law): the register of every Swiss act, with a coverage page and API

Lists the 33,441 acts of the Confederation, the 26 cantons and the
intercantonal agreements (22,047 in force) with title and official number,
read from LexFind's list. Refuses a read short of the count the register
states. Titles and numbers only; text comes in L1.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

* docs(changelog): cite the law register's pull request

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-23 10:10:05 +02:00
CatoandClaude 8b716ce8a9 feat(places): add Liechtenstein as a country pack (#277)
Liechtenstein becomes a pack beside Switzerland, so /api/v1/places resolves
Vaduz and the other communes by name and postcode.

- countries/liechtenstein.ts: nation (Fürstentum), the two Landschaften
  Oberland and Unterland as a full level (Constitution Art. 1; the electoral
  districts of Art. 46), the eleven communes; CHF, region LI, postcodes 94[89]x.
  No tax model.
- Identifier schemes li_landschaft and li_municipality (7001-7011, the numbers
  swisstopo's directory of localities gives the communes), both reserved.
- Source li-constitution-communes: a hand-kept batch
  (data/places/liechtenstein/communes.json, fixture adapter) citing the
  Constitution, Art. 1, with names and numbers checked against swisstopo's
  directory.
- Source swisstopo-postcode-localities-li: the Liechtenstein rows of the same
  directory the Swiss postcodes come from; csv_postcodes gains a `where`
  option (as shapefile_areas has) to read only them.
- Tests: the batch passes the check and puts each commune in the Landschaft the
  Constitution names; the postcode source keeps only the 20 Liechtenstein rows;
  an integration test imports both, reruns with no change, and finds Vaduz by
  name and postcode. The Swiss typo test now draws its cases from Swiss places.


Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-22 09:46:27 +02:00
Cato 4125e78fd6 feat: add visual governance assistant on shared chat engine (#274) 2026-10-21 14:57:50 +02:00
CatoandClaude Opus 5.5 6497e64c1a feat(auth): Solon accounts on the fleet's account package (#269)
* feat(auth): Solon accounts on the fleet's account package

Anyone can now create a Solon account with an email and a password or a
passkey, with two-step codes; "Continue with OrangeCat" is one way in
among them instead of the only one. Sign-in, sign-up and the account
panel are @bitbaum/accountkit/auth's shared screens in Solon's look, in
the reader's language (authLabelsFor).

Seats were keyed on the OrangeCat actor id. legacyIdentityProvider keeps
that id for everyone whose first way in was OrangeCat, so existing seats,
votes, the founder rule and Loki grants keep working with no data
migration; everyone else is their account id.

Policy change, on purpose: the sign-in gate that turned away OrangeCat
accounts with no email is gone, with its test. A session still grants
nothing: a seat comes only from founding or from a vote of the members.

- drizzle/0014_accounts.sql: the six account tables, additive only, the
  same migration every product generates
- next-auth removed; /api/auth/[...all] serves accounts
- a PGlite test signs up against Solon's own migrations

Known gap: the roster's OrangeCat handle and picture are no longer
refreshed at sign-in (stored values stay).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QDMxjTqKNLXETMYYuapMa3

* chore(deps): pin accountkit to the merged v0.5.0 commit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QDMxjTqKNLXETMYYuapMa3

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-17 16:02:19 +02:00
CatoandClaude Opus 5.5 e8b9a6a1c8 Find a place with a letter wrong (searchkit) (#264)
* feat(places): find a place with a letter wrong (searchkit)

The map's search box matched a name only if the folded text appeared in it
exactly, and the name search behind /places, /compare and /api/v1/places was
an ILIKE on the same folded text. One slipped letter ("Zurihc", "Kusnaht")
found nothing, and "st gallen" missed "St. Gallen" for want of the dot.

Both now go through @bitbaum/searchkit, the fleet's shared search package:

- Map box (in the browser): the hand-rolled startsWith/includes matcher in
  map-view.ts is replaced by an index built once per map (`placeFinder`):
  typo budget by word length, prefixes while typing, accents and umlauts
  folded, Algolia-order ranking. The list marks the matched part of each
  name, styled like OrangeCat's palette marks.
- Name search (database): the folded LIKE stays for recall, widened per
  typed word by the names' own words that word is one slip from (a
  vocabulary read once per 10 minutes per process), with a word no name
  comes near set aside instead of failing the search. What comes back is
  ordered by searchkit's rerank instead of the exact/prefix/contains sort.
  Postcodes are an exact lookup and stay one.

fold.ts keeps its SQL fold table: the database side still needs the query
and the column folded alike. Tests: every one-slip misspelling of every
place name in the Swiss fixtures (2,627 cases) is found first by the map
box; through the database, 276 cases are all in the top three and all but
one first ("vern" reads as the start of "Verwaltungskreis" before Bern).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf

* chore(deps): add @bitbaum/searchkit, pinned to orangecat a868c0a9

The fleet's one search package, installed from orangecat by commit
(packages/searchkit). It ships compiled dist/, so no transpile step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf

* docs(changelog): link the place-search entry to #264

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-12 10:15:05 -07:00
CatoandClaude 5e78e43398 feat(members): a member's page in a group — seat, mandate, proposals, votes (#262)
/orgs/[slug]/members/[id] was in the plan and returned 404. It now shows the
seat (type, status, joined, weight), a live mandate, the proposals the member
filed (never drafts) and how many votes they cast in closed decisions.

Individual ballots are the member's to show: members.show_ballots, off by
default, switched on the account page by the member alone (the update names
the signed-in actor as well as the seat, so a forged id changes nothing). A
ballot in a session that is still open is never shown. The roster links each
seat to its page.

Face and handle on the page are what the person let Solon see (OrangeCat
orangecat#1319): a withheld picture or handle simply shows as none.


Claude-Session: https://claude.ai/code/session_01QDMxjTqKNLXETMYYuapMa3

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-12 06:57:36 -07:00
CatoandClaude Opus 5.5 3a8187b99e feat(places): /compare as data — /api/v1/places/compare (#261)
* feat(places): /compare as data — /api/v1/places/compare

The facts and the tax model behind /compare, for any place (?p= a slug
path, repeatable, up to the compare limit; ?on= an ISO date, today by
default): each place's chain, the facts its pack's tax model reads, and
the pack itself — everything an estimate needs.

It takes no income and computes no tax: the estimate runs wherever the
income is (the reader's browser on /compare, or another service on its
own server, e.g. OrangeCat suggesting a person's tax share), so Solon
never learns what anyone earns. Public data, cacheable for an hour.

The page and the endpoint now read "which places" through one helper
(comparedPaths), with tests; the endpoint is listed in the API surface
so it cannot ship unlisted.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* docs(changelog): /compare as data [#261]

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 09:49:44 -07:00
CatoandClaude 159c7ee684 feat(records): the roadmap and the changelog link to each other (bip-kit 0.6.0) (#256)
/roadmap shows each goal as a trail and links every shipped step to the
changelog days that delivered it; /changelog names the step each entry
delivered. The four ticked steps with a changelog record carry {#id}s on
the line the fleet map reads; record-links.test.ts holds the two files to
each other. bip-kit@0.6.0 replaces 0.5.0 in the minimum-release-age
exemption (published today, the fleet's own package).


Claude-Session: https://claude.ai/code/session_01MFTqYKVJNY7ddWNQqsc7yM

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-07 07:57:35 -07:00
CatoandClaude Opus 5.5 06c1dff7f6 docs(copy): bring public copy in line with what Solon does today (#247)
* docs(copy): bring public copy in line with what Solon does today

- About + ecosystem: votes are one-click (ACCOUNT) or Bitcoin-signed, not
  only signed messages
- What you can do: joining is a member suggesting you and a vote; the
  treasury shows the balance, not a transaction ledger
- Hire: the governance agent is marked as in development, like /features
- Roadmap: sign-in now opens OrangeCat's screen (#223); Places shipped
- swisstopo source link 404 -> current page

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* docs(copy): mark the governance agent as not built; cut unbuilt minutes and reminders

"Being built with our first pilot groups" claimed pilot groups that do not
exist (the live /api/orgs lists only OrangeCat; ROADMAP has the first pilot
association under Later). Replace it with "Not built yet" in the home note
and the /hire offer, in all five locales, and put the agent's clerk work in
the future tense.

The same fault one page away: /hire and /for/associations promised minutes
and reminders, which ROADMAP lists as unchecked and no code produces. Say
"public record" instead, which /orgs/{slug} does show.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* docs(copy): cut the last minutes and reminder claims; Places is income tax only

The home associations card, the home agent note and "Keeps everyone in the
loop" card, and the features governance-agent card still promised minutes
or reminders that nothing in src/ produces. The ROADMAP Places entry now
says income tax and names what is not included.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-07 04:41:02 -07:00
CatoandClaude 7c8d9751f7 feat(home): add "What it solves" — concrete problems, for you and for everyone (#253)
The front page now answers "what is this actually for?" with twelve cards:
six situations one person or a small group runs into, six problems a town,
an association or a society has. Each card is the problem, what happens on
Solon, and a link to the page where it happens.

- Structure in src/lib/content/problems.ts; links are site-map keys
  (SITE_LINKS), labelled with the page's own name from Site.links.
- Every sentence in messages/<locale>.json under Home.problems, in all five
  languages (German in Swiss spelling).
- Honesty: a card may only rest on capabilities marked "available"; a note
  says plainly that suggesting and voting on this site run for OrangeCat,
  the first organization, and not yet for newly founded ones. The treasury
  is left out: registering addresses is an operator step today.
- src/lib/__tests__/problems.test.ts pins unique keys, message coverage,
  links to existing pages, available capabilities and no roadmap wording.


Claude-Session: https://claude.ai/code/session_016tA6LherCgxwapQ2oYTjc5

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-07 04:24:46 -07:00
CatoandClaude Opus 5.5 1ea967315c refactor(auth): sign in with OrangeCat through @bitbaum/accountkit (#249)
oc-session.ts and sign-in-request.ts move to @bitbaum/accountkit/orangecat
(v0.2.0), which took them as the reference for every app; their tests went
with them. The provider comes from there too. Behaviour is unchanged:
client_secret_post, PKCE, identity scopes, refresh in jwt(), invalid_grant
ends the session, prompt=create / login_hint / idp_hint, same-origin return
to /account. The profile no longer carries email; the signIn callback still
reads it from the raw claims to turn away anonymous accounts.

The error page is accountkit's SignInError, which this page was the model
for: Try again restarts sign-in, a denial offers "Add an email" first.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 11:16:38 -07:00
CatoandCursor 9029982639 fix(places): Vaud's 30 % limit on cantonal and communal income tax (#245)
* fix(places): Vaud's 30 % limit on cantonal and communal income tax

Co-authored-by: Cursor <cursoragent@cursor.com>

* docs: changelog PR number

Co-authored-by: Cursor <cursoragent@cursor.com>

* chore: drop a scratch script; ignore /tmp

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 02:43:52 -07:00
CatoandCursor e41c755cf6 feat(places): Basel-Landschaft, Schwyz, Uri and Obwalden; cantonal and communal tax apart; federal minimum (#244)
* feat(places): Basel-Landschaft, Schwyz, Uri and Obwalden; cantonal and communal tax apart; federal minimum

Co-authored-by: Cursor <cursoragent@cursor.com>

* docs: changelog PR number

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 02:08:19 -07:00
CatoandCursor a0c582f7a8 feat(places): rounding as the calculator does; Vaud, Schaffhausen, Nidwalden and Glarus (#243)
* feat(places): rounding as the calculator does; Vaud, Schaffhausen, Nidwalden and Glarus

Co-authored-by: Cursor <cursoragent@cursor.com>

* docs: changelog PR number

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 01:06:29 -07:00
CatoandCursor f3db78e5ef feat(places): Ticino and Fribourg, with stated steps and average rates (#242)
* feat(places): Ticino and Fribourg, with stated steps and average rates

Co-authored-by: Cursor <cursoragent@cursor.com>

* docs: changelog PR number

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 23:18:53 -07:00
CatoandCursor 1b4a5eec95 feat(places): Aargau, Solothurn, Graubünden and Neuchâtel, which split a couple's income (#241)
* feat(places): Aargau, Solothurn, Graubünden and Neuchâtel, which split a couple's income

Co-authored-by: Cursor <cursoragent@cursor.com>

* docs: changelog PR number

Co-authored-by: Cursor <cursoragent@cursor.com>

* chore(tax-model): vendor 0.3.0 (componentRefs)

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 17:05:11 -07:00
CatoandCursor 62afbef593 feat(places): the map on /places — communes coloured by the tax at your income, with address search and a list (#240)
* feat(places): the map on /places — communes coloured by the tax at your income, with address search and a list

Co-authored-by: Cursor <cursoragent@cursor.com>

* docs: changelog PR number

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 16:21:49 -07:00
CatoandCursor 6e00671e92 feat(places): serve the map's data, every drawn commune with its tax figures (#239)
* feat(places): serve the map's data, every drawn commune with its tax figures

GET /api/v1/places/map loads every chain at once and sends shared facts
once; the browser estimates with /compare's estimateColumn.

Co-authored-by: Cursor <cursoragent@cursor.com>

* docs: changelog PR number

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 15:48:31 -07:00
CatoandCursor 3f432fb31f feat(places): import commune boundaries and publish them for maps (#238)
* feat(places): import commune boundaries and publish them for maps

swisstopo's swissBOUNDARIES3D edition becomes areas with administers
assertions and one content-addressed TopoJSON file, served with a
geo-kit manifest at /api/v1/places/geography.

Co-authored-by: Cursor <cursoragent@cursor.com>

* docs: changelog PR number

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(deps): declare @types/geojson

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 15:09:50 -07:00
CatoandCursor 38b4bfb31a fix(places): admit multipliers up to 600% (#237)
* fix(places): admit multipliers up to 600%

Appenzell Ausserrhoden's canton and commune multipliers (330-420%) and
Obwalden's (up to 525%) were quarantined by the 300% band.

Co-authored-by: Cursor <cursoragent@cursor.com>

* docs(changelog): link #237

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 14:31:47 -07:00
CatoandCursor 4b78904dee feat(places): tax estimates for six more cantons (#236)
* feat(places): tax estimates for six more cantons

Bern, Lucerne, Zug, Basel-Stadt, Appenzell Ausserrhoden and Jura share
Zürich's shape (one basic tariff times canton and commune multipliers, no
splitting) and reproduce the Federal Tax Administration's calculator to the
franc: 108 cases at CHF 60k/100k/250k, single and married, 2025 and 2026.

- MODELLED_CANTONS in sources.ts, shared by the tariff, canton and commune
  multiplier sources
- estv-commune-multipliers: the calculator's export of every commune
  (group 30), read by FSO number for the listed cantons; Zürich keeps its
  canton's own source (the export collapses communes with two rates)
- estv_simple_rates takes either a place per canton or each row's commune
- Biel/Bienne joins the golden fixtures through the real chain
- Ticino left out: its basic tax differs by CHF 25-50

Co-authored-by: Cursor <cursoragent@cursor.com>

* docs(changelog): link #236

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 14:20:23 -07:00
CatoandCursor 7506e5b57c feat(places): accent-insensitive place search, Swiss number formats in /compare (#235)
* feat(places): accent-insensitive place search, Swiss number formats in /compare

Search folds case, accents and spelled-out umlauts on both sides from one
character table (translate() in SQL), so "zurich" and "Zuerich" find Zürich
with no extension or migration. A country pack's optional ISO 3166-1 region
sets the number formats for its amounts: CHF 13’050 in German instead of
13.050 CHF.

Co-authored-by: Cursor <cursoragent@cursor.com>

* docs(changelog): link #235

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 14:02:51 -07:00
CatoandCursor 42e3b8b879 fix(db): one connection pool per process in production too (#233)
The db proxy calls getDb() on every property access, and getDb() only cached the client outside production. So every query in production built a new pg Pool and opened its own connection, released only after the idle timeout; a burst (the coming /compare page, link prefetches) could exhaust max_connections, which the box's apps share.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 13:33:24 -07:00
CatoandCursor 64fd1dce21 feat(places): /compare, places side by side with the tax estimate in the browser (#234)
Up to four places from the link (?p=…), the estimate computed on the reader's device from the facts each chain holds; the income stays in the tab and never enters a link, form or request. One period for all columns: the latest fiscal year whose figures are all published. A missing figure says why (set by a lower level, or not recorded). Packs name their tax model's inputs, variants and components (taxLabels, checked by the config guard). Place pages link to it; it sits in the Places menu.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 13:29:03 -07:00
CatoandCursor 44e59770f7 fix(places): skip Liechtenstein and commune-free areas in swisstopo's postcode directory (#232)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 12:56:19 -07:00
CatoandCursor efdc8b5713 feat(places): /places search and browse, the Places API, and Places in the header (#231)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 12:48:06 -07:00
CatoandCursor d30bdd0db7 feat(places): daily scheduled import through the box's appcron timer (#230)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 12:44:06 -07:00
CatoandCursor ea1cba0bc8 feat(places): postcodes resolve to the places they lie in (#229)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 12:35:32 -07:00
CatoandCursor de4c161c46 feat(content): whitepaper, questions and answers, and a blog on bip-kit 0.5 (#227)
The deep side gets its long-form pages: /whitepaper, /faq and /blog,
read from content/ with bip-kit 0.5's readEntry, readCollection and Faq,
prerendered as static pages and themed through the shared tokens.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 07:22:49 -07:00
CatoandCursor e5933c0126 feat(ui): everyday pages in plain words, technical details one click away (#226)
Two depths: EVERYDAY_ROUTES speak plain words and keep IDs, addresses, raw
payloads and API links under a closed TechnicalDetails; the deep side stays
as technical as it needs to be. Dashboard uses the standard page header;
record entries read through event-gloss.ts; money reads in bitcoin. A
render check fails the build if an everyday page shows a stored code.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 06:27:05 -07:00
CatoandCursor f611a89799 fix(ui): last technical words on the decisions pages (#225)
Menu reads "Suggest something" in five languages; a finished vote says
"Result"; the yes/no summary and method picker drop "quorum"; the vote
box no longer repeats the page's title; each decision gets a tab title.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 05:57:48 -07:00
CatoandCursor 15ab13bfe1 fix(ui): decisions pages share one layout and speak plain words (#224)
Proposals, a proposal, and the suggestion form use PageLayout and .field.
Statuses, categories and voting rules go through plain-words.ts and
CATEGORY_LABEL instead of printing stored enum values. Error messages say
what happened and what to do.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 05:45:15 -07:00