reports: user articles that embed claims under a database seal and link each other
- /berichte lists published reports; /berichte/<slug> renders a report: Markdown subset built as React
elements (no raw HTML), [[angabe:ID]] embeds the claim card under a seal (green 'Amtliche Daten' when a
source is official), [text](angabe:ID|bericht:slug|person:slug|org:slug) links inline, [[bericht:slug]]
embeds another report; a box says how many claims the text rests on; backlinks between reports.
- /berichte/verfassen (login at the proxy): own reports, editor with a picker that finds claims, reports and
persons and inserts their codes; draft / published / withdrawn; every save kept in report_revision.
- Claim pages show the embed code, 'use in a new report' and the reports citing the claim.
- API: GET /api/v1/reports, /reports/{slug} (references resolved like permalinks, merged claims follow the
survivor); POST/PUT for the web app with POLITRACK_AUTHOR_TOKEN on behalf of the proxy user. The web app
trusts Remote-User only with X-Politrack-Proxy = POLITRACK_PROXY_SECRET.
- Migration 0011 (report, report_revision, report_reference, app_user.display_name); docs: data model,
deployment (sign-in setup), design system, roadmap.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f2d72fe464
commit
9f0e2fc115
32 files changed
+1974
-21
No files matched your search
@@ -27,7 +27,8 @@ All five stylesheets are imported once, in order, by `src/app/[locale]/layout.ts
|
||||
* **Only tokens** for colour, spacing, radius and type. The exceptions are deliberate: party colours
|
||||
(from the data), platform brand colours, and the favicon.
|
||||
* **Server first.** Pages and most components are async server components. Client components exist only
|
||||
where the browser must act: `ThemeSwitcher`, `LocaleSwitcher`, `NavLink`, `SettingsForm`, the error page.
|
||||
where the browser must act: `ThemeSwitcher`, `LocaleSwitcher`, `NavLink`, `SettingsForm`, `ReportEditor`,
|
||||
the error page.
|
||||
* **No JavaScript needed** for navigation, filters, tabs, disclosures or the mobile menu: links, GET forms,
|
||||
`<details>` and one checkbox toggle.
|
||||
|
||||
@@ -176,6 +177,21 @@ same mark as the favicon.
|
||||
| `SocialFeed` | `SocialFeed.tsx` | post cards, no embeds |
|
||||
| `SearchForm` | `SearchForm.tsx` | the big search field (optional date range) |
|
||||
| `SettingsForm` (client) | `SettingsForm.tsx` | "Meine Filter" |
|
||||
| `ReportBody`, `ClaimEmbed` | `ReportBody.tsx` | a report's text (Markdown subset, built as React elements, never raw HTML); embedded claim card under its database seal |
|
||||
| `ReportCard`, `ReportList` | `ReportCard.tsx` | a report in lists and embedded in other reports: author, date, how many claims (official) it rests on |
|
||||
| `ReportEditor` (client) | `ReportEditor.tsx` | title, summary, body and the reference picker (claims, reports, persons) |
|
||||
|
||||
### Reports
|
||||
|
||||
A report mixes the author's text with facts from the database, and the reader must always see which is which:
|
||||
|
||||
* Embedded claims (`[[angabe:ID]]`) are the full `ClaimCard` inside `.claim-embed`, under a seal: green shield
|
||||
"Amtliche Daten" when a source is official (`source.kind = 'official'`), accent "Aus der Datenbank" otherwise.
|
||||
* Inline references (`[text](angabe:ID)`) are tinted the same way and end with the seal icon; links to reports,
|
||||
persons and organisations are ordinary links. A reference that no longer resolves is struck through, never
|
||||
silently dropped.
|
||||
* The `.report-basis` box under the header says how many claims the report rests on and that the text around
|
||||
them is the author's. The list page carries the same disclaimer as a notice.
|
||||
|
||||
### The claim card
|
||||
|
||||
|
||||
Reference in new issue
Block a user