Contents & search
What is Compass?
Compass is the Sesh+ company dashboard: one calm place to see how the company, your team and you are doing, and what to do next.
Your first 2 minutes
- 1Open the sign-in page. You’ll see the team: 33 real roles at Sesh+.
- 2Pick anyone, say Max Cunningham (CEO), and click their card. No password is needed in the demo. In the real portal you’d click Continue with Google with your @seshproducts.com account.
- 3You land on My home: that person’s KPIs, priorities, trainings and streak. Every page shows only what they’re allowed to see.
- 4Use the menu on the left (or the ☰ button on a phone) to visit Company, Teams, Trainings and the department dashboards.
- 5To see it through someone else’s eyes, click your name and photo at the top of the menu and pick another teammate. Try a Territory Manager next. Their world is much more focused.
Who to sign in as
Each person sees a different Compass. These are good ones to try first.
| Person | Role | Try this |
|---|---|---|
| Max Cunningham | Founder & CEO · admin | Company health score and forecast, then Admin → change who can see a page, then Shift+X |
| Richard Willemstein Jr. | VP Sales · executive | Sales → doors, velocity, chains and the US state map |
| Michael Scarffe | Co-Founder & COO | Operations → OTIF, stock health, cost per can, and the Ohio Line 3 project |
| Josh Metz | CMO | Marketing → store funnel, CAC & LTV, awareness and share of voice |
| Zachary von Ahnen | VP Finance | Finance → revenue-to-cash bridge, margins and runway |
| Shawhin Kanai | Director of Sales, Canada · manager | Canada provinces and his team’s scorecards |
| Jennifer Prisnie | Territory Manager, Alberta · member | A focused home page, then take a training and earn a certificate |
| Xochilt Beckham | Quality & Regulatory | Quality → complaint queue, SPC chart, PMTA tracker |
| Allen Riley | People Manager | People analytics → eNPS, the anonymous feedback inbox, overdue trainings |
| Naimish Sharma | Data Engineer | Data & integrations → sources, freshness, sync runs, the API |
Roles decide the defaults: admin sees and manages everything; executive sees company-wide numbers; manager sees their team; member sees their own work plus everything shared company-wide.
My home
Your personal page. If you only open one page each week, open this one.
Reading a KPI card
KPI cards look the same everywhere, so once you can read one you can read them all.
- 1 · Name. Tap it for the definition, the formula and where the number comes from.
- 2 · Latest value for the most recent full period (usually last month).
- 3 · Change versus the period before. Green is good for this KPI, whatever direction “good” is (for complaints, down is green).
- 4 · Target and how close we are to it (attainment).
- 5 · Health: On track at or above target, Watch within 5% of it, Off track further away. Band KPIs (like inventory days) are green inside their healthy range.
- 6 · Trend for the last 12 months; the dashed tail is the forecast.
- 7 · Owner: the one person accountable for moving it.
Click any KPI card to open its detail panel. Hover or tap a point for exact values, scroll or use the slider to zoom, switch scope (company, department, person), and switch from Trend to breakdowns such as By flavor, By US state or By chain where the data has them. The panel also shows the formula, the source system and who owns the number.
Company & teams
Company is the leadership view: north-star KPIs, a health score per department (the rings), company outcomes, and the signals worth attention, such as “Velocity worsened 3 months in a row” or “Gross margin hit an all-time best”. Signals are plain rules, not black-box AI, so you can always see why something was flagged.
Teams lists every department and team with its lead, members, KPIs and health. Click a team for its scorecard and weekly updates.
Department dashboards
One page per function, each designed around the decisions that team actually makes.
If a dashboard isn’t in your menu, your role doesn’t include it. That’s permissions working, not a bug. Ask an admin if you need access.
Weekly updates & kudos
- 1Open Updates. The Weekly check-in box is at the top.
- 2Fill in up to three short boxes: Wins, Challenges and Next up. Bullet points are fine. Pick an emoji for how the week felt.
- 3Choose who can see it: everyone, my team + managers, or leadership only. Then press Post check-in.
React with an emoji or comment on anyone’s post. Switch to Give kudos to thank a teammate publicly; they earn XP and get a notification. Automated posts (for example “Circana scan data refreshed” or a quality alert) land in the same feed, and the tabs filter check-ins, kudos, announcements and alerts.
Trainings & certificates
Eight short courses are ready, from Marketing Claims & PMTA Guardrails to Security Essentials. Most take under 20 minutes.
- 1Open Trainings. Your learning path lists the courses required for your role, most urgent first, with due dates.
- 2Click a course and read the short lessons and scenarios at your own pace. Your place is saved on this device.
- 3After the last lesson the knowledge check unlocks. Answer with the mouse, or the arrow keys and Enter. You need 80% to pass. Retakes are free, and every answer explains itself.
- 4Pass and your certificate appears instantly. Download it as a PDF; it carries a unique serial and a QR code.
Scan the QR code, or type the serial on the verify page. It shows whether the certificate is valid, expired or revoked, live from the training records.
Forms
People, org chart, wiki & calendar
XP, streaks & badges
Small rewards for the boring-but-vital habits. It’s a nudge, not a performance review.
| You… | You earn |
|---|---|
| Post your weekly check-in | XP, and it keeps your streak going |
| Finish a weekly priority | XP, and it keeps your streak going |
| Pass a training | 200–350 XP depending on the course |
| Receive kudos from a teammate | 50 XP |
| Hit KPI targets, keep long streaks | Badges (12 to collect) |
Your streak is the number of weeks in a row with a check-in or a finished priority. The Leaderboard shows the last 30 days by default (so newcomers can catch up fast), plus all-time and a department race. It’s friendly, and never used in reviews.
Who can see what
Every page, KPI, update and file has an audience. The database itself enforces it, so even a clever URL can’t get around it.
Shortcuts, phone & themes
| Do this | Press |
|---|---|
| Search everything / jump anywhere | Ctrl + K, ⌘ + K or / |
| Switch light / dark | Shift + D or the moon / sun button |
| Permission X-ray | Shift + X |
| Answer a quiz question | ↑ ↓ then Enter |
Questions people ask
›Where do the numbers come from?
Each KPI names its source: Snowflake (fed by Circana, MSA, Shopify, the ERP and so on), Google Sheets for targets and manual KPIs, or Compass forms. Data & integrations shows when each source last refreshed and any rows it rejected.
›How often is data updated?
Most KPIs are monthly and refresh nightly or hourly from Snowflake. The card always shows the period it covers, so you never mistake last month for this month.
›A number looks wrong. What do I do?
Click the KPI name, check the source and last refresh, then message the owner shown on the card. Admins can see the exact sync run each value came from.
›Can I change a target?
In production, targets live in a Targets Google Sheet owned by Finance. Change it there and Compass picks it up on the next sync, recorded as a sync run.
›Why can’t I see a page my colleague can?
Pages are granted to everyone, a role, a department or a person. Ask an admin (Max in the demo) to grant it in Admin → Access.
›Is anonymous feedback really anonymous?
Yes. The database stores only the topic, the text and an optional mood: no user ID, no email, no IP. Compass checks you’re an employee before accepting it, then forgets who sent it.
›I failed a quiz. Is that a problem?
Not at all. There’s no penalty for retakes. Review the explanations and try again. Your certificate records the score you passed with.
›Does it work on my phone?
Yes, every page. Charts become swipeable and tables scroll sideways.
›What happens when someone leaves?
An admin deactivates them. They lose access immediately, while their history (updates, certificates) stays for the record.
KPI glossary
The terms you’ll meet most often.
| Term | Means |
|---|---|
| Active doors | Retail stores that bought Sesh+ in the period. |
| Velocity | Units sold per store per week, the truest sign that shoppers want the product. |
| ACV | All-commodity volume: the share of a retailer’s total sales coming from stores that carry us. Higher ACV = better distribution. |
| Depletions | Cases distributors sold on to retailers (MSA data), as opposed to cases we shipped to distributors. |
| OTIF | On-time, in-full: orders delivered complete and on the promised date. |
| Capacity utilization | How much of the plant’s available production time was actually used. |
| CAC / payback | Cost to acquire a DTC customer, and how many months of margin it takes to earn it back. |
| eNPS | Employee net promoter score: % promoters minus % detractors on “would you recommend working here?”. |
| PMTA | Premarket Tobacco Product Application, the FDA authorization nicotine products need to stay on the market. |
| SPC | Statistical process control: the mean ± 3σ lines on quality charts. Points outside them need investigating. |
| Runway | Months of operation that current cash covers at the current burn rate. |
The rest of this guide is for the person who will connect data sources and maintain Compass. It assumes basic comfort with SQL and the command line.
How it’s built
Boring, proven parts, arranged so the database is the single source of truth for both data and permissions.
- Frontend: Next.js App Router exported as static files and served from Cloudflare’s global edge, so pages load fast anywhere. TypeScript end to end.
- Auth: Supabase Auth. Production uses Google Workspace OAuth limited to @seshproducts.com accounts; the demo uses pre-provisioned users per persona.
- Authorization: Postgres row-level security on every table. The UI only reflects permissions; the database enforces them.
- API: Cloudflare Pages Functions under
/api: health, the integration API and first-party analytics. Secrets live in Cloudflare, never in the browser. - Pipelines: Python jobs push KPI values from Snowflake and Google Sheets through the same validated ingest endpoint.
Data model
45+ tables in 12 ordered SQL migrations, grouped by domain. Keys are UUIDs or stable text ids, and every timestamp is timezone-aware.
| Domain | Main tables |
|---|---|
| Organization | departments teams people org_closure (fast “everyone under X” queries) |
| KPIs | kpi_definitions (179) kpi_values kpi_targets kpi_assignments data_sources sync_runs |
| Goals & work | outcomes key_results priorities projects project_members |
| Collaboration | weekly_updates update_comments update_reactions automation_posts notifications |
| Learning | trainings training_versions training_questions training_requirements training_assignments training_attempts certificates |
| Knowledge | wiki_spaces wiki_pages wiki_revisions calendar_events |
| Forms | complaints anonymous_feedback |
| Access & audit | page_permissions access_grants audit_log app_page_views |
| Engagement | xp_events badges person_badges |
kpi_values is one row per KPI × scope (company / department / team / person) × grain × period × dimension (for example flavor = mint or state = TX), with an is_forecast flag and the sync_run_id that wrote it. One shape serves every chart, and every number is traceable to the run that loaded it.
Integration API
Two endpoints cover almost every integration. The full OpenAPI 3.1 spec is at /api/v1/openapi.json. Import it into Postman, or point any tool at it.
| Endpoint | Does | Token scope |
|---|---|---|
POST /api/v1/kpi-values | Upserts up to 5,000 KPI rows per call. Idempotent; bad rows are rejected individually with a reason. | kpis:write |
POST /api/v1/posts | Posts an automation update into the feed (Zapier, Make, n8n, Snowflake tasks, GitHub Actions). | posts:write |
GET /api/health | Liveness check with a database round trip, for uptime monitors. | none |
curl -X POST https://sesh-compass.pages.dev/api/v1/kpi-values \
-H "Authorization: Bearer $COMPASS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"source": "snowflake",
"pipeline": "fact_kpi_hourly",
"rows": [
{ "kpi_code": "doors", "period_start": "2026-11-01", "value": 7841 },
{ "kpi_code": "velocity", "scope_type": "department", "scope_id": "sales",
"dim_type": "flavor", "dim_key": "mint", "period_start": "2026-11-01", "value": 3.4 }
]
}'{ "sync_run_id": "6f0c…", "status": "succeeded",
"rows_in": 2, "rows_upserted": 2, "rows_rejected": 0, "rejects": [] }Tokens are created by an admin, stored only as SHA-256 hashes, carry explicit scopes and can be revoked instantly. Every call is recorded as a sync run and stamps the source’s freshness on the Data page.
Connecting Snowflake & Google Sheets
FACT_KPI, in the same shape as kpi_values. A small Python job reads new rows with a read-only role (key-pair auth) and pushes them in batches of 5,000. Schedule it hourly via GitHub Actions, Cloudflare Cron or Snowflake Tasks.import os, requests, snowflake.connector
con = snowflake.connector.connect(account=os.environ["SF_ACCOUNT"], user=os.environ["SF_USER"],
private_key_file=os.environ["SF_KEY_PATH"], role="COMPASS_READER")
cur = con.cursor(snowflake.connector.DictCursor)
cur.execute("""select kpi_code, scope_type, scope_id, grain, period_start::string as period_start,
dim_type, dim_key, value, is_forecast
from analytics.fact_kpi where updated_at > dateadd(hour, -2, current_timestamp())""")
rows = [{k.lower(): v for k, v in r.items()} for r in cur.fetchall()]
for i in range(0, len(rows), 5000):
r = requests.post("https://sesh-compass.pages.dev/api/v1/kpi-values", timeout=60,
headers={"Authorization": f"Bearer {os.environ['COMPASS_TOKEN']}"},
json={"source": "snowflake", "pipeline": "fact_kpi_hourly", "rows": rows[i:i + 5000]})
r.raise_for_status()
print(r.json()["status"], r.json()["rows_upserted"], "rows")function postToCompass() {
const sheet = SpreadsheetApp.getActive().getSheetByName("Weekly");
UrlFetchApp.fetch("https://sesh-compass.pages.dev/api/v1/posts", {
method: "post", contentType: "application/json",
headers: { Authorization: "Bearer " + PropertiesService.getScriptProperties().getProperty("COMPASS_TOKEN") },
payload: JSON.stringify({ title: "Weekly sales sheet updated", body: sheet.getRange("A1").getValue(),
target_type: "department", target_id: "sales", severity: "info", source: "Google Sheets" }),
});
}Adding KPIs, pages and trainings
| To add… | Do this |
|---|---|
| A KPI | Insert a row in kpi_definitions (code, name, unit, direction up/down/band, department, owner, source). Push values through the API and it appears on its department page and anyone’s scorecard it’s assigned to. |
| A target | Add it to the Targets sheet, or insert into kpi_targets for a KPI, scope and period. |
| A training | Write it in pipelines/seed/trainings.py (lessons, scenarios, questions with explanations, pass mark, validity), or insert into trainings, training_versions and training_questions. Rows in training_requirements (by role, department or person, with due days) drive everyone’s “due” lists; Admin → Training governance tracks completion. |
| A page | Add a route under src/app/app/, register it in src/lib/nav.ts, and add a page_permissions row. The database then decides who sees it. |
| An automation | Issue a posts:write token and point Zapier, Make or n8n at /api/v1/posts. |
Security & privacy
- Row-level security is on for every table, and all policies are covered by an automated test suite.
- Privileged logic lives in
security definerfunctions with a fixedsearch_path. The service key exists only in Cloudflare secrets. - Integration tokens are hashed, scoped, revocable and audited. Ingest validates every row and caps batch size.
- Every permission change and admin action is written to the audit log.
- HTTPS everywhere, with Cloudflare’s DDoS protection and WAF in front of the site at no extra cost.
- Plain-English summary of what the demo records: Privacy.
Deploy & operate
- 1Create a Supabase project and apply the migrations in order:
supabase db push. - 2Set Cloudflare secrets once:
SUPABASE_URL,SUPABASE_SERVICE_ROLE_KEYandSUPABASE_ANON_KEY. - 3Build and ship:
npm run build, thennpx wrangler pages deploy out. Or connect the GitHub repo and every push tomaindeploys, with a preview URL for each pull request. - 4Add an uptime monitor on
/api/health, and schedule the Python sync.
Pick a teammate and see Compass through their eyes.