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.
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.