Files
supermarket/TEST.md
T
davidandClaude Opus 5.5 da16736fb4 Phase 10, part 9: the server package
compose.server.yaml runs Supermarket behind Caddy (HTTPS from Let's
Encrypt, Caddy's own CA or the team's), with Postgres on an internal
network and a nightly pg_dump kept two weeks. install-server.sh asks for
the domain, certificate and mail server, makes the secret key and database
password, starts it all and prints the setup link. Settings → Backups lists
the dumps on a server, and how the operator restores one. Checked end to
end in Docker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 09:37:34 -07:00

852 lines
43 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Supermarket: a checklist for testing by hand
Work through this in the app at <http://localhost:8470> to confirm that
each part works and feels right. Tick a box when the step behaves as
described. Where it doesn't, write down what you saw next to it (the page,
what you clicked, the message shown) and bring it back as a fix.
Items marked **(costs)** spend money or credits: AI calls (writing pages,
web searches), Hunter.io credits. Items marked **(real)** do something
outside the app that people can see or that can't simply be undone: posts
and emails, pushes and pull requests on your Gitea, restores. Leave them
for last, or skip them. Before a session, make a backup:
`supermarket backup "before testing"`.
Throughout, also notice:
- [x] Every page loads without an error, in both light and dark mode
(follows the system setting).
- [x] The sidebar shows where you are, and the Posts, Review and Outreach
counts match what's on those pages.
- [ ] After every Save or action, a short message confirms it at the top of
the page. A failure says what went wrong in plain words.
- [ ] Slow buttons (fetching, writing, searching, sending) change their
label while they work and can't be clicked twice.
- [x] On a narrow window, the menu button opens and closes the sidebar.
- [x] Press `/` anywhere: the search box takes focus.
## 1. Install, launch and the command
- [x] `supermarket status` says it's running, with the version.
- [ ] `supermarket` (or the Supermarket icon in the app grid) opens the app
in the browser.
- [x] `supermarket stop`, then `supermarket start`: the app stops, then comes
back with the same data.
- [x] `supermarket logs` follows the log; Ctrl-C ends it.
- [x] `supermarket data` prints `~/.local/share/supermarket`.
- [ ] After a reboot, the app is running again without you starting it.
- [x] Opening the app from another machine on the network fails: it only
answers at localhost.
## 2. Overview
- [x] The overview lists the five modules (Content, Prospects, SEO,
Sites, Metrics), each opening its own pages.
- [ ] Its Setup list (AI, social accounts, Core, Hermes and so on) matches
what you've set up, and each missing step links to where to do it.
- [ ] In the sidebar, each module (Content, Prospects, SEO, Sites, Metrics)
has a chevron that folds or unfolds its pages. The module you're in
is always unfolded; the others stay as you left them, across pages
and restarts of the browser. A folded module shows its pages' counts
added up (e.g. Prospects' Review and Outreach).
## 3. Settings
### Profile
- [ ] With the AI set up, *Draft from website* fills in the profile from
your site. Review every field before saving.
- [x] Name, description, positioning, voice, words to avoid, products,
targets (industries, sizes, roles, regions, problems, buying
signals), websites and accounts all save and show again on reload.
- [ ] Removing a product or website and saving removes it.
### Social accounts
- [x] Each network shows whether its keys are saved, without showing them.
- [ ] *Connect* for X and for LinkedIn signs you in and comes back saying
it's connected. X's callback must be `127.0.0.1`, not `localhost`.
- [x] LinkedIn shows when its 60-day sign-in runs out.
- [ ] Removing a key (the *remove* box, then Save) removes it.
### LinkedIn page
- [x] Settings → Social accounts has a *LinkedIn page* card with its own
redirect URL (…/auth/linkedin-page/callback).
- [ ] Once LinkedIn approves the page app (Community Management API), save
its client ID and secret and *Connect LinkedIn page*: the pages you
administer are listed (the only one is chosen).
- [ ] If they aren't listed (a permission missing), type the page's number
from linkedin.com/company/<number>/admin and save.
- [ ] Choose "New LinkedIn drafts post as: The company page": new LinkedIn
drafts in Posts show *Post as: <the page>*; switch one to *You* and
save.
- [ ] **(real)** Publish a draft as the page: it appears on the company
page, not your profile; one as you still goes to your profile.
- [ ] Two weeks before the page sign-in expires, the Overview and Posts
remind you.
### Core & Hermes
- [x] It shows your Core's domain, email and name from `core.conf`.
- [x] The service checks (Nextcloud, EspoCRM and others) show which answer.
- [x] The Hermes section shows whether the bridge is set up, when Hermes
last checked in, and how to repair it (`supermarket hermes`).
### Lead sources
- [x] origami.chat and explee.com keys save. *Test* says the key works;
for origami.chat it also shows what its API sends.
- [x] The Hunter.io key saves, and *Test* shows your plan and the credits
left (free).
- [x] Ticking departments and seniority, and choosing how many people a
company, saves and shows again on reload.
### Email
- [x] The suggested mail server is `mail.` plus your Core's domain, and
the From address is your Core email.
- [x] Saving hours that end before they start is refused with a message.
- [ ] After saving the password, *Check the settings* shows a green line
for sending and for reading replies, and your domain's SPF, DKIM
and DMARC records. Note any red lines.
- [ ] **(real)** *Send a test email* arrives in your inbox, from the right
name, with the signature under it.
### AI
- [x] It shows which key is used: Hermes' shared key, or one saved here.
- [x] *Test* gets an answer from the model.
- [ ] A different model per task (profile, content, prospects, outreach)
saves and is used.
- [ ] With an OpenAI-compatible server, *List its models* lists them.
### Backups
- [x] Settings → Backups lists the backups, newest first, with when, why
(by you, daily, before an update, before a restore, an older copy),
size and schema.
- [x] *Back up now* with a note adds one at the top, named with the note.
- [x] *Download* saves a file that opens with `sqlite3` (`.tables` lists
Supermarket's tables); there's no `secrets.json` content in it.
- [x] *Delete* asks first, then removes it from the list and the folder.
- [ ] A daily backup appears once a day while the app runs, never twice on
one day; after more than a week, older dailies thin out to one a week.
- [ ] Updating Supermarket to a version with a database change makes a
"Before an update" backup first.
- [ ] `supermarket backup "a note"` and `supermarket backups` work from a
terminal; with the app stopped they say to start it.
- [ ] The old `app.db.pre-*` files are gone from the data folder and listed
as "An older copy".
- [ ] **(real)** *Restore* on a backup asks first; then the page says it's
restarting and reloads by itself within about ten seconds, showing
"Restored from …" and the backup of what was there before. Data made
after the backup is gone; data from before it is back.
- [ ] A backup from a newer Supermarket (a higher schema) has no *Restore*
button; `supermarket restore` refuses it with a reason.
- [x] *Upload* a downloaded `.db`: it's checked and listed ("uploaded …");
a file that isn't a Supermarket database is refused.
- [ ] **(real)** `supermarket restore <name>` (a name from `supermarket
backups`) and `supermarket restore ~/Downloads/<file>.db` both work
and restart the app.
- [ ] `supermarket backup --with-secrets` makes a `.tar.gz` in the backups
folder (only you can read it) and warns about it; on another computer
`supermarket restore <file>.tar.gz` brings back the data and the keys
(Settings show them as saved).
## 4. Market
- [x] Add a partner and a competitor by hand, with websites, feeds, X
handle and mention policy. They save and show in the list.
- [ ] With the AI set up, *Fill in the empty boxes* on an entry drafts the
rest from its website.
- [x] Edit and delete an entry.
- [x] *Export*, then *Import* the file again: nothing is duplicated.
## 5. Content
### Sources
- [ ] *Fetch* on a Market entry finds new items from its feeds and
sitemap, and the list shows when it was last checked.
- [x] Items can be dismissed and restored.
- [ ] Your own products (`/content/own`) show your sites' and feeds' new
pages.
### Drafting and posts
- [ ] **(costs)** Select one or more items, choose channels (X, LinkedIn,
Reddit) and *Write drafts*. Drafts appear in Posts.
- [ ] Each draft follows the profile's voice, avoids the listed words,
and makes no claims beyond the source. The X draft fits the
character limit; the live counter agrees.
- [ ] A competitor set to "category only" is never named.
- [ ] Editing a draft and saving keeps the edit.
- [ ] Links to your own sites get UTM tags when published; other links
don't.
- [ ] For Reddit, choosing a subreddit shows its rules, and the draft
respects them.
### Publishing
- [ ] **(real)** *Publish* on an X draft posts it, and it moves to
Published with a link to the post.
- [ ] **(real)** The same for LinkedIn.
- [ ] Reddit: *Open in Reddit* opens the submit page filled in; *Mark as
posted* moves it to Published.
- [ ] *Schedule* a draft for a few minutes ahead: it shows under Scheduled,
and goes out at that time (in your local time zone).
- [ ] *Unschedule* puts it back in Posts.
- [ ] A failed publish says why and keeps the draft.
## 6. Prospects
### Signals
- [x] The scorecard lists each signal with counts for Found, Contacted,
Replied, Interested, Booked, Visited, Signed up and Paid, and the
share of contacted at each step.
- [x] The period and channel filters change the numbers.
- [x] *New signal*: name, status, hypothesis, how to spot it, angle,
campaign tag. The tag is made from the name if left empty.
- [ ] A signal's page shows its funnel by channel, its campaigns and its
latest steps.
- [ ] Under Campaigns, assigning an origami.chat or explee.com campaign to
a signal moves its numbers to that signal.
- [x] *Import now* for each tool brings in new results and says so. Running
it twice adds nothing new.
- [x] Deleting a signal asks first; its prospects and results stay,
without a signal.
### Finding companies (discovery)
- [x] Without "How to spot it", the Claude search asks you to fill it in.
- [ ] **(costs)** *Search the web now*: the run shows "searching…" and
updates by itself. When done, it lists how many companies were added,
how many were left out and why, and how many web searches it used.
- [ ] Each company it added is in Review, tagged with the signal, with a
link to the page that shows the signal.
- [ ] **(costs, first 10 free)** *Search explee.com now* with an explee.com
description adds only strong matches.
- [x] Setting *Search automatically* to every 7 days saves. A retired signal
doesn't run.
### Review
- [x] The New, Accepted and Set aside tabs show their counts, and the
signal filter narrows them.
- [ ] *Add a prospect* with a company and a person: both appear in New.
Adding the same email again doesn't make a duplicate.
- [ ] A prospect that matches a record already in the CRM shows a warning.
- [x] Changing a prospect's signal moves it under that signal on the
scorecard.
- [x] *Record an outcome* (e.g. Replied by email, or Paid with an amount)
shows on the prospect and on the scorecard; *remove* takes it back.
- [x] *Set aside*, then *Reconsider*, moves it back and forth.
- [ ] *Accept* a company: it moves to Accepted as "waiting for Hermes", and
appears on the CRM queue page.
- [ ] Accepting a person with only a first name queues the Lead with that
name as its last name (EspoCRM needs one); a person with no name at
all is refused with a message saying EspoCRM needs a last name.
- [x] *Suppress* a domain or an address: its new prospects move to Set aside.
### Hunter.io
- [ ] **(costs, 1 credit when it finds someone)** *Find people at
&lt;domain&gt;* adds people under the company, with title, address and
confidence, and the card says what it found and the credits used.
- [ ] **(costs)** *Find their email* on a person with a name and company
fills in the address, or says none was found (free).
- [ ] **(costs, ½ credit each)** *Verify the address*, and *Verify with
Hunter.io* for all, mark each address verified, risky, bounces or
couldn't be verified.
### Suppression list
- [x] Add an email and a domain with a reason; both show in the list.
- [ ] Prospects at that address or domain can't be added or accepted, and
emails to them are refused.
- [x] Removing an entry takes it off the list.
### Outreach
- [ ] *Write an email* on a person in Review opens Outreach at the new
draft. It greets them by first name, gives a reason that matches
their signal and company, and invents nothing.
- [ ] Editing the subject and text and *Save* keeps them.
- [ ] *Write a LinkedIn message*: the counter shows the length; *Copy*
copies it; *Open their profile* opens LinkedIn in a new tab.
- [ ] **(real)** Send it on LinkedIn, then *Mark as sent*: it moves to Sent
and counts as Contacted (LinkedIn) on the scorecard. *They replied*
records a reply and counts as Replied.
- [ ] *Queue to send*: it moves to Queued. The status line shows how many
went out today and whether sending is paused (outside your hours).
- [ ] *Back to drafts* takes it out of the queue.
- [ ] **(real)** Queue an email to an address of your own (add yourself as a
prospect) and *Send now*. It arrives with your signature and the
opt-out line, a copy is in your Sent folder, and it counts as
Contacted (email).
- [ ] **(real)** Reply to that email. After *Check for replies* (or within
10 minutes) it shows under Replies with the start of your reply, and
counts as Replied.
- [ ] **(real)** Reply "stop" to another test email: the address goes on the
suppression list.
- [ ] Queuing a second email to the same address within two weeks is
refused with the date of the first.
- [ ] With more queued than the daily limit, the rest wait for the next day.
- [ ] *Draft* for several accepted people writes up to 5 drafts.
### Mailing lists (Listmonk)
- [ ] Settings → Email → *Mailing lists*: Listmonk's address is your
Core's; with an API user and its token saved, *Test* lists your
lists, with their opt-in.
- [ ] On a person in Review, *Add to a mailing list* to a double opt-in
list: they appear in Listmonk as unconfirmed, Listmonk emails them to
confirm, and the card says "asked to confirm".
- [ ] A single opt-in list refuses them unless *They agreed to receive it*
is ticked; an address on the suppression list is refused.
- [ ] In Listmonk, the subscriber carries their company, title, signal and
source "supermarket".
- [ ] Unsubscribe a test address from a list in Listmonk (or blocklist it),
then *Sync unsubscribes now*: it's on the suppression list with the
reason, the person's card no longer shows that list, and an address
already on the list keeps your reason. It also runs every hour.
### CRM queue (EspoCRM through Hermes)
- [x] The page lists queued, done and failed actions, and when Hermes last
checked in.
- [ ] *Send a test Lead*, then run the job (the `hermes cron run …` command
shown on the page): the Lead appears in EspoCRM and the action shows
as done.
- [ ] A failed action shows the error, and *Retry* queues it again.
- [x] If EspoCRM can't be reached, the hint says whether the problem is
on the Core's side or Supermarket's.
### Website & sales (the end of the funnel)
- [ ] On Content, *For a buying signal* lists your signals. Posts written
for one speak to its situation, and when published their links carry
`utm_campaign=` the signal's tag.
- [x] A signal's page lists the posts written for it, and your websites'
addresses tagged with its campaign; *Copy* copies one.
- [x] Under Settings → Website & sales, Plausible's address is your Core's,
and the sites listed are your websites' domains.
- [x] With a Plausible Stats API key saved, *Test* shows each site's
visitors in the last 30 days, and *Import now* says how many visitors
came on tagged links.
- [ ] Open a tagged link yourself; the next day (or after *Import now* the
day after), the signal shows a Visited step for that channel.
- [x] With a restricted Stripe key saved, *Test* says it can read checkouts
and invoices, and whether it's live or test mode. *Sync now* lists
sign-ups and payments, and the customers table fills in.
- [ ] A payment from a prospect's email shows as Paid, with the amount, on
that prospect's signal, and the revenue on the scorecard.
- [ ] **(real)** A purchase through the shopping cart from a tagged link
counts for that signal (once the cart passes the tags to Stripe).
- [ ] With Cal.com's sending address saved under Settings → Email, a
booking made through your Cal.com link shows as Booked for the
person who booked (after the next inbox read). A cancellation
doesn't count.
## 7. SEO
### Search Console and what already ranks
- [ ] Under Settings → Search engines, after saving the Google OAuth client
ID and secret, *Connect Search Console* opens Google's sign-in and
comes back saying it's connected, with your account's email.
- [ ] Each website from the profile has a list of your Search Console
properties; choosing one and saving keeps it.
- [ ] *Sync now* reads the data (the first time can take a minute) and shows
when it synced and the last day of data.
- [ ] SEO → What ranks shows the last 90 days: compare clicks, impressions
and position with Search Console's own Performance report for the
same dates. They should match.
- [ ] The best pages and the "shown a lot, hardly clicked" searches match
Search Console's Pages and Queries tabs.
- [ ] Each page under *Push* really sits on page one with few clicks, and
the search it names is the one it's shown for most.
- [ ] With several websites, the tabs switch between them.
### Morning check and Monday report
- [ ] SEO → Morning check names the two weeks it compares, and its totals
match Search Console's Performance report for those dates.
- [ ] Only moves past the thresholds are listed; with nothing past them it
says "Nothing real moved". Changing the thresholds under Settings →
Search engines changes the list.
- [ ] For a page whose average position jumped, the explanation says whether
it really moved on its searches or Google showed it for a different
mix; check one against Search Console's Queries tab for that page.
- [ ] A search that disappeared says "no data", not 0.
- [ ] SEO → Monday report: *Write it now* writes this week's report: the
three numbers with the sentence under them, the 3 pages that moved
most, and "Waiting for your yes" (at most 3).
- [ ] Earlier reports are listed and open.
- [ ] **(real)** With *Email me the Monday report* on and email set up, the
report arrives on Monday morning.
### Audit
- [ ] SEO → Audit: *Audit now* shows "auditing…" and the page updates by
itself when done (a few minutes).
- [ ] The number of pages read is close to your site's real number of pages
(up to 300).
- [ ] Open three issues on different pages and check them on the live page
(view source): the title length, a missing description, a broken
link, a redirect.
- [ ] With Search Console connected, issues on pages with traffic come first,
with their clicks and impressions.
- [ ] "Its title doesn't say what people search" names a search that really
is the page's biggest one in Search Console.
- [ ] AI visibility: what it says about robots.txt matches your robots.txt
file, and llms.txt is found if you have one.
- [ ] The severity boxes filter the issues.
- [ ] With *Also check the speed*, the 5 busiest pages get Core Web Vitals.
### Changes and pull requests
- [x] Under Settings → Search engines, Gitea's address is your Core's; with a
token saved, *Test* says the token works and that the website's
repository (from the profile) is reachable with push rights.
- [ ] SEO → Changes: *Propose changes* writes at most 3, each with the page,
the reason with its numbers, the current and the new wording, and
the length in characters and pixels.
- [ ] The new titles say what the page offers, lead with what people search,
and claim nothing the page doesn't support ("verified", "best", a
year).
- [ ] *Save the wording* keeps your edit; *No* moves it to Done as declined.
- [ ] **(real)** *Yes* shows "making the pull request…", then a link to a
pull request on Gitea. In it, only the page's front matter changed,
and the note says the Hugo build checked it.
- [ ] Nothing changed on the published branch until you merge.
- [ ] **(real)** After you merge and the site deploys, the change shows as
merged, then live (within half an hour).
- [ ] A few days later, the change shows the page's numbers before and
after.
- [ ] The Monday report's "Waiting for your yes" lists the proposals.
### Next keywords
- [ ] SEO → Next keywords: *Look for keywords* lists candidates, each saying
where it came from; buyer searches come first and are marked.
- [ ] None of them is something a page of yours already covers (check two
against your site).
- [ ] With competitors (and their websites) in the Market, some candidates
come from their sitemaps.
- [ ] **(costs, up to 3 web searches)** *Read the live top 3* shows three
results with what kind of site each is; check them in a private
browser window. A winnable keyword moves up.
- [x] *Pick this one*, *Dismiss* and *Bring back* move a keyword between the
lists.
### Briefs and pages
- [ ] **(costs, up to 5 web searches)** On a picked keyword, *Write the brief*
opens a brief: the live top results (with any it couldn't read marked),
the title, description, H1, angle, sections, questions, internal links
to pages you really have, and questions only you can answer.
- [ ] For a rewrite (from *Push* on What ranks, or a page address), the brief
starts with what the page is really shown for.
- [ ] *Write the page* refuses until every question is answered.
- [ ] The drafted page uses your answers, invents no test, price or customer,
and says "not tested" where you did.
- [ ] **(real)** Every sentence claiming an experience is listed; *Open a
pull request*
refuses until each is ticked (or removed from the page and saved).
- [ ] **(real)** The pull request adds the page (or rewrites the existing one)
with its title and description, and says what's still to add by hand.
- [ ] **(real)** After you merge it and the site deploys, the brief shows as
live.
### Search engines
- [ ] SEO → Search engines shows the sitemaps Search Console has (compare
with Search Console → Indexing → Sitemaps).
- [ ] **(real)** *Open the pull request* (under "Set the site up") opens a
pull request adding the IndexNow key file and a robots.txt naming the
sitemap, and turning the sitemap on if the config turned it off; its
note says the build produced all three.
- [ ] After it's merged and deployed, the IndexNow key shows as served,
and *Submit the home page now* is accepted.
- [ ] A change or page that goes live afterwards appears in the IndexNow
list on its own (within half an hour).
- [ ] With a Bing Webmaster API key saved, Bing's weekly numbers, searches
and crawl issues appear.
## 8. Metrics
### Stripe sync
- [ ] With the Stripe key's read access widened (Customers, Invoices, Credit
notes, Charges and Refunds, Events), Metrics → *Sync now* reads your
whole history the first time and says so.
- [ ] The counts of customers, invoices, credit notes and refunds match
Stripe's dashboard (draft invoices aren't counted).
- [ ] A later *Sync now* applies only the changes since the last one; a
payment or refund made in Stripe shows up within the hour.
- [ ] The currencies listed are the ones you bill in.
- [ ] *Gross margin by product* lists your Stripe products by name, with
what each billed over the last 12 months (compare one with Stripe's
reports). Setting a margin and saving keeps it; an empty box shows
the default.
### MRR, movements and NRR
- [ ] Metrics shows MRR today, close to Stripe's own MRR figure (Billing →
Overview). Small differences come from how each counts prorations and
open invoices.
- [x] The month-by-month table's net change adds up: new + expansion +
reactivation − contraction − churn.
- [ ] Open a month: each customer's move is listed with the MRR before
and after; check two of them against the customer in Stripe.
- [ ] If billing moved to Stripe partway through, the suggestion to count
from that month appears; *Count from …* makes those customers the
starting base, and the suggestion goes away.
- [x] Cohorts start at 100% in their first month.
### Spend and CAC
- [ ] Metrics → Spend and CAC: origami.chat and explee.com campaign spend
appears in the log on its own (the first time, all of it in the
current month, with a note).
- [ ] *Add* logs an amount for a month and channel; a bad amount or month is
refused.
- [x] Pasting CSV rows imports them; one bad row imports nothing and names
the row.
- [ ] CAC for a month is its spend over its new customers (as counted on
MRR and NRR); months without spend say so instead of showing $0.
- [ ] By channel: a customer who first replied to an outreach email counts
under Email; customers with no step before paying count as unknown.
### CLV and cohorts
- [x] Metrics → CLV and cohorts shows CLV with what it rests on: average per
customer, gross margin (it changes when you set product margins),
monthly churn and lifetime. Check: CLV = average × margin × lifetime.
- [ ] With spend logged, CAC over 12 months and CLV:CAC appear.
- [ ] Revenue by cohort: pick one customer who started alone in a month and
compare the row with what they paid in Stripe, less refunds. A
cohort whose refunds exceed its payments shows a negative amount.
- [x] *Gross profit* shows the same table after margin.
### Downloads and publishing
- [ ] Each Metrics table's *Download as CSV* gives a file that opens in a
spreadsheet, with the same numbers as the page.
- [ ] The MRR and NRR page shows churn, CLV, CAC and CLV:CAC above the
chart.
- [x] Metrics → Publish: choosing what to show and *Save and preview*
changes the preview; no customer is named anywhere in it.
- [ ] **(real)** *Open a pull request* adds the page (or updates it) on the
site's repository, checked with a build; after merging, it's live at
the address chosen.
### Customers and the CRM
- [x] Before Hermes has copied the CRM, Metrics → Customers and the CRM says
no Accounts are copied, and lists every customer with billing.
- [ ] Once Accounts are copied (after the CRM bridge works), customers are
matched by stored ID, email or domain; check a few against EspoCRM.
Gmail-style addresses never match by domain.
- [ ] Where several Accounts fit, they're listed; choosing one by name and
*Match* keeps it, and *automatic* undoes it.
- [ ] *not in the CRM* moves a customer out of the "to fix" list.
- [ ] *add to the CRM* on a paying customer queues an Account on the CRM
queue; once Hermes adds it, the customer shows as matched.
## 9. Sites
### Sections and pages
- [ ] With no website in the profile, Sites says to add one; with a website
but no Hugo repository, it says to set one.
- [x] *Read the repository* (needs the Gitea token) shows the website, its
repository and branch, and "Read from the repository just now".
- [ ] The latest commits on the published branch match Gitea's.
- [ ] Section types match `layouts/partials/sections/` (helpers like head,
ctas and wrapper aren't listed as types). Open a few: the README's
description, the fields in use, and the example match the site.
- [ ] A type no page uses says "not used yet"; a type a page uses with no
layout says "no layout".
- [ ] Pages built from sections list their section types in order; their
addresses open the live page. Markdown pages are under "other pages".
- [ ] With the Gitea server unreachable, *Read it again* says the read
failed and still shows the last good copy.
### Previews
- [x] Sites → Previews lists the repository's branches, the published one
first and marked *published*, each with its latest commit.
- [ ] *Build preview* on the published branch says "Built just now";
*Open preview* opens the site in a new tab, looking like the live one.
- [x] Links in the preview (menus, buttons, images) stay under
`/preview/…`; none lead to Supermarket's own pages.
- [ ] A branch with a draft page (e.g. a Supermarket pull request) shows the
draft in its preview.
- [ ] After new commits on a branch, *Read it again* on Sections and pages
makes the preview say the branch has moved on; *Build again* fixes it.
- [ ] A branch that doesn't build shows Hugo's error, and the last good
preview still opens.
- [ ] *Delete* removes the preview; its address then says there's none.
- [x] Plausible doesn't count visits to a preview.
### New pages
- [x] Sites → New pages offers the eight kinds (landing, product,
alternative, comparison, blog, home, about, contact), and lists your
products, competitors (from the Market), buying signals and SEO
briefs for new pages.
- [ ] **(costs)** *Build the page* for a landing page takes a minute or two
and opens the page: a title under 60 characters, a description, an
address like the site's others, and sections made only of the site's
types.
- [ ] Compare the YAML with a real page on the site: same field names,
same shapes (CTAs with label, url, style).
- [ ] Nothing in it is invented: no customers, quotes, numbers or prices
you didn't give it. What it couldn't know is listed under "Still to
add or check by hand".
- [ ] An alternative or comparison page needs a competitor, and says only
what the Market says about them.
- [ ] Built from a signal, its links to the site carry
`utm_campaign=<the signal>&utm_medium=landing`.
- [ ] Change a section's type to one the site lacks and *Save*: the error
names it, and *Push and preview* refuses until it's fixed.
- [ ] A link to a page that doesn't exist, or a field the type doesn't use,
shows under "To look at".
- [ ] **(costs)** *Write it again* with new notes keeps your edits as its
starting point and changes what the notes ask.
- [ ] **(real)** *Push and preview* puts it on `supermarket/site-page-<n>`
on Gitea (no pull request) and opens a preview that looks like the
site.
- [ ] Sentences claiming experience must be ticked before *Open a pull
request*; the pull request lists them, the to-dos and the build check.
- [ ] After merging on Gitea, the page shows *merged, not live yet*, then
*live* once the site has deployed, and can't be edited any more.
- [ ] *Delete* forgets it here; the branch and pull request stay on Gitea.
### Landing pages per signal
- [ ] **(costs)** A signal's page has a *Landing pages* section; with none,
it says so and offers *Build a landing page for it*, which opens the
new page with the signal set.
- [ ] Once its pull request is merged and deployed, the signal's page shows
it as live, with its live address and its visitors over 30 days (match
them against Plausible's page report).
- [ ] The scorecard shows "1 page" (or more) next to the signal.
- [ ] *Duplicate as a variant* makes variant B at the original's address
plus `-b`; the original is marked A. Its links carry
`utm_content=<its address>`; the original's don't change.
- [ ] With notes ("a shorter page, price in the hero"), the variant is
rewritten to match; without, it's an exact copy to edit.
- [ ] *Close the pull request* closes it on Gitea without merging.
- [ ] **(real)** *Remove from the site* opens a pull request that deletes
only that page's file; merged, the page shows *removed* and the
scorecard stops counting it. Closing that pull request instead puts it
back to *merged*.
### Publishing
- [ ] Right after merging a page's pull request, its page (and Sites →
Publishing) shows *merged, not live yet* with what the last check
found (e.g. "it answers 404").
- [ ] Once the deploy has run, the page shows *live*, "On the live site
since…", and its live address; *Check the live site now* gets there
without waiting.
- [ ] If the title on the live site differs, it still shows live, with a
note giving the title the site shows.
- [ ] If the deploy doesn't run, after two hours the page says to check
the deploy hook.
- [ ] After a removal is merged and deployed, the page shows *removed* and
"Off the live site since…".
- [ ] Sites → Publishing lists recent merged pull requests with who opened
them (Supermarket or a person); Supermarket's link to their pages.
- [ ] A page that went live, or was removed, shows up in SEO → Search
engines' IndexNow log (when IndexNow is set up).
### Lead forms
- [x] Sites → Lead forms says how the forms send today (an email), and
lists the pages with a form (/churches/, /partners/, /saas-savings/).
- [ ] Following the steps, create a Lead Capture in EspoCRM with the
payload fields listed; paste its API URL and *Save and test*: it
says the site may post to it, and no Lead appears in EspoCRM.
- [x] A wrong address (not …/api/v1/LeadCapture/…) is refused.
- [ ] **(real)** *Open the pull request*: on Gitea it changes `hugo.toml`,
the form section and adds `static/js/supermarket-leads.js`; preview it
under Sites → Previews.
- [ ] **(real)** After merging, send a form on the live site from a link
tagged with a signal (`?utm_campaign=<signal>`): EspoCRM gets a Lead
with the name split, the email and organization, and the form, page
and campaign in its description. The page says "Connected".
- [ ] With a `Lead` goal added in Plausible, the next day's import counts
it as *interested* on the signal; Lead forms lists it.
### A new site
- [ ] **(real)** Create an empty repository in Gitea (no README). On
Sites → New site,
fill in the repository, address, name, tagline, email, colors, font;
*Start the site*.
- [x] A repository that isn't empty, a non-https address or a bad color is
refused with a reason, and nothing is pushed.
- [ ] On Gitea, the repository has one commit: `themes/supermarket/`,
`hugo.toml` with your brand, `content/_index.md`, a README.
- [ ] The site appears in Settings → Profile's websites and on Sites, with
a *First pages* card and the theme's 13 section types.
- [ ] Sites → Previews → build `main`: the starter home page shows in your
colors and font, with your name (or logo) in the top bar.
- [ ] **(costs, real)** *Contact page* writes a page with a form; open its
pull request, preview it: Contact appears in the top menu. *About
page* likewise.
- [ ] **(costs, real)** *Home page* replaces the starter home page (its
file, at /).
- [ ] Connect the contact form under Lead forms: the pull request only sets
the Lead Capture address (the theme's form is ready).
- [ ] After adding your Gitea deploy hook and merging, the site is live at
its address, and Publishing confirms each page.
- [ ] A site made with the theme shows a *Theme* card: "version 1: the
latest". After a Supermarket update with a newer theme, it offers
*Update the theme*; the pull request lists the changed, added and
removed files and builds.
- [ ] Edit a file under `themes/supermarket/` by hand and read the site
again: the Theme card names it as changed by hand, and the update's
pull request says it will be replaced.
### What converts, and what to write next (Phase 7)
- [ ] Settings → Website & sales → *What counts as a sign-up* lists the
links visitors clicked in the last 30 days, with the sign-up, trial
and checkout ones ticked. Untick one, add your own pattern, save: the
pages' numbers are read again with it.
- [ ] What ranks, the audit and Sites show *Visits* and *Sign-ups* next to
each page; compare one page with Plausible's entry pages (90 days,
the goal filtered to those links).
- [ ] Push pages say how many more sign-ups each would bring, and on whose
rate (its own, or the site's); they're ordered by it.
- [ ] A page with 100+ visits and no sign-up is flagged *traffic, no
sign-ups*; one that converts well but Google hardly shows is flagged
*converts, hardly found*.
- [ ] SEO → What to write next lists at most 10, each with its reason in
numbers. *Set up its landing page* opens New pages with the kind and
the signal chosen; *Propose new wording* writes a change; *Not now*
hides one for 90 days.
- [ ] An app named in two or more replies (not in a signature or a quoted
message) with no page of its own is suggested as a product page, or
an alternative page for something your customers leave.
- [ ] **(costs)** Sites → Sections and pages → *Add a section* on a page:
choose a type and where; the section is written from the page and
its searches, nothing invented, claims to confirm.
- [ ] **(real)** Its pull request changes only that page's file: the new
section in its place, everything else as it was.
### Links (Phase 8)
- [ ] SEO → Links → *Links that bring visitors* lists the sites that sent
visitors in 90 days, with the pages they landed on and their
sign-ups; search engines, social networks, email and work apps are
counted apart. Compare with Plausible's Sources.
- [ ] With a Bing Webmaster key saved and the site verified in Bing,
*Read now* under *Who links to you* lists the linking sites, the
pages they link to and their link text; compare with Bing's
Backlinks report.
- [ ] *Add and check* a page you know links to you: it shows as kept,
with your page it links to. Add one that doesn't: it shows as gone.
- [ ] A link to a page of yours that answers 404 shows as *points at a
404*, and *What to write next* suggests a redirect.
- [ ] With a partner (and its website) in the Market, *Look at the
partners' pages* finds their providers or hosting page when it lists
others but not you; *I asked*, then *Won*, move it along.
- [ ] **(costs, up to 4 web searches)** With a competitor in the
Market, *Find them* lists pages of alternatives to it that leave
you out; open two and check.
## 10. Search
- [ ] Searching for a Market entry, a fetched item, a post, a prospect
(company or person) or a signal finds it, with a link to where it is.
## 11. Agents (MCP)
- [x] `supermarket token` prints a token.
- [ ] Claude Code (`claude mcp list`) shows Supermarket connected, and can
read the company profile, the Market and the CRM queue through it
(`profile_get`, `inventory_list`, `crm_pending_actions`).
- [ ] Hermes uses the Supermarket and Core MCP tools in its CRM job.
## 12. Data and safety
- [x] `~/.local/share/supermarket/secrets.json` is readable only by you
(`ls -l`), and no key is ever shown in the app after saving.
- [ ] Before an update that changes the database, Settings → Backups shows
a "Before an update" backup, and the app starts on the new schema
without losing data.
- [x] Backups hold no keys: open one with `sqlite3` and look for a token
you've saved (e.g. `.dump` and search); it isn't there.
## 13. Editions (Phase 9)
- [ ] Settings → About says **Local edition**, with the version, the
database schema, and the database, files and secrets in
`~/.local/share/supermarket`.
- [ ] `supermarket config` prints the same, and "The settings are fine."
- [ ] `docker exec supermarket supermarket secret-key` prints a new
64-digit key each time.
- [ ] Started with `SUPERMARKET_MODE=server` and nothing else, Supermarket
doesn't start: its log names each missing setting (database, secret
key, mail, an https:// address). With them all set, the server edition
starts (Phase 10); multi-tenant says it isn't built yet. `supermarket config` never shows a
password or the key.
- [ ] `supermarket config` also checks the file storage ("writable"), and on
the other editions that Postgres can be reached. With a wrong S3 key or
Postgres password, it says which and why.
- [ ] After the update to schema 30, Settings → Backups shows the "before
schema 30" backup, and `~/.local/share/supermarket/files` exists, empty.
- [ ] Settings → About → Running lists one copy, "(this one)", seen just
now. While an audit runs, `audit:<site>` shows under *Under way*.
- [ ] Connecting a social account or Search Console still works (sign-ins
under way are now kept in the database).
- [ ] `supermarket export` writes `files/exports/supermarket-<date>.tar.gz`
in the data folder, readable only by you, and says keys and tokens
aren't in it. With `--with-secrets`, it says how many are, and warns.
- [ ] `supermarket import <that file>` on this install refuses: the database
isn't empty. Nothing changes.
## 14. The server edition (Phase 10)
On the local edition first:
- [ ] Nothing asks anyone to sign in; Settings has no Users or Your account.
Every form still works (each now carries a hidden `csrf` field).
- [ ] Your old X, LinkedIn and Reddit sign-ins show under Social accounts as
the company's accounts, with *Sign out*; Settings → Posting accounts
lists them. A LinkedIn draft's *Post as* lists the member and the page.
- [ ] Settings → All connections lists every service, who connected it, and
the last Test; a failing Test shows there as *Failing*.
- [ ] Settings → Activity shows what you published and deleted.
On a server (`./install-server.sh`; with Caddy's own CA on a test machine):
- [ ] The setup link from the install creates the owner and opens the
company profile; the link doesn't work twice. Before it's used, every
page says Supermarket isn't set up yet.
- [ ] Signing out and in works; a wrong password says so without saying
whether the address has an account. Five wrong tries for an address
make it wait; ten in a row lock the account and email its owner.
- [ ] *Forgotten your password?* emails a link that works once, for an hour;
afterwards the old sessions are signed out.
- [ ] Your account: turn on two-factor sign-in from the QR code; signing in
then asks for the code; a recovery code works once.
- [ ] Settings → Users: invite an admin and a member with only SEO (edit).
Both get emails; the invitation's page sets their password.
- [ ] The member sees only SEO in the menu and on the Overview; every
other module and Settings answer *No access*. With SEO as *view*,
SEO's pages show their forms greyed, without buttons.
- [ ] The member connects their own X under Your account and posts as it;
they can't choose the company's account until it's ticked for them on
Settings → Posting accounts.
- [ ] Settings → Activity shows each step above, with who and from where.
- [ ] Settings → Backups lists the nightly dump the morning after.