Bits
community.share-build — A visitor shares a build
- Trigger: a visitor submits "Show us your build" on
/community. - Who: anyone.
- Path:
apps/app/src/app/(site)/community/build-form.tsx→ Server ActionsubmitBuild(community/actions.ts, Zod) →POST /messageswith kindbuild, the model as the topic (first 40 characters) and as the first line of the message (seemessages.create). The crew reads it on/crewas "Build" (crew.inbox). - Data: writes a
messagesrow for the crew's inbox and emailsCREW_INBOXwhen set ("New build on SunTzu RC: "). - Rules: name, email, what was built or flown (2+ characters), the story (20+ characters) and consent to publish are required; the link to photos is optional and must be an http(s) link.
- Errors: invalid fields show a message next to them. After an error the form keeps what was typed, the cursor goes to the first field with an error, each error is read with its field, and the answer is announced (
components/forms/feedback.tsx, spec 0010). - Test:
e2e/community.share-build.e2e.ts(a build reaches/crewandCREW_INBOXas a build; without consent, or with ajavascript:link, the form says so and nothing is sent) - Observe: API log lines with
bit: "messages.create". - Status: verified — 2026-11-18 (end-to-end test)