Orlando, FL
Projects

Application Tracker

Application Tracker screenshot
September 19, 2025

Visit Project

https://application-tracker-gray.vercel.app/

Overview

Application Tracker is a modern web app for organizing and monitoring job applications end-to-end. It delivers secure authentication, user-isolated data, and a focused dashboard to track statuses, interviews, and key metrics. Reads and writes go through typed Server Actions and API routes that validate input with Zod and keep secrets on the server.

Key Features

  • Authentication & Profile
    • Email and password sign-in with Payload CMS, using HTTP-only session cookies.
    • Email verification on sign-up and forgot-password emails sent through Resend.
    • Profile and password updates via /api/me and /api/me/password.
  • User Isolation
    • Every record is scoped to its owner with row-level access rules.
    • Nobody, an administrator included, can read or change another user's rows through the API or the admin panel.
  • Kanban Board
    • Drag-and-drop board (DnD Kit) for moving applications between statuses: Applied, Assessment, Phone Screen, Interview, Technical, Offer, Accepted, Rejected, Withdrawn, and Ghosted.
    • Core fields: company, job title, salary, level, link, description, and manual dateApplied.
    • Lists and dashboards sort by dateApplied (not createdAt) for a truthful timeline.
  • Interview Calendar
    • Monthly calendar view of scheduled interviews.
  • Analytics
    • Dashboard KPIs and a reports page with status and salary charts.
  • Search & Navigation
    • Global command palette (Cmd+K / Ctrl+K) for search and navigation.
  • Notifications & PWA
    • Installable PWA with an offline page.
    • Web Push notifications with per-device subscriptions.
  • English & Spanish
    • Full English and Spanish UI.
  • AI Assistant (optional)
    • Cover letters, job match analysis, and interview prep on the Anthropic API. It is off by default and runs only when the owner turns it on.

Technologies Used

  • Frontend
    • Next.js 15 (App Router), React 19, TypeScript
    • Tailwind CSS 4, Headless UI, Heroicons
  • Backend
    • Payload CMS 3 (@payloadcms/next) with PostgreSQL (Vercel Postgres)
    • Zod 4 for schema validation at the server boundary
    • Vercel Blob for file storage
    • Anthropic API for the optional AI assistant
    • Web Push and a Serwist service worker for the PWA
  • Testing & DevOps
    • Vitest unit and integration tests, Playwright end-to-end tests
    • GitHub Actions runs lint, type checks, Vitest tests, and a production build
    • Vercel deployments
    • Resend for transactional emails

Architecture Notes

  • Project Structure
    • Source under src/
    • App routes under src/app/(frontend)/[locale]/... (English and Spanish)
    • API routes under src/app/(frontend)/api/...
    • Dynamic details API: /api/apps/[id] reading id from new URL(req.url).pathname (Next 15 strictness)
  • Data Model (Payload CMS)
    • Users: firstName, lastName, email, preferences
    • Applications: owner (FK), companyName, jobTitle, salary, level, applicationLink, jobDescription, dateApplied, status
    • Interviews, Contacts, Boards, Notifications, PushSubscriptions, Media
    • Owner-only read/write on every collection; indexed fields for performant lookups

Server Actions, Caching & Security

  • Validated Server Actions
    Inputs are validated with Zod at the server boundary before any domain logic runs.
  • Server-Side Secrets
    Auth cookies and tokens are handled server-side via Payload. Secrets never reach the browser.
  • Normalized DTOs
    Payload documents are mapped to stable DTOs (IDs, enums, currency fields, and dateApplied coerced to ISO) to guarantee deterministic client rendering.
  • Deterministic Sorting
    Lists and KPIs are computed server-side using dateApplied to reflect real timelines across UI surfaces.
  • Cache-Aware Reads
    Dashboard reads are tagged per user and revalidated after mutations, avoiding coarse cache busts.

Challenges and Solutions

Owner-Scoped Access

Enforcing per-user isolation required Payload access functions that return an owner constraint tied to req.user. The same rule applies to every account, an administrator included, which keeps the rules simple to audit.

Sorting by User-Entered dateApplied

To avoid misleading timelines, all dashboard and table queries sort by dateApplied rather than createdAt. This choice informs both UI logic and caching boundaries.

Next 15 Route Strictness

Dynamic API routes (e.g., /api/apps/[id]) derive params from new URL(req.url).pathname to comply with Next 15’s stricter runtime behavior, eliminating edge-case parsing issues.

Reliable Email for Reset Flows

Email goes through Resend in both local and production environments, so forgot-password and verification emails behave the same everywhere.

Impact

The Application Tracker lets candidates monitor their pipelines with accurate timelines, actionable KPIs, and minimal friction. It shows production-grade decisions: typed schemas, owner-only access, server-only data flows, cache-aware reads, and a clean UI that scales with growth.