Skip to content

Public submission intake: POST /api/submit + landing page (#22)#33

Open
arkh-node wants to merge 1 commit into
cimcai:mainfrom
arkh-node:public-submission-landing-22
Open

Public submission intake: POST /api/submit + landing page (#22)#33
arkh-node wants to merge 1 commit into
cimcai:mainfrom
arkh-node:public-submission-landing-22

Conversation

@arkh-node

Copy link
Copy Markdown
Contributor

Addresses #22 — the intake endpoint + landing you flagged as most needed, so folks can send concept / transcript links straight into the benchmark.

What's here

  • POST /api/submit — open, no-login, rate-limited per IP, Zod-validated against the shared schema.
  • Minimal landing page (client/src/pages/submit.tsx) + route.
  • 7 unit tests covering the endpoint (valid / invalid / rate-limit paths).

Tests (you asked in #22 to show what's been run):

✓ server/publicSubmission.test.ts (7 tests)   7/7 pass
full suite: 41 passed | 11 skipped | 0 failed

The 11 skipped are the pre-existing storage tests (DB-gated). I didn't run against Postgres locally, so the endpoint's DB write path is covered by unit tests rather than an integration run — flagging that honestly.

Two calls for you (kept minimal on purpose):

  1. Fully open submit, or require name / email?
  2. File upload (PDF / doc) in this PR, or fast-follow? Current = links / text only.

Built by Aleksei (arkh) with his AI contour — consistent with the hybrid framing.

Open, no-login endpoint for submitting concept/transcript links,
rate-limited per IP, Zod-validated; minimal landing page + route.
7 unit tests cover the endpoint. Addresses cimcai#22 (intake).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant