尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Internal KPI dashboard
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗Live KPI dashboard for Above Exterior Cleaning.
supabase/migrations/ – database tables, access rules, sync support, schedulesupabase/functions/ – Jobber connect, OAuth callback, sync and webhook receiver
_shared/readonly_guard.ts refuses any GraphQL mutation before it leaves the server_shared/queries.ts is the complete list of queries the sync may runsupabase/tests/ – access-rule tests (run against a local Postgres)supabase/functions/tests/ – sync unit + database integration testsjobber-sync?mode=check compares our queries to Jobber's live schema. Writes nothing.jobber-sync?mode=backfill&only=<users|clients|requests|quotes|jobs|invoices|timesheets>
pulls history one type at a time, then ?mode=backfill&only=done marks it complete.Secrets (Supabase → Edge Functions → Secrets): JOBBER_CLIENT_ID, JOBBER_CLIENT_SECRET,
JOBBER_SETUP_KEY, SYNC_KEY. Vault secret sync_key (same value as SYNC_KEY) for the scheduler.
supabase/functions/quo-sync reads Quo calls and texts. Quo API keys can't be
limited to reading, so _shared/quo.ts is the lock: it only sends GET requests,
and only to /calls, /messages, /users and /phone-numbers. Nothing in this
project sends texts, places calls, or changes anything in Quo.
Message text is never stored. Each outgoing text is reduced to two short fingerprints, used only to recognise the automatic n8n text sent to new form leads (so it doesn't count as a reply).
Setup: add the QUO_API_KEY secret in Supabase (Edge Functions → Secrets), deploy,
then run Actions → Sync → quo-check, then quo-backfill. After the import
finishes, the scheduler pulls new calls and texts every 5 minutes.
supabase/functions/meta-sync reads daily ad results (spend, impressions,
clicks, Meta-reported leads) per ad. The system user token only has ads_read;
_shared/meta.ts is a second lock: GET only, only to Meta's Graph API, and only
to act_<your account> and act_<your account>/insights. A tripwire test fails
the deploy if Meta is referenced anywhere else.
Setup: add META_ACCESS_TOKEN and META_AD_ACCOUNT_ID (digits) as Supabase
secrets, deploy, then run Actions → Sync → meta-check, then meta-backfill.
After that it re-reads the last 3 days every hour and the last 28 days nightly.
supabase/functions/google-sync reads Google Business Profile reviews. Google
has no read-only permission for Business Profile, so _shared/google.ts is the
lock: GET only, and only to list accounts, list locations, and list a
location's reviews. The single POST allowed is to Google's token endpoint. A
tripwire test fails the deploy if Google is reached from anywhere else.
Without Business Profile approval, set GOOGLE_PLACE_ID and GOOGLE_PLACES_API_KEY
instead: the sync reads the public listing (rating, review count, newest 5 reviews)
from the Places API with a key that can't change anything.
Setup for full access: Google must approve Business Profile API access for the Cloud project.
Then add GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET and GOOGLE_SETUP_KEY
secrets, deploy, open <project>/functions/v1/google-connect?key=<GOOGLE_SETUP_KEY>
once, and run Actions → Sync → google-check, then google-sync. After that it
reads new reviews every 3 hours. Quo texts with a Google review link are
flagged (the text isn't stored) for review-request conversion; run quo-rescan
once to flag the last 120 days.
psql -d testdb -f supabase/tests/supabase_stub.sql
psql -d testdb -f supabase/migrations/20261024000001_core_schema.sql
psql -d testdb -f supabase/migrations/20261024000002_access_rules.sql
psql -d testdb -f supabase/tests/access_rules_test.sql # ends with ALL ACCESS TESTS PASSED
cd supabase/functions
deno test tests/sync_test.ts
SUPABASE_DB_URL=postgres://postgres@localhost:5432/synctest deno test -A tests/store_integration_test.ts
web/)Next.js app with Supabase sign-in by email link. Pages:
/overview (owners): revenue flow booked → completed → invoiced → paid, schedule ahead,
quotes, customers, monthly trend, service/area breakdowns, unpaid invoices, request sources/team (owners): everyone's scorecards; who can sign in, roles, hourly cost, invites/me (everyone): own scorecard and jobs, plus company totals. No rankings.All numbers come from database functions (supabase/migrations/…06_dashboard_metrics.sql),
so access rules apply on every request. DEMO_MODE=1 shows sample data and reads nothing real.
Environment (Vercel): NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY,
SUPABASE_SERVICE_ROLE_KEY (production only; used only to send invites after an owner check).
Preview deployments: set DEMO_MODE=1 and no service key.
Supabase Auth settings:
{{ .SiteURL }}/auth/callback?token_hash={{ .TokenHash }}&type=magiclink
(and type=invite for invites) so links work on any device.