Help / Documentation
Help · everything in one place

Dashboard documentation

What every part of the Altitude Exotics operating system does, how the pieces connect, what runs on its own, and how to operate it from Claude. Jump to a section from the list on the left.

How the system works

The dashboard is the operating system that runs Altitude Exotics — a crested-gecko and dry-goods business — mostly on its own. It is organized as two unattended loops behind two human gates, a measurement arm, and one system of record (a Postgres database every page and tool reads and writes).

Content loopPlan the week's posts → draft → Sunday gate → publish.
Shipping loopFriday availability email → customer schedules → weather check → manifest → tracking.
MeasurementShelf time, revenue, traffic and social growth roll up into the KPI scoreboard.
Human gates. Nothing goes public until a person approves it. Social posts wait at the Sunday gate; new gecko listings wait for review before they build. Everything else the system does is reversible and logged to the activity log.

Today

The landing page: the day's KPIs, what is awaiting a human, and quick jumps into the work.

Today/

At-a-glance scoreboard — live-animal shelf time, dry-goods revenue, site traffic and social growth — plus the count of posts, listings and tasks waiting on someone.

Shipping

Live animals ship overnight on Monday, Tuesday or Wednesday only. The shipping loop collects Brian's open days, emails customers to schedule, checks the weather, and tracks each box to its first scan.

Live gecko orders/shipping

The ship list: every live-animal order with its scheduled day, address, weather status and customer notes. Print a packing invoice and email the customer from each order. Search, sort and jump by day.

Dry goods orders/dry-goods

The worklist for supply and merch orders — what needs picking, packing and shipping, separate from the live-animal pipeline.

Weather & the Friday email. The system holds shipments outside the safe temperature band and sends the Friday availability email automatically on Friday evening (Mountain time), naming the open and closed days. See Automations.

Geckos & listings

Geckos come from HatchLog (Brian's breeding records, mirrored from a Google Drive backup). The dashboard turns an available gecko into a priced, tagged, scheduled Shopify listing — with the Reptile Club certificate and lineage pictures made automatically.

New geckos/new-geckos

The review queue: geckos waiting to publish. Set retail and sale price, fix the morph or sex, write notes from the HatchLog notes, choose photos, then schedule go-live (all at once, or N a day) or publish now. Shift-click selects a range.

Live geckos/live-geckos

Everything currently for sale on the website, from Shopify. Edit price, morph, notes and photos in place.

Sold geckos/sold-geckos

The archive of sold animals, including those marked sold in HatchLog.

The supply and merch catalog from Shopify.

Pricing & tags are rules, not guesswork. HatchLog's asking price is the retail price; a sale price shows the retail crossed out (Shopify compare-at). Tags are generated from the morph, sex and hatch year. Both are covered by the automated tests.

Posts

Every Instagram/Facebook post is built into a Sunday approval gate. Nothing publishes until Brian approves it; approved posts go out within about five minutes of their scheduled time.

Post Studio/posts

Build a post — pick the type, write the Instagram and (optional separate) Facebook caption, choose Feed or Reel, attach one photo/video or a carousel, and set the day or an exact time.

Sunday gate/gate-sunday

The approval queue: posts waiting first, approved below, a published group, and rejected posts collapsed with undo. Breeder highlights schedule themselves — Sunday 5 PM and Thursday 9 AM MT.

Calendar/calendar

The week's planned and published posts laid out by day.

Orders & customers

The records behind everything, plus the numbers that say how the business is doing.

Orders and customers/data

Customer and order records, combined across Shopify and the old Squarespace history (the same email becomes one person). Search orders, sort any column.

KPI scoreboard/reports

Sales analytics and conversion, visitors and sources from Google Analytics, best sellers, and week-on-week trends against the targets.

Tasks & activity log

Tasks/tasks

A shared team to-do list — assignee, due date and priority. Also reachable from Claude.

Activity log/log

A running, filterable record of everything the system and its tools did, in Mountain time — the audit trail that makes the automation safe to trust.

Automations — what runs itself

The real automation today is a set of Vercel cron jobs (scheduled server routes). These are what actually keep the loops turning while no one is watching.

JobRunsWhat it does
/api/cron/go-liveevery minutePublish scheduled gecko listings the moment their go-live time arrives
/api/cron/publish-postsevery 5 minPublish approved social posts within ~5 min of their slot
/api/cron/sync-shopifyevery 5 minPull products and orders from Shopify into the dashboard
/api/cron/build-listingsevery 5 minBuild Shopify products for approved new-gecko listings
/api/cron/listing-picturesevery 10 minMake the certificate and lineage pictures for listings
/api/cron/weekly-premakeSun 14:00 UTCPre-make listing pictures for the week ahead
/api/cron/sync-customersdaily 13:30 UTCSync Shopify customers into the Customers list
/api/cron/hatchlog-checkdaily 13:00 UTCCheck the HatchLog Google Drive backup and flag failures
/api/cron/shipping-scheduleevery 3h + Fri/Sat eveningsRun the shipping loop and send the Friday availability email

Agents — the design15 narrow jobs · 3 runners

Content half7 agents

Plan → draft → verify → publish → measure listings and posts.

PlannerBuild next week's post calendar from the cadence rules and stock
Post DrafterDraft each slot's copy and photos; maintain morph pages
Calendar CheckerVerify every draft against the live catalog and photos
PublisherPublish each approved post at its slot and log the id
Shelf LedgerSnapshot the catalog daily; track days-on-site and days-to-sale
Collection SyncMirror HatchLog, draft sale listings, write sales back
Offspring NotifierTell waiting buyers when a matching gecko is listed
Shipping half6 agents

Friday email → intake → weather → manifest → dispatch.

Friday ReminderSend each pending customer the Friday scheduling email
Intake ClerkTurn each scheduling form into a validated shipment request
Weather WatcherCheck forecasts against the safe-shipping limits; hold on a fail
Manifest BuilderAssemble the noon ship list with addresses and weather
Manifest CheckerTrace every manifest row back to its order before Brian sees it
Dispatch NotifierOn the first FedEx scan, email tracking and mark shipped
Measurement half2 agents

Pull post metrics, roll up KPIs, propose cadence changes.

Insight CollectorPull post reach/interactions at 24h, 3d, 7d, 14d; snapshot followers
Engagement AnalystRoll the week into one KPI snapshot; propose the next cadence change

Full detail — each agent's skills and stop condition — lives in docs/agents.md in the repo.

Operate it from Claude (MCP tools)13 tools

The dashboard ships an MCP server (mcp/server.ts) that exposes its data and actions as tools, so you can run the app from Claude Desktop or Claude Code. The tools talk straight to the same database, so anything they change shows up in the dashboard immediately.

ToolWhat it does
get_todayKPIs and counts of work awaiting a human
list_postsEvery post with type, platforms, format and status
create_postBuild an Instagram/Facebook post into the Sunday gate
approve_postApprove a post at the gate by its code
reject_postReject a post at the gate by its code
generate_weekly_postsDraft the Mon/Wed/Fri product feature posts
request_media_uploadShort-lived Vercel Blob upload link for photos/video
list_productsShopify products mirrored into the dashboard
list_ordersShopify + Palmstreet orders mirrored into the dashboard
sync_shopifyPull the latest products and orders from Shopify
create_taskAdd a team task (assignee, due date, priority)
list_tasksThe team task list
complete_taskMark a task done by id
Posts still wait at the gate. create_post and generate_weekly_posts only draft into the Sunday gate — a human still approves before anything is published.

Integrations

The store of record for products, inventory and orders. Listings are built here; products and orders sync back every five minutes.

HatchLog (Google Drive)/new-geckos

Brian's breeding records, mirrored from a Google Drive backup read by a service account. The source for available geckos, parents and notes.

Vercel Blob/posts

Media storage. Photos and videos for posts and listings are uploaded here via short-lived upload links.

Instagram & Facebook (Meta)/gate-sunday

Approved posts publish here, including Reels and carousels.

Tech, testing & deploys

Stack
Next.js (App Router) + React, Postgres via Drizzle ORM, Clerk auth, hosted on Vercel.
System of record
One Postgres database. Every page and MCP tool reads and writes it; migrations live in drizzle/.
Tests
Unit tests next to the code (pnpm test). A pre-commit hook runs the suite and the TypeScript type check and blocks the commit on any failure; results are written to TESTS.md.
Deploys
Pushing to main triggers a Vercel production build automatically.
Repo docs
README.md (setup & MCP), docs/agents.md (agent architecture), TESTS.md (live test report).