1. Spec
# Hive Log, version one
## App in one line
A phone app for one beekeeper to log hive inspections at each site, including without signal, and see which hives need attention next visit.
## Main user and flow
Main user: a beekeeper with 42 hives across 6 sites, inspecting alone with gloves on, often with poor signal.
1. Open the app, already signed in, and land on the Sites screen.
2. Tap a site to see its hives, flagged hives first.
3. Tap a hive (e.g. HB-07), then tap "New inspection".
4. Fill in queen seen, brood frames, honey frames, varroa count, temper, and up to 2 photos. Tap "Save".
5. Return to the Site screen. The hive shows red if its varroa count is over 9.
6. If there is no signal, the inspection is held on the phone and uploads by itself when signal returns.
## Screens
Sign in
- Email field and a "Send sign-in link" button. No password.
- After sending, show "Check your email for a link".
Sites (home)
- A list of the user's sites, sorted A to Z [assumed].
- Each row shows the site name and "X need attention" in red if any hive is flagged.
- "Add site" button opens a form with a name field, plus Save and Cancel.
Site
- Site name at top, with Edit (rename) and Delete buttons.
- List of hives: red-flagged hives first, then by painted ID A to Z [assumed].
- Each row shows the painted ID, last inspection date and last varroa count, or "No inspections yet".
- "Add hive" button opens a form with a painted ID field (e.g. HB-07), plus Save and Cancel.
Hive
- Painted ID, site name, and a red "Needs attention" banner if flagged.
- Big "New inspection" button.
- Past inspections, newest first: date, varroa count, temper, and "Waiting to upload" if not yet sent.
- Tap an inspection to open Inspection detail.
New inspection
- Queen seen: two large buttons, Yes and No.
- Brood frames and honey frames: number with large minus and plus buttons, 0 to 30.
- Varroa count (mites per 300 bees): number with large minus and plus buttons.
- Temper: three large buttons, Calm, Nervy and Aggressive.
- "Add photo" (camera or gallery, maximum 2), optional notes [assumed], then "Save" and "Cancel".
Inspection detail
- All fields read-only, with photos shown full width.
- "Delete" button asks "Delete this inspection?" with Delete and Cancel buttons.
## Data
Site
| field | type | notes |
| id | id | |
| owner_id | user id | |
| name | text | required |
| created_at | datetime | |
Hive
| field | type | notes |
| id | id | |
| owner_id | user id | |
| site_id | site id | required |
| painted_id | text | required, unique per owner [assumed], e.g. HB-07 |
| created_at | datetime | |
Inspection
| field | type | notes |
| id | id | created on the phone so offline saves work |
| owner_id | user id | |
| hive_id | hive id | required |
| inspected_at | datetime | phone time when Save is tapped |
| queen_seen | boolean | required |
| brood_frames | integer | 0 to 30 |
| honey_frames | integer | 0 to 30 |
| varroa_count | integer | 0 to 300 [assumed] |
| temper | enum | Calm, Nervy, Aggressive |
| notes | text | optional [assumed] |
Photo
| field | type | notes |
| id | id | |
| inspection_id | inspection id | maximum 2 per inspection |
| image | file | resized before upload |
## Rules
- Users see and change only their own records. A helper uses the owner's account.
- A hive needs attention when its most recent inspection has varroa_count over 9 [assumed: latest only].
- Inspections cannot be edited after saving, only deleted.
- Shrink photos on the phone before upload to about 1600px on the long edge [assumed].
- Offline: sites, hives, past inspections and their photos stay viewable from the last sync. New inspections and photos are queued and upload automatically when signal returns. Queued items can be deleted.
- Adding, renaming or deleting sites and hives requires signal [assumed]. When offline, show "Needs signal".
- A site or hive can be deleted only when empty [assumed]. Otherwise show "Remove its hives/inspections first".
- Empty states: "No sites yet. Add your first site." and "No hives at this site yet."
- Errors: a duplicate painted ID shows "HB-07 already exists". An upload failure keeps the item queued and retries.
- Use only free-plan services.
## Look and feel
- Buttons and inputs at least 56px tall and full width, easy to tap with gloves.
- High contrast and large text, readable in sunlight.
- Red is used only for "needs attention" and always comes with text, not colour alone.
- Single column, no menus deeper than one tap.
## Not in version one
- Treatment reminders
- Honey harvest weights per site
- Weather pulled in automatically
- Sharing a site with the landowner
- Separate logins for helpers
- Editing saved inspections
- Moving a hive between sites
- Attention rules other than varroa over 9
- Adding sites or hives offline
2. Decisions for me
- "Needs attention" uses the latest inspection only. A hive clears once a newer inspection shows 9 or under. The alternative is to flag a hive if any inspection in the last few weeks was over 9.
- Painted IDs are unique across all sites. This stops two HB-07s from existing. The alternative is uniqueness per site, if you reuse numbers at different sites.
- Sites and hives need signal to add or change; only inspections work offline. This keeps syncing simple. The alternative is full offline editing, which is more for Bolt to get right.
- Sites and hives can be deleted only when empty. This protects your history. The alternative is deleting everything inside after a stronger confirmation.
- Varroa is capped at 0 to 300 and there is an optional notes field. The alternatives are no cap, and dropping notes if you want the form as short as possible.
3. Next prompts
- Add treatment reminders: let me record a varroa treatment on a hive with a date and product, and show hives due for a follow-up on the Site screen.
- Add honey harvest weights per site: let me log a harvest with date and kilograms, and show the season total on each site.
- Pull in weather automatically: when an inspection is saved, attach the temperature and conditions for that site's location and show them on Inspection detail.