Skip to main content

Priority Roadmap

Current priorities for TrickBook. Engineering standards come first - no new features until the safety net is in place.

Priority Matrix

P0 - Engineering Standards (Next Session)

These are blocking. Ship no new features until these are done.

#TaskRepoEffortDocs
1Add Biome (lint + format)Both30 minSetup
2Add pre-commit hooks (Husky + lint-staged)Both30 minSetup
3Add ErrorBoundary componentMobile1 hourGuide
4Add Sentry error trackingBoth1 hourGuide
5Write first 10 tests (critical paths)BothHalf dayStrategy
6Add CI/CD with quality gatesBoth1 hourPipeline
7Add global error handler middlewareBackend1 hourGuide
8Create .env.example filesBoth15 minTemplate

Definition of done: Every commit is linted, every PR runs tests, every production error is tracked.

P1 - Security Hardening (Same Sprint)

TaskRepoStatusDocs
Rotate exposed credentialsBackendPendingGuide
Upgrade Node.js 12 to 20 LTSBackendPendingGuide
Fix JWT secret (env var + expiration)BackendPendingGuide
Add rate limitingBackendPendingGuide
Add input sanitization (NoSQL injection)BackendPendingGuide
Restrict CORS whitelistBackendPendingGuide
Update helmet to v8BackendPendingGuide
Add health check endpointBackendPendingGuide
Add graceful shutdownBackendPendingGuide

P2 - Code Cleanup (Following Sprint)

TaskRepoEffortDocs
Remove 6 dead dependenciesMobile30 minDetails
Remove aws-sdk v2 (v3 already installed)Backend15 minDetails
Add Zod schemas for all API responsesMobile1 dayGuide
Replace console.log with structured loggerBoth2 hoursGuide
Centralize MongoDB connection poolBackendHalf dayGuide
Pick one MongoDB driver (drop unused one)BackendHalf dayDetails
Dockerize backendBackend1 hourGuide
Tighten TypeScript strict settingsMobile1 hourDetails

P3 - Feature Work (After Standards Are Met)

TaskRepoNotes
Google Play submissionMobileStore listing, screenshots, review
Push notificationsMobileExpo push + backend triggers
Offline mode improvementsMobileQueue mutations, sync on reconnect
Refresh tokensBackendAccess token (15m) + refresh (7d)
Expand test coverage to 40%BothAdd tests as you touch files
API versioningBackend/api/v1/ prefix

Sprint Plan: Engineering Standards

Goal: Go from 0 quality gates to full CI/CD pipeline in one session.

Hour 1: Biome + Pre-commit (Both Repos)

# TrickList
cd TrickList
npm install --save-dev @biomejs/biome husky lint-staged
npx @biomejs/biome init
npx husky init
# Configure biome.json, lint-staged, .husky/pre-commit
npm run lint:fix # Auto-fix everything
# Commit the formatting pass

# Backend
cd Backend
npm install --save-dev @biomejs/biome husky lint-staged
npx @biomejs/biome init
npx husky init
npm run lint:fix
# Commit

Hour 2: Error Handling + Sentry

# TrickList
cd TrickList
npx expo install @sentry/react-native
# Create src/components/ErrorBoundary.tsx
# Wire up in app/_layout.tsx
# Add EXPO_PUBLIC_SENTRY_DSN to .env

# Backend
cd Backend
npm install @sentry/node express-mongo-sanitize
# Create middleware/errorHandler.js
# Create utils/AppError.js
# Add Sentry.init to index.js
# Add graceful shutdown handlers
# Add health check endpoint

Hours 3-4: First Tests

# TrickList
cd TrickList
npm install --save-dev @testing-library/react-native @testing-library/jest-native
# Write tests: client.test.ts, authStore.test.ts, trickStatus.test.ts
# 2 screen smoke tests

# Backend
cd Backend
npm install --save-dev jest supertest mongodb-memory-server
# Write tests: auth.test.js, users.test.js, auth-middleware.test.js
# trick-lists.test.js, spots.test.js

Hour 5: CI/CD

# TrickList - create .github/workflows/ci.yml
# Backend - create .github/workflows/ci.yml
# Configure branch protection rules on GitHub
# Create .env.example for both repos

Feature Roadmap

Q1: Foundation (Current)

  • Core trick list functionality
  • User authentication (email + Google + Apple)
  • iOS App Store launch
  • Feed/social features
  • Direct messaging
  • Spot discovery with maps
  • Engineering standards (this sprint)
  • Security hardening (this sprint)
  • Google Play launch

Q2: Growth

  • Push notifications
  • Offline mode
  • Analytics dashboard
  • Performance optimization
  • Expand test coverage to 60%

Q3: Expansion

  • Community features
  • Premium feature expansion
  • API versioning
  • International expansion

Q4: Scale

  • Additional sport support
  • Partner integrations
  • Automated E2E testing

Metrics to Track

Engineering Health

MetricCurrentTarget
Test coverage0%40% (Q1), 70% (Q2)
Lint errorsUnknown (no linter)0
CI pass rateN/A (no CI)>95%
Mean time to detect errorDays (user report)Minutes (Sentry alert)
Crash-free sessionsUnknown>99.5%

App Metrics

  • Daily Active Users (DAU)
  • Monthly Active Users (MAU)
  • Retention (Day 1, 7, 30)
  • Session duration
  • Tricks completed per user

Business Metrics

  • Downloads (iOS vs Android)
  • Premium conversion rate
  • Revenue per user
  • App Store rating