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).
Today
The landing page: the day's KPIs, what is awaiting a human, and quick jumps into the work.
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.
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.
The worklist for supply and merch orders — what needs picking, packing and shipping, separate from the live-animal pipeline.
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.
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.
Everything currently for sale on the website, from Shopify. Edit price, morph, notes and photos in place.
The archive of sold animals, including those marked sold in HatchLog.
The supply and merch catalog from Shopify.
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.
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.
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.
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.
Customer and order records, combined across Shopify and the old Squarespace history (the same email becomes one person). Search orders, sort any column.
Sales analytics and conversion, visitors and sources from Google Analytics, best sellers, and week-on-week trends against the targets.
Tasks & activity log
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.
| Job | Runs | What it does |
|---|---|---|
| /api/cron/go-live | every minute | Publish scheduled gecko listings the moment their go-live time arrives |
| /api/cron/publish-posts | every 5 min | Publish approved social posts within ~5 min of their slot |
| /api/cron/sync-shopify | every 5 min | Pull products and orders from Shopify into the dashboard |
| /api/cron/build-listings | every 5 min | Build Shopify products for approved new-gecko listings |
| /api/cron/listing-pictures | every 10 min | Make the certificate and lineage pictures for listings |
| /api/cron/weekly-premake | Sun 14:00 UTC | Pre-make listing pictures for the week ahead |
| /api/cron/sync-customers | daily 13:30 UTC | Sync Shopify customers into the Customers list |
| /api/cron/hatchlog-check | daily 13:00 UTC | Check the HatchLog Google Drive backup and flag failures |
| /api/cron/shipping-schedule | every 3h + Fri/Sat evenings | Run the shipping loop and send the Friday availability email |
Agents — the design15 narrow jobs · 3 runners
Plan → draft → verify → publish → measure listings and posts.
Friday email → intake → weather → manifest → dispatch.
Pull post metrics, roll up KPIs, propose cadence changes.
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.
| Tool | What it does |
|---|---|
| get_today | KPIs and counts of work awaiting a human |
| list_posts | Every post with type, platforms, format and status |
| create_post | Build an Instagram/Facebook post into the Sunday gate |
| approve_post | Approve a post at the gate by its code |
| reject_post | Reject a post at the gate by its code |
| generate_weekly_posts | Draft the Mon/Wed/Fri product feature posts |
| request_media_upload | Short-lived Vercel Blob upload link for photos/video |
| list_products | Shopify products mirrored into the dashboard |
| list_orders | Shopify + Palmstreet orders mirrored into the dashboard |
| sync_shopify | Pull the latest products and orders from Shopify |
| create_task | Add a team task (assignee, due date, priority) |
| list_tasks | The team task list |
| complete_task | Mark a task done by id |
Integrations
The store of record for products, inventory and orders. Listings are built here; products and orders sync back every five minutes.
Brian's breeding records, mirrored from a Google Drive backup read by a service account. The source for available geckos, parents and notes.
Media storage. Photos and videos for posts and listings are uploaded here via short-lived upload links.
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).