Skip to main content

Git Evolution Timeline

This timeline is derived from salesarck_code commit history and key file-level diffs.

Milestones

DateCommitMilestoneImpact
2026-04-06bbe72f4Initial monorepo foundationEstablished apps/packages structure and baseline product implementation.
2026-04-06bc30edeUnified portal and RBAC hardeningConsolidated role-based app model and strengthened auth/authorization scaffolding.
2026-04-060d8b6b0Enhanced auth profile flowAdded richer role/status profile handling and auth-path robustness.
2026-04-068b9d9b0PKCE callback hardeningImproved callback processing and post-login routing reliability.
2026-04-06f268e4aSquare + wallet pipeline baselineIntroduced OAuth/webhook concepts, ingestion path, and wallet-credit architecture.
2026-04-0627ea451POS-first onboardingAdded onboarding profile persistence and POS preference model.
2026-04-06667435fMulti-merchant polling fallbackAdded merchant-wide ListPayments poll flow and supporting cron architecture.
2026-04-06e59a5f1Admin approval workflowsAdded tenant/user admin endpoints with practical approval controls.
2026-04-063234ae8Stub-to-real API wiringReplaced placeholder frontend behaviors with real backend-integrated flows.
2026-04-0613955deWorkspace provisioning + guided onboardingAutomated merchant workspace creation and enforced onboarding progression.
2026-04-078690dc4POS preference enforcementHide Clover when Square is chosen; shorten Square OAuth state.
2026-04-07cee518eOAuth host enforcementEnforce connect.* OAuth host + client URL normalization.
2026-04-074595a93OAuth URL guardrails and diagnosticsAdded strict Square host validation, debug endpoint, and client-side validation.
2026-04-073bd1c76Notification layerAdded Resend-backed points/redeem email notifications.
2026-04-079be1077Wallet/redeem/history UX expansionImproved consumer wallet flows and merchant-facing interactions.
2026-04-078859a8bMobile navigation consistencyStrengthened responsive shell/navigation behavior across pages.
2026-04-07a776ad1CI/CD workflow refinementUpdated CI/CD workflows for clarity, removed version specification for pnpm/action-setup.
2026-04-0717571a9CI pnpm fixRemove version specification for pnpm/action-setup in CI workflows.

Active Feature Branches

BranchStatusDescription
copilot/improve-test-coverageUnmergedUnit tests for rbac, reward-engine, API libs (errors, merchant-workspace, resolve-user). Coverage tooling.
dependabot/npm_and_yarn/drizzle-orm-0.45.2UnmergedDependency update: drizzle-orm
dependabot/npm_and_yarn/hono-4.12.12UnmergedDependency update: Hono
dependabot/npm_and_yarn/hono/node-server-1.19.13UnmergedDependency update: @hono/node-server
dependabot/npm_and_yarn/vite-6.4.2UnmergedDependency update: Vite

Working Tree Changes (Uncommitted)

As of 2026-04-12, the working tree contains uncommitted Clover integration work:

New files:

  • apps/api/src/lib/clover.ts — Clover OAuth helpers, token exchange, webhook verification
  • apps/api/src/services/clover-adapter.ts — Clover webhook parsing and payment normalization
  • apps/api/src/services/clover-api.ts — Clover REST API calls (GetPayment, GetCustomer)

Modified files:

  • apps/api/src/lib/env.ts — Added Clover environment variables
  • apps/api/src/routes/client.ts — Added Clover connect endpoint
  • apps/api/src/routes/pos-oauth.ts — Added Clover OAuth callback
  • apps/api/src/routes/webhooks.ts — Added Clover webhook receiver
  • apps/api/src/services/ingestion.ts — Added Clover ingestion pipeline (processCloverWebhook, executeCloverIngestion)
  • apps/web/src/pages/PosSettingsPage.tsx — Added Clover connection UI

This represents a complete Clover POS integration, parallel to the existing Square integration.

Recurrent Engineering Themes

Based on commit subjects and touched file patterns:

  1. Frontend integration and route hardening
  2. Auth and profile-state handling
  3. Square OAuth and webhook processing reliability
  4. Merchant onboarding and workspace lifecycle
  5. Admin approvals and governance tooling
  6. Operational fallback via polling/cron
  7. Observability/error-surface improvements
  8. CI/CD pipeline maintenance
  9. Email notification capabilities
  10. Multi-POS provider architecture (Square + Clover)

Most Frequently Touched Implementation Files

  • apps/web/src/App.tsx
  • apps/web/src/pages/PosSettingsPage.tsx
  • apps/web/src/pages/LoginPage.tsx
  • apps/web/src/lib/auth-profile.ts
  • apps/web/src/store/auth.ts
  • apps/web/src/pages/profile/MerchantProfileWizard.tsx
  • apps/api/src/routes/admin.ts
  • apps/api/src/routes/client.ts
  • apps/api/src/routes/auth.ts
  • apps/api/src/lib/env.ts
  • apps/api/src/lib/square.ts
  • apps/api/src/services/ingestion.ts
  • packages/db/src/schema/index.ts
  • render.yaml

Why This Matters for Documentation

The platform evolved rapidly in a short window with strong focus on runtime correctness and flow hardening. Documentation maintenance should continue to be commit-driven so high-change areas (auth, onboarding, POS, wallet, and Clover integration) remain synchronized with implementation.

Written byDhruv Doshi