105 Commits
Author SHA1 Message Date
adminandClaude Opus 5.5 e1c979c734 Fetch private dredd-core from the Haski Gitea, not GitHub
CI / backend (16) (push) Successful in 3m19s
CI / compose-smoke (push) Successful in 1m36s
CI / managed-db (push) Successful in 2m40s
CI / backend (17) (push) Successful in 3m20s
The Dockerfiles still rewrote credentials for github.com only, so the build
token never reached Gitea and installs worked only while dredd-core was
public. Rewrite http://77.216.148.202:3000/ instead, give every workflow
that pip-installs the same rewrite (org secret DREDD_CORE_TOKEN, the
read-only haski-reader token), and drop the GitHub PAT leftovers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 22:18:42 +01:00
adminandClaude Opus 5.5 3907b33213 CI: allow a manual run (Actions -> CI -> Run workflow)
CI / backend (16) (push) Successful in 4m28s
CI / managed-db (push) Successful in 3m24s
CI / backend (17) (push) Successful in 4m17s
CI / compose-smoke (push) Successful in 1m17s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 20:06:30 +01:00
adminandClaude Opus 5.5 9230e24fbe CI: push runs only on main; branches are tested through their pull request [skip ci]
A push of many branches at once (the migration pushed 100 of Atrium's) started
a run per branch and flooded the runners. Every pull request is still tested.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 16:39:14 +01:00
adminandClaude Opus 5.5 02bb267ebb Build from Gitea instead of GitHub
CI / backend (17) (push) Successful in 5m13s
CI / backend (16) (push) Successful in 7m33s
CI / managed-db (push) Successful in 3m26s
CI / compose-smoke (push) Successful in 2m50s
The Alpaq92 GitHub account is suspended, so nothing can be fetched from it.
dredd-core (and Lexicon's compass packages from Arbiter) now come from the
public Haski repositories on Gitea, so CI no longer authenticates to GitHub:
the "Authenticate to dredd-core" steps and insteadOf rewrites are gone.
The Dockerfile's dredd_core_token build secret stays; any non-empty value
works now (the Haski org secret DREDD_CORE_TOKEN provides one in CI).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 17:05:32 +01:00
admin 4fee196c84 Merge pull request #16 from Alpaq92/fix/walls-evidence-intake
Walls, evidence and the intake gate: four fixes from a source review
2026-11-28 10:39:41 +01:00
Piotr ChojnackiandClaude Opus 5.5 3215c3d569 Walls, evidence and the intake gate: four fixes from a source review
- Correspondence: the inbox's undated list held items already filed in a
  matter and showed and counted them for everyone. It is now filtered to
  the reader (correspondence.undated_for), including the dashboard card.
  assign is authorized on the matter an item leaves as well as the one it
  enters, and an item with derived deadlines no longer moves. The undated
  reminder goes only to recipients who may read the item's matter.
- Conflict hits: the search still looks across every wall, but a hit in a
  matter the reader cannot open no longer names it (conflicts.visible_hits,
  matter_hidden). conflict_out requires the reader's hits.
- AML: deleting a matter cascaded to its assessments, and the runtime
  role's missing DELETE did not stop it (a cascade runs as the table's
  owner). nodes.delete refuses in words; revision 0007 drops the cascade.
- Opening a matter: the conflict check must cover the client (the engine's
  name match against name and aliases) and the lead named on the request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 20:47:08 +01:00
admin 88a4ae6f15 Merge pull request #14 into main 2026-11-24 20:18:40 +01:00
admin 1a7e957709 Merge pull request #15 into main 2026-11-24 20:18:29 +01:00
Piotr ChojnackiandClaude Opus 5.5 c31214a832 Console a11y: every list opens from the keyboard, and a dialog keeps and returns focus
A pass against the Web Interface Guidelines (and Atrium's console, which already does most
of this):

- The ten clickable tables — deadlines, matters, parties, conflict checks (three places),
  enquiries, invoices (two) and profitability — were mouse-only: the <tr> had the click and
  nothing in the row could take focus, so a keyboard or screen-reader user could not open a
  matter, a party or an invoice from any list. The first cell now holds the way in: a link
  (rowLink) for a row that navigates, a button (rowBtn, .rowbtn) for one that opens a dialog.
  The row keeps its click; both look exactly as before until focused. An invoice without a
  number yet is named "Faktura bez numeru" instead of a bare dash.
- The account avatar was a <span> with a click handler, so the account sheet — sign-out, and
  on a phone every .js-tool — could not be opened from the keyboard. It is a button now, as
  in Atrium and Parafa (aria-label "Konto", aria-haspopup="dialog"); the shared .avatar rule
  already styles a button identically.
- A dialog makes the page behind it inert (aria-modal alone does not stop Tab), focuses its
  first field or else its first RENDERED control (the account sheet's .m-only rows are
  display:none on a desktop and cannot take focus), and closeModal() gives focus back to
  whatever opened it instead of dropping it on <body>. The opener is remembered before the
  page goes inert. The search palette does the same, and its input is labelled.
- The sign-in and dialog error banners are role=alert, so errors are announced.

Checked in the demo console (demo.js) with real key presses: Enter on a list link opens the
matter; the record-time dialog keeps focus through 30 Tabs and Escape returns it to the
button; the account sheet opens from the avatar with focus on "Zamknij" and Escape returns
it; Ctrl+K / Escape returns focus too. node --check frontend/app.js passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 21:55:11 +01:00
tobayahandClaude Opus 5.5 deb5e27ea3 Console EN: the fixed labels the backend sends, and the demo's chrome
The English console still showed Polish wherever the text comes from the API
rather than from app.js: the AML risk factors and their legal bases, the fee
calculator's proceedings, stages, sources and note, the built-in document
templates and their bases, how a rate was resolved ("cennik kancelarii „X”
(stopień: partner)") and the basis of a deadline counted from a service date.

These are closed sets defined in aml.py, fees.py, documents.py, rates.py and
deadlines.py, so they get keys like any other label; the ones framed by numbers
or a card name get anchored patterns that carry the number or the name through.
The new frame patterns (an option's fraction or percentage, a multiplier, a dash
before a basis) answer null unless the label inside is a known key, so user data
in the same shape is left alone. Bare statutory references in the fee basis
lines ("art. 13 ust. 1 pkt 2 u.k.s.c.") stay as cited.

The "preview only for built-in templates" message is written into a <pre>, which
localize() skips as raw content, so it is now passed through _tr by hand.

demo.js's login note and its two refusals get keys too: the demo is the deploy
an English visitor is most likely to see.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 17:40:36 +01:00
tobayahandClaude Opus 5.5 f257342042 Console EN: the strings the language switch still left in Polish
A static scan of app.js plus a crawl of the demo console in English found the
console's own text that never reached I18N: the matter search placeholder, the
"Billable time" tile, the party-link and remove-party messages, the declined
engagement toast, the first AML assessment heading, the notification "In the app"
switch, the unpaid-invoice cap note and the "Basis:" line of a document preview.

The AML "replace the current assessment" confirm had its key but called confirm()
without _tr, so it stayed Polish. The register lookup's pattern only took a
one-word source, so "Biała lista" (the VAT White List) fell through it.

Restoring a backup asked an English reader to type PRZYWRÓĆ. The word is now
translated with the page (RESTORE) and either spelling unlocks the restore.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 17:35:44 +01:00
adminandClaude Opus 5.5 124bc0e666 GET /stats: Sygna answers dredd-core's stats contract (M4, Panorama's tiles)
Two tiles, each counted for the caller by the very function its console list
calls, with the same arguments: open matters (matters.list_matters with
status=open; #/matters?status=open) and deadlines (deadlines.upcoming with the
Terminy screen's 60-day horizon, overdue included; #/deadlines). Behind the
session like every route, so Panorama's call with the person's own token sees
exactly that person's numbers.

dredd-core repinned v0.21.0 -> v0.23.0 (0.22.0 is opt-in, no change here).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 09:36:56 +01:00
admin 2e35f840c8 Merge pull request #13 from Alpaq92/shared-pin
SHARED.md: stop quoting the dredd-core pin, so a repin cannot fail CI again
2026-11-13 12:33:44 +01:00
Piotr ChojnackiandClaude Opus 5.5 e0bce880a6 SHARED.md points to the dredd-core pin instead of quoting it
Every repin from v0.17.0 to v0.21.0 left SHARED.md's quoted version behind and
failed "Deploy pre-flight". The quote existed so the page would not mislead;
checking that it matched only moved the failure to CI. requirements.txt is now
the one place the version is written. deploy_check.py fails if SHARED.md quotes
one again, and if it stops saying where the pin lives.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 12:15:29 +01:00
Piotr ChojnackiandClaude Opus 5.5 47b0ed44a4 SHARED.md: quote dredd-core v0.21.0, the pin requirements.txt installs
The K2 repin moved requirements.txt to v0.21.0 and left SHARED.md on v0.19.0,
so deploy_check.py fails "Deploy pre-flight" again, for the fourth repin in a
row. This commit only catches up; the next one stops it recurring.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 12:14:33 +01:00
adminandClaude Opus 5.5 ea18353e8d K2: link organisations to the shared counterparty register (dredd-core 0.21.0)
party.counterparty_id; create/update sync an organisation through core's
link_or_create when Sygna may write the register (natural persons never).
Revision 0006 links existing organisations, through the hub's import door
on the platform.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 12:33:07 +01:00
admin dec9dd1b65 Merge pull request #8 from Alpaq92/wyglad-i-jezyk
Console fully in English, palette focus fix
2026-11-10 20:33:27 +01:00
admin 13ed606329 Merge pull request #12 from Alpaq92/ci-fix
CI: quote the installed dredd-core pin, and stop racing curl into grep
2026-11-10 20:33:23 +01:00
Piotr ChojnackiandClaude Opus 5.5 057abe0739 CI: quote the dredd-core pin that is installed, and stop racing curl into grep
- SHARED.md still quoted v0.15.0, so deploy_check.py has failed the backend
  jobs' "Deploy pre-flight" step on every run since the v0.17.0 repin.
- compose-smoke piped `curl -fsS` into `grep -q` under pipefail. grep -q quits
  at its first match and curl, still writing, dies of SIGPIPE: the step fails
  silently although the page is right ("no SPA fallback", 2026-11-08). The page
  is now read into a variable first. A real uvicorn at 13d7851 serves the deep
  link with the console's <title>, so this was the test, not the edge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 11:25:33 +01:00
adminandClaude Opus 5.5 eece8d8d48 dredd-core 0.19.0: Galena calls through module_client (R2)
Repin dredd-core to v0.19.0. The four Galena calls go through
dredd_core.module_client (the acting person's token, no redirects, one
time budget). Sygna keeps retrying idempotent reads itself (429/5xx,
timeout, unreachable; back-off 0.5 s, 2 s; one shared budget); writes are
never retried. Errors stay Sygna's UpstreamError with the same messages:
a Galena 401/403 is not turned into Sygna's own. ENDPOINTS and its
contract test are unchanged; httpx stays for the KRS/VAT registers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 00:06:32 +01:00
tobayahandClaude Opus 5.5 2fa46291f6 Merge main (#11) into the English console, and carry #10's one line
The conflict was the dictionary's head: main had grown a short EN block of
its own. Both are kept as one; where they disagreed this branch's wording
stays (it was already the later key, so the console read it that way).

#11 reworded about thirty sentences after this translation was written, and
localize() matches by exact text, so each of those would have stayed Polish
without a conflict to say so. They have keys now, plus three patterns for
text built around a number or a date (the dashboard's deadline tile, the
reports' period line, the receivables total).

From #10, closed in favour of this: on the platform the module's own menu
leaves out its settings entry, because Atrium's Ustawienia opens it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uwxqGUzevJUNi45tARDzL
2026-11-09 17:48:37 +01:00
admin 1d5a60bdcb Merge pull request #11 from Alpaq92/ui-cleanup
Console clean-up: menu, Pulpit, settings tabs, and the defects found on the way
2026-11-09 16:31:50 +01:00
Piotr ChojnackiandClaude Opus 5.5 1a70d1b30c Console: "Otwórz sprawę" works again, plus what the review of this branch found
- JSON.stringify inside onclick="..." cut the handler short at its first quote,
  so "Otwórz sprawę" died on a syntax error and no matter could be opened from
  the console. Older than this branch. All six sites now go through jsArg.
- The default rate is checked before saving: "1.500,00" parsed as 1,50 zł.
- A pending check is never cut off GET /conflicts: the new badge points at it.
- A second matter no longer takes an enquiry off its first.
- A rejected 401 opens the sign-in screen, and a quick tab switch cannot replace
  the page with an error.
- Copy that said something untrue: the art. 115 k.c. note, "do przypisania" on
  a form that also files outgoing post, "w rejestrze" on the AML prompt.
- "kierownik" stays in the role's label, Polish plurals on the list counts.
- Two operator notes still named Administracja.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 13:44:13 +01:00
Piotr ChojnackiandClaude Opus 5.5 54cceff499 Console: one word per idea, and say what the numbers are
- "Zapytania i konflikty" names what the screen holds. Unassigned post is "do
  przypisania" everywhere, and Korespondencja says where assigned post went.
- "Należności przeterminowane" also summed invoices not yet due: it is now
  "wg terminu płatności". "Do rozliczenia" is "Czas rozliczalny".
- Raporty says it counts the reader's matters, and a non-moderator no longer
  sees colleagues at 0,0 % whose work is only out of their sight.
- Raw codes (high, viewer, manager) read in Polish.
- Roadmap talk, PLAN.md references and environment variables leave lawyers'
  screens; configuration hints stay for moderators.
- In-house: "Strony" and "Dział prawny" instead of the firm's words.
- Letters on a matter gain "Szczegóły", and only incoming ones show red.
- tests/test_console_nav.py pins the addresses and the chrome Atrium relies on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 13:34:13 +01:00
Piotr ChojnackiandClaude Opus 5.5 5ed8fe536b Console: sort the menu, link Pulpit's figures, split the settings into tabs
- Menu sections: "Codzienna praca" and the firm's own (or "Dział prawny"),
  emitted as flat .nav-sep siblings so Atrium's mirror carries them.
- "Zapytania i konflikty" gets a badge. Badges load at sign-in and on a timer
  instead of only after somebody opens Pulpit, and redraw only on a change.
- Pulpit's figures link to their lists, as Atrium's already do.
- "Administracja" becomes "Ustawienia Sygny": inside Atrium two different
  screens carried that word. Five tabs instead of one 3178 px page, each
  fetching only its own data. Bare #/admin still opens the first.
- On the platform the read-only copy of Atrium's accounts is gone, with one
  line saying who manages them. Standalone keeps the table and "Dodaj".
- The default rate is typed in zł, not grosze: 450 used to mean 4,50 zł/h.
- The top-bar clock preselects the open matter, so the matter header's button
  that only repeated it is gone. The Akta tab shows only when it embeds.
- One SMTP check instead of two on the same tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 13:31:01 +01:00
Piotr ChojnackiandClaude Opus 5.5 183cd5410b Console: fix defects found while auditing the UI
- fmtDays was declared twice, so deadline tables printed "-2 po terminie".
- openInvoice used an undefined id: no invoice dialog could open.
- "do potwierdzenia" now means statute or court, and shows on Terminy too.
- Service-date forms no longer pre-fill today (legal_service_date is never
  inferred) and refuse an empty date.
- A check opened from a list keeps its lead when the matter is opened.
- The deadline's creator is not offered a confirmation the server refuses.
- "Przypisz" is not offered on a letter that is already assigned.
- In-house: #/reports and ?tab=billing no longer render by direct address.
- AML: saving replaces the current assessment at once, so the form stays
  folded and asks first.
- Rejected promises with no catch now show a toast instead of nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 13:29:36 +01:00
adminandClaude Opus 5.5 13d7851797 dredd-core 0.18.1: walk routes through iter_routes
FastAPI 0.15x keeps each included router as one _IncludedRouter entry, so
the console wrapper (404 instead of 405 + Allow) and the route sweeps would
see no API route. Repins core from v0.17.0; FastAPI itself stays 0.115.6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 14:10:25 +01:00
admin 50e0f4965a Merge pull request #9 from Alpaq92/nav-admin-indent
Stop indenting Administracja twice in the sidebar
2026-11-01 17:29:08 +01:00
adminandClaude Opus 5.5 cd32640474 Readability: AA contrast for faint text (3.2 -> 4.7:1), 11px nav headers
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 17:16:54 +01:00
adminandClaude Opus 5.5 22c512a840 Make the console usable by keyboard, screen reader and finger
The shared ui/v1 pass Atrium got: icon-only buttons named, the toast a
live region, dialogs labelled, the page title an h1, a skip link, 44px
targets on touch, contained overscroll, theme-color.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 15:47:53 +01:00
adminandClaude Opus 5.5 3f7e8368ae Stop indenting Administracja twice in the sidebar
The link was a .nav-item inside a div.nav-item, so its padding counted
twice and the icon sat 12px right of every other entry (and in Atrium's
mirrored module nav). It also lights up now on the admin screens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 15:38:48 +01:00
tobayahandClaude Opus 5.5 54ab78f31c Console: translate the whole UI to English, on top of applyLang
A dictionary plus patterns for strings with numbers and dates, applied
only in EN, now riding on window.applyLang: the language still changes in
place, from each node's Polish source, and the MutationObserver that
catches screens written after load is installed in both languages
(localize() stays a no-op until the page has shown EN). The tab title
follows the language too.

Data, legal texts from Sygna's backend and the pl-PL number/date format
stay Polish on purpose.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011DXFYDzg1AAJGH56afAFAo
2026-10-23 16:14:01 +02:00
tobayah 58c06a48f0 ui/v1: no focus box inside the command palette's capsule
The bare-input focus ring (zero-specificity :where rule) also matched the palette's query field and drew a rectangle inside the capsule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Claude-Session: https://claude.ai/code/session_01SMnEzCfhURcxL2ZZTLa3YY
(cherry picked from commit 4a88e8e10f2047d0343271ea46b50a9b6ce69206)
2026-10-23 16:11:40 +02:00
adminandClaude Opus 5.5 6439f455a3 Repin dredd-core v0.17.0: the shared search contract
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 11:04:02 +02:00
adminandClaude Opus 5.5 3b764f9dbd localize(): stay a no-op in the source language until the page has shown the other one
The applyLang change made localize() walk every tree even in Polish, so that switching back could
restore the source text. Until the page has once shown English there is nothing to restore: keep
the early return for that case (as before), which also keeps the console tests' minimal DOM, with
no NodeFilter, working.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 10:54:28 +02:00
adminandClaude Opus 5.5 18949b5878 window.applyLang: switch the console's language in place, never reload
Atrium calls frame.win.applyLang(lang) when its language changes; the language button used to
reload the page and lose whatever was open. The hook accepts pl|en only, is a no-op on the
current value (no storage-event loop with Atrium), persists sygna_lang, sets <html lang> and
re-localizes from the Polish source: localize() now remembers each node's original text, so
EN -> PL works without a reload. The view is re-rendered through router() only when it holds no
typed or picked value; open modals are never touched. The language buttons use the same path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 09:50:50 +02:00
adminandClaude Opus 5.5 0926c26986 Answer the family search contract beside the grouped search body
GET /api/v1/search now also carries version, q, hits and truncated (dredd_core.search_contract,
0.17.0), ranked by score across every kind. The console's grouped body has no hits key, so both
shapes ride in one response and the console is untouched; format=v1 is accepted as a no-op.
Links are the console's own routes; a deadline or invoice without its matter is dropped and
unfiled correspondence links to the inbox. limit no longer 422s: it is clamped, per group (1-25)
for groups and over all kinds (1-50, default 10) for hits. Pin stays at v0.16.0 under
TODO(search-contract).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 09:50:20 +02:00
adminandClaude Opus 5.5 44d0e54730 Repin dredd-core v0.16.0: charset=utf-8 on every JSON response
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 23:41:31 +02:00
adminandClaude Opus 5.5 75c6cac29f Declare charset=utf-8 on every JSON response
Sygna sent raw UTF-8 under a bare application/json and
application/problem+json (API, problem responses 401/404/405/422/500,
OpenAPI, /healthz). Windows PowerShell 5.1's Invoke-RestMethod decodes
that as Latin-1 ("Rozporządzenie" -> "RozporzÄ…dzenie"); the same fix as
Insider be065e7.

One line in edge.SecurityHeaders (the outermost middleware):
dredd_core.json_charset.ensure_json_charset_message appends the charset
to application/json and application/*+json only; HTML, event streams
and binary responses are untouched, nothing is buffered.

tests/test_json_charset.py sweeps every parameter-free GET route plus
OpenAPI, /healthz and 401/404/405/422/500 problem responses, DB-free.

TODO before merge: repin dredd-core to v0.16.0 (json_charset is new
there); requirements.txt carries the marked TODO, still on v0.15.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 23:01:52 +02:00
admin 5a6c8151fa Merge pull request #7 from Alpaq92/core-v0.15
Repin dredd-core v0.15.0: the managed check knows the shared provider tables
2026-10-20 13:44:30 +02:00
adminandClaude Opus 5.5 64c58b861c Repin dredd-core v0.15.0: the managed check knows the shared provider tables
Atrium's 0009 grants every module SELECT on dredd.model_provider and
model_provider_policy; v0.14.0's check called that "not on the allowlist"
and failed push.sh on the box. v0.15.0's reader tier expects exactly that
(and nothing on the keys). No other change: the app does not use providers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 13:44:22 +02:00
admin 5a45121d37 Merge pull request #6 from Alpaq92/core-v0.14
Repin dredd-core v0.14.0: the cross-site guard from the core
2026-10-19 20:23:01 +02:00
adminandClaude Opus 5.5 cc2389c78c Repin dredd-core v0.14.0: the cross-site guard (and audit reader) from the core
refuse_cross_site_write now asks dredd_core.cross_site.cross_site_write_refused
and keeps only the app's own error; SAFE_METHODS and bearer_token come from
the core too. The local copies were identical to it, so behaviour is
unchanged. Where the app reads the audit log (Atrium, Compass) it uses
dredd_core.audit_log.list_entries. 0.12 -> 0.14 adds only opt-in modules:
no core table changed, no revision needed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 20:22:53 +02:00
admin cbd537dcd5 Merge pull request #3 from Alpaq92/legalwork-ui
Console on the family's ui/v1 look (legalwork)
2026-10-19 16:49:23 +02:00
admin d1a7a19b86 Merge pull request #5 from Alpaq92/bez-caddy-reszta
Remove the remaining Caddy references: Python is the edge
2026-10-19 15:06:00 +02:00
adminandClaude Opus 5.5 272ba44c1b Remove the remaining Caddy references: Python is the edge
Caddy is gone from the platform and the standalone stacks; the backend is
its own edge (and Atrium's backend the platform's front door). Comments,
docstrings and current docs now describe that instead of naming Caddy;
leftover config lines (.gitattributes, CREDITS rows) go; dated records are
marked historical. Test names lose "Caddy" (CADDY_*_CSP -> PINNED_*_CSP);
no assertion changes, and the "no Caddy" guards stay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 14:15:35 +02:00
admin 443514c5a2 Merge pull request #4 from Alpaq92/poprawki/drobne
A body the route cannot read as JSON is a 422, never a 500
2026-10-19 11:06:12 +02:00
adminandClaude Opus 5.5 628251bdf1 A body the route cannot read as JSON is a 422, never a 500
With a wrong content-type, pydantic puts the raw body bytes into the
validation error's `input`; the RequestValidationError handler passed
exc.errors() straight to JSONResponse, which cannot serialize bytes, so
the 422 handler itself crashed into a 500. _plain_errors() drops `input`
and `url` and stringifies `ctx`; the problem+json shape is unchanged, and a
submitted value (a password) is no longer echoed back.
tests/test_request_body_problems.py: invalid JSON and three wrong
content-types are 422 problem+json; a valid body still passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 09:35:21 +02:00
tobayahandClaude Opus 5.5 fe8fbf4457 Carry the ui/v1 package, so the console looks right standalone
The backend serves the console itself now (no Caddy), so ../atrium/ui/v1/ only resolves behind the platform's front door. Sygna gets a byte-identical copy of Atrium's package, like the other modules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Claude-Session: https://claude.ai/code/session_01SMnEzCfhURcxL2ZZTLa3YY
2026-10-18 16:28:35 +02:00
tobayahandClaude Opus 5.5 c77731ef07 CREDITS: font Inter (OFL) i legalwork (MIT) za wygląd ui/v1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SMnEzCfhURcxL2ZZTLa3YY
2026-10-18 16:28:35 +02:00