Repository navigation
Closed
Labels
area:docsTouches the docs areaarea:serverTouches the server areaready-for-agentFully specified, ready for an AFK agent
Description
Problem
Reports (GET/POST /report/:draftId, the draft_reports table, the wrapper form) were PatchPage's free-service safety valve. Nothing later builds on them, and they are the one reader-facing surface that would otherwise leak into packages/serving. Decided on Package decomposition by capability; the port starts by removing them so no later ticket carries them.
Do
Plain TypeScript, no Effect — this is pre-port.
- Delete the
/report/:draftIdroutes inapps/server/src/app.ts, the report form and any report link inrender.ts, and the report-specific rate limit (note in the PR whether any page-level rate limit remains once reports are gone —servingneeds to know whether it importslimits). - Delete migration
0006_draft_reportsoutright (no production database exists; dev instancesreset). Delete the report rows frompackages/db(types, Postgres and JSON drivers) and their tests. - Moderation (the takedown state a report used to feed) stays; only the reporting entry point goes.
- Update
docs/API.md,apps/server/CONTEXT.md(drop the report terms),skills/patchy/SKILL.mdand README where reports are mentioned. - Remove the report cases from
app.test.ts/app.postgres.test.ts.
Done when
No route, table, type, test or doc mentions reports; pnpm lint, typecheck, test green; the PR records whether a page rate limit survives.
Decisions implemented
Package decomposition by capability (reports removed).
Filed from the Effect v4 port spec (#68) by the map task Write the port spec and file the build tickets.
Metadata
Metadata
Assignees
Labels
area:docsTouches the docs areaarea:serverTouches the server areaready-for-agentFully specified, ready for an AFK agent
Activity