SwiftShift

SwiftShift Master Project Document

The Workday Killer — A lightning-fast, zero-friction timesheet app for modern teams.

1. Product Overview & Pitch

The One-Sentence Pitch: SwiftShift is a frictionless, AI-powered timesheet application that replaces clunky legacy HR portals with hardware-integrated clock-ins and a gamified, real-time financial dashboard designed to protect employee flow state.

Presentation Hooks (Intro Options):


2. Core Principles (System Tenets)

  1. First principles thinking — Find the best possible solution, not just a good one. Start from fundamentals, not existing patterns.
  2. Question every assumption — Shake up established processes. If something has always been done a certain way, that’s exactly where opportunity lives.
  3. Delete the unnecessary — Remove parts of the process that add no value. If a step can be eliminated, eliminate it.
  4. Simplify and optimize — Difficult problems require simple solutions. Complexity is a bug, not a feature.
  5. Accelerate 5× — Don’t aim for 10% better. Ask: how can this be 5× faster or better? Think in orders of magnitude.
  6. Automate everything — Reduce manual effort to zero. Manual work is the biggest bottleneck.

3. Master Feature Checklist (The PRD)

Core Architecture (The Workday Killers)

The Home HUD (Present State)

The Casino Vault (Reward Tab)

The Continuum (Insight Tab)

InstaApply (Job Portal Bypass)


4. UI/UX “Vibe Coding” Prompts

1. The Master Tech Stack & Aesthetic

“Initialize a Next.js 14 project using TypeScript, Tailwind CSS, and Framer Motion. Set up a Supabase client for a real-time PostgreSQL backend. Our theme uses RGB(27,24,14) for backgrounds and RGB(207,246,78) for primary accents. Apply a glassmorphism design system for all components.”

2. The Earnings Odometer (Casino Vault)

“Build the ‘Earnings Odometer’ React component. Background: rgb(27, 24, 14). Main card: glassmorphism (bg-white/5, backdrop-blur-xl, border-white/10) with an Electric Green rgb(207, 246, 78) drop shadow. Use a library like react-odometerjs or Framer Motion to build a mechanical odometer effect. The container should simulate a physical cutout in the glass using inner shadows (shadow-inner, bg-black/40). The final digits representing cents must continuously scroll upward vertically, clipping at the bounds to create the illusion of a spinning physical dial.”

3. The Target Ring (Home HUD)

“Build the ‘Target Ring’ circular progress component. Parent container is a glassmorphism card. Build the ring using an SVG <svg>. The track is stroke-white/10. The active progress stroke is exactly rgb(207, 246, 78) with a drop-shadow filter for a neon glow. Make the stroke segmented using strokeDasharray. Use Framer Motion’s motion.circle to animate strokeDashoffset from 0% to current progress. Center text displays elapsed time (‘00:14:05’) in large white text, and remaining time below it in muted gray.”

4. The Punctuality Streak Badge

“Build a React component PunctualityStreakBadge. It accepts props: expectedStartTime, actualPunchTime, and currentStreakCount. Logic: If the user clocks in before or within a 5-minute grace period of their target time, they secure the streak (freeze logic on weekends). UI is a pill-shaped Liquid Glass badge. Active Streak: Show a glowing Electric Green flame icon (drop-shadow-[0_0_8px_rgba(207,246,78,0.8)]) with a Framer Motion burst on mount. Broken Streak: Flame turns into a muted gray cinder, glass loses neon glow.”


5. Hardware Integration: Siri Shortcut & Webhook Guide

To enable “Hey Siri, clock me in” and map the physical Action Button:

  1. Create the API Route (Next.js):
    • Route: /api/siri-punch
    • Functionality: Accepts a POST request, finds the user ID in the Supabase DB, logs the timestamp, returns JSON {"message": "Successfully clocked in."}.
  2. Create the Apple Shortcut:
    • Open Shortcuts app, create new, name it “Clock me in”.
    • Add Action: “Get Contents of URL”
    • Paste API Link: https://your-deployed-app.com/api/siri-punch (Use ngrok for local testing).
    • Set Method to POST, add JSON body (e.g., {"userId": "123"}).
  3. Add Siri Voice Confirmation:
    • Add Action: “Date” (Current Date).
    • Add Action: “Format Date” (Date: None, Time: Short).
    • Add Action: “Speak Text” -> "Successfully clocked in at [Formatted Date]"
  4. Polish (Optional):
    • Add “Set Focus” to instantly turn on “Do Not Disturb” / “Deep Work” mode when the button is pressed.
    • Add “Choose from Menu” at the top of the shortcut to select specific Project Codes before the API payload is sent.

6. AI Workflows & Tech Stack

AI Workflows

Tech Stack

| Layer | Tech | | :— | :— | | Frontend | React 18 + TypeScript, Next.js 14 / Vite, Tailwind CSS | | UI Components | Framer Motion, canvas-confetti, Sonner toasts | | Backend | Supabase (PostgreSQL + Realtime) / Flask (Python) | | AI Integration | Advanced LLM SDK (api/ai/chat) | | Infrastructure | Vercel (Edge Functions) / S3 for document storage |


7. Database Schema & API Endpoints

Database Schema (PostgreSQL)

Core API Endpoints


Built by: Trevor Dixon, CEO/Owner