K
Kumar Gaurav
Back to Projects
Document Management System

Advocate Desk

A centralized secure workspace for legal professionals integrating Google Drive, Sheets, and local file storage systems.

Next.jsTailwindCSSGoogle Workspace APIsZod

The Problem Context

Legal teams spend hours manually copying files across local devices and cloud storage, resulting in misplaced records and broken client sheets.

The Proposed Solution

Created Advocate Desk, an unified Next.js dashboard that acts as a secure middleware. Lawyers can create a client folder, upload case sheets, and sync files automatically with Google Workspace, updating sheets in real time.

System Architecture & Patterns

01Google API Middleware using Next.js Route Handlers
02React Hook Form validations to check case numbers and file hashes before syncing
03Local storage states to enable instant navigation of offline file tables

Engineering Challenges

Designing clean asynchronous error handling for Google API quota limits and handling large file uploads without server timeouts.

Key Features

  • •Integrated OAuth2 flow for secure Google Drive and Google Sheets access
  • •Automated centralized logging of legal briefs, cases, and hearing records
  • •Dynamic data grids featuring quick search, multi-column sorting, and Excel export support

Impact

Streamlined case file tracking for regional law practitioners, reducing administrative retrieval errors to near zero.

Lessons Learned

Leveraging official APIs rather than custom scrapers results in high reliability, and client-side validation saves extensive API traffic.