尚未偵測到更新。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.