by adom
How the Adom Wiki (wiki.adom.inc) works and how to drive it with the adom-wiki CLI: the two storage layers (git page repo vs package registry), hosting source by pushing files (not a tarball), making packages, cutting per-platform releases, and the three-tier skill layout (user skills ship, dev-skills/ and publish-skills/ stay source-only). adom-wiki is the current tool; adompkg is deprecated.
Part requests: email capture for signed-out visitors, status page, ready notifications, real ETA
An external tester searched the wiki for an MPN with no page today and saw only "no results". Two problems showed up: the request flow was switched off in production, and once it is on, a visitor still has no way to know the part is being built or when it is ready. This issue covers both, plus email capture for signed-out visitors.
1. Switch it on (in progress)
Production had no COMPONENT_OCEAN_REQUEST_KEY, so partRequestsEnabled() was false: no "Request this part" box, POST /api/part-search-miss answered 503 PART_REQUESTS_OFF, and Component Ocean has recorded zero search misses ever. Colby added the key today (10-27) and is redeploying. Done when an MPN search with no page shows the request box.
2. Signed-out visitors: ask for an email instead of a login
Today a signed-out visitor sees "Log in to request this part". That turns away the most interested visitor at the moment they want something. Instead:
- The box asks for an email: "No page for XYZ123 yet. We'll build it, usually within minutes. Where should we send it?" [email] Notify me
- The part is queued at once. A build costs about $0.03, so it is not worth holding it until the email is verified.
- Immediate email: "We're building XYZ123", with a link to a status page for that request (see 4). This answers "how do I know it's happening?" even after the tab is closed.
- Second email when the request reaches
built: "XYZ123 is ready", with the page link and "Create a free account to download it for KiCad / Altium / Fusion and keep track of your parts". If it ends inrevieworcannot_build, an honest email saying so, with the reason. - A separate, unticked "Keep me posted about Adom" checkbox. The two "your part" emails are transactional; marketing needs the opt-in.
- When the person later signs up with the same email, their past requests attach to the new account.
Guardrails:
- Rate limits per email and per IP (for example 5 requests a day), with a CAPTCHA only after a limit is hit, so the form cannot be used to mail-bomb someone.
- The email address stays in the wiki. Component Ocean receives only the MPN and an opaque requester id (for example a salted hash), as its request routes are designed today: a request names a part and nothing else.
- Email goes through the wiki's existing Resend integration (the server log says "resend API key is not configured"; that key is needed too).
3. Status page per request
/part-request/<id>?t=<token> (an unguessable token in the link, so no login is needed) shows the same states the search box shows today: queued with position, building, drawing a footprint, waiting for pinout review, built with the page link, or could not be built with the reason. Signed-in users reach the same page from 5.
4. Tell people when it's ready, not only while the tab is open
The search box polls every 20 s and gives up after about 30 minutes; nothing reaches a person who left. Add:
- signed-in requesters: a wiki inbox notification on
built,reviewandcannot_build(Component Ocean's outcome reply already returns the requesters:POST /api/part-request/<id>/outcome->notify); - signed-out requesters: the email in 2.
5. "My part requests" on the profile
A short list of the signed-in user's requests and their states, for anyone who lost the tab.
6. A real estimate instead of "usually a few minutes"
A single request builds in about 20 to 50 s once claimed, so "a few minutes" is true when the queue is quiet. When someone submits a whole BOM it is not: the median time from request to built across the 372 requests so far is about 4.6 hours (p25 61 min, p90 6.3 h), because most came in batches of hundreds. Component Ocean can return an ETA with the position (queue ahead x measured build time / parts built in parallel), and the box shows "about 4 minutes" or "about 2 hours".
On urgency: we decided against a "need it now / later is fine" choice. One request is fast already, and requests from people already go ahead of bulk work. If the queue gets busy, priority can be given quietly (for example each person's first few requests a day go first) without asking the visitor to choose.
Where the work is
- git-wiki: the signed-out box and email form, rate limits, the status page, both emails, inbox notifications, the "My part requests" list, and attaching past requests on signup.
- Component Ocean (Ray's side): an opaque requester id for email requesters, and an ETA in the request reply and
GET /api/part-request/<id>. - Factory: nothing. It already reports every outcome to Component Ocean.