Skip to content

chore(server): remove reports #69

Closed

Description

@allisonmahmood

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/:draftId routes in apps/server/src/app.ts, the report form and any report link in render.ts, and the report-specific rate limit (note in the PR whether any page-level rate limit remains once reports are gone — serving needs to know whether it imports limits).
  • Delete migration 0006_draft_reports outright (no production database exists; dev instances reset). Delete the report rows from packages/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.md and 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:docsarea:serverready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions