Version 6.6

FieldVoice Pro

AI-Powered Field Reporting for Construction Inspectors

Save 1+ hour daily on DOT-compliant documentation

26,768
Lines of Code
13
HTML Pages
22
JS Modules
17
Database Tables
106
Total Files

Executive Summary

Voice-powered construction documentation that transforms field notes into professional DOT reports

๐Ÿ“ฑ

What It Is

A mobile-optimized Progressive Web App (PWA) for construction field documentation. Enables RPRs and inspectors to quickly document daily work using voice dictation, generating professional DOT-compliant reports.

๐Ÿ‘ท

Who Uses It

Resident Project Representatives (RPRs), construction inspectors, and field engineers working on DOT (Department of Transportation) construction projects.

๐ŸŽฏ

The Problem

Manual paper-based reporting is time-consuming, error-prone, and lacks consistency. Field staff spend hours each day on documentation instead of inspection work.

โœจ

The Solution

Voice-first capture with AI refinement. Speak your notes, snap photos with GPS, and let AI transform informal field notes into professional DOT-format reports.

๐Ÿ”Œ

Offline-First

Full PWA support with localStorage and IndexedDB caching. Capture data in the field without connectivity, sync when back online.

๐Ÿ“„

Instant PDF

Generate print-ready DOT RPR Daily Reports with one tap. Professional formatting, GPS-verified photos, and digital signatures.

System Architecture

Three-tier architecture: Mobile PWA โ†’ Supabase Backend โ†’ n8n AI Processing

๐Ÿ“ฑ Mobile PWA
Vanilla JS + Tailwind CSS
โŸท
๐Ÿ—„๏ธ Supabase
PostgreSQL + Storage
โŸท
๐Ÿค– n8n Webhooks
AI Processing
๐Ÿ’พ
localStorage
Quick state
๐Ÿ—ƒ๏ธ
IndexedDB
Offline cache
๐Ÿ˜
PostgreSQL
17 tables
๐Ÿ“ฆ
Storage Bucket
Photos & PDFs
๐Ÿง 
AI Refinement
Text processing
๐Ÿ“‘
Doc Extraction
PDF/DOCX import

User Flow

From field capture to submitted report in 8 steps

1

Open App

Dashboard shows active project & today's status

2

Begin Report

Select project, auto-fetch weather

3

Quick Interview

Voice/text notes, GPS photos

4

AI Processing

15-20 sec refinement via n8n

5

Report Review

Edit AI-refined content

6

Final Review

DOT format preview

7

Submit

Generate PDF, archive

8

View PDF

Google Docs viewer

Capture Modes

โšก

Quick Notes (Freeform)

Single freeform textarea for fast dictation-first workflow. Best for experienced users who want minimal structure.

๐Ÿ“‹

Guided Sections

5 expandable section cards: Weather & Site, Contractor Activities, Issues & Delays, Safety, and Progress Photos.

Database Schema

17 PostgreSQL tables with full relational integrity

Entity Relationship Diagram

projects CORE
๐Ÿ”‘ id UUID
project_name TEXT
noab_project_no TEXT
location TEXT
prime_contractor TEXT
notice_to_proceed DATE
status TEXT
reports CORE
๐Ÿ”‘ id UUID
โ†’ project_id UUID
report_date DATE
status TEXT
capture_mode TEXT
inspector_name TEXT
toggle_states JSONB
user_profiles
๐Ÿ”‘ id UUID
full_name TEXT
title TEXT
company TEXT
email TEXT

Additional Tables

equipment ยท report_contractor_work ยท report_personnel ยท report_equipment_usage ยท report_ai_request ยท report_ai_response ยท report_user_edits ยท report_final

Technology Stack

Modern, no-build-step architecture optimized for mobile field use

Frontend

Vanilla JavaScriptES6+ Modules
Tailwind CSSCDN v3.x
Font Awesomev6.4.0
PWAService Worker

Backend & Storage

SupabasePostgreSQL + Auth
Supabase StoragePhoto Bucket
localStorageQuick State
IndexedDBOffline Cache

External APIs

n8n WebhooksAI Processing
Open-MeteoWeather API
Geolocation APIGPS Coords

Browser APIs

MediaDevicesCamera
Canvas APICompression
FileReaderDoc Import
Drag & DropFile Upload

Key Features

Purpose-built for construction field documentation

๐ŸŽค

Voice-First Capture

Native keyboard dictation support on iOS and Android. Speak naturally, let AI refine.

๐Ÿค–

AI Refinement

Transform informal field notes into professional DOT-compliant language in 15-20 seconds.

๐Ÿ“

GPS-Tagged Photos

Every photo automatically tagged with high-accuracy GPS coordinates and timestamps.

๐Ÿ“ด

Offline-First PWA

Full functionality without connectivity. Auto-sync when back online.

๐Ÿ“„

Document Import

Extract project data from existing PDF/DOCX reports via AI-powered extraction.

๐Ÿ–จ๏ธ

Instant PDF Generation

Print-ready DOT RPR Daily Reports with professional formatting.

โ˜๏ธ

Cloud Sync

Multi-device sync via Supabase. Access reports from any device.

๐ŸŒค๏ธ

Auto Weather

Automatic weather data via Open-Meteo API based on GPS location.

Application Pages

13 HTML pages with 22 shared JavaScript modules

Page Lines Purpose
index.html 1,002 Home dashboard with project selection and weather
quick-interview.html 3,912 Daily report capture (Quick Notes / Guided Sections)
report.html 3,219 AI-populated editable DOT form
finalreview.html 2,273 Read-only DOT RPR viewer with print layout
archives.html 477 Report history with swipe-to-delete
drafts.html 614 Offline queue and draft management
project-config.html 1,857 Project management with document import
permissions.html 1,530 Permission setup (mic, camera, GPS)
settings.html 458 Inspector profile (name, title, signature)
landing.html 1,494 Marketing/onboarding landing page

JavaScript Modules

  • ๐Ÿ“ js/
    • config.js โ€” Supabase credentials
    • storage-keys.js โ€” localStorage structure (v6)
    • report-rules.js โ€” Business rules validation (v6)
    • supabase-utils.js โ€” Data converters (snake_case โ†” camelCase)
    • sync-manager.js โ€” Real-time backup & offline sync
    • data-layer.js โ€” Single source for data operations
    • indexeddb-utils.js โ€” IndexedDB operations
    • pwa-utils.js โ€” Service worker, offline banner
    • ui-utils.js โ€” escapeHtml, generateId, showToast
    • media-utils.js โ€” Photo compression, GPS
    • project-config.js โ€” Project page logic
    • quick-interview.js โ€” Interview page logic (5,124 lines)
    • finalreview.js โ€” Final review logic (1,970 lines)
    • archives.js โ€” Archives page logic
    • index.js โ€” Dashboard logic
    • sw.js โ€” Service worker (cache v1.11.0)