A standalone web application for creating professional test reports (hydrostatic and gas) for plumbing professionals. This application runs entirely in the browser with no server-side components, making it easy to deploy on any static web hosting service. When sharing links, the page title displays as "Plumbing Tooling - Reports for Licensed Professionals".
- Test Types: Pre-Test, Post-Test (Supply/Sewer), Pinpoint Test, and Gas Test
- Customer Information: Quick Fill (paste name/address/email/phone), autocomplete from saved customers, shareable URLs with pre-filled data
- Hydrostatic Reports: PASS/FAIL results, customizable conclusions, certification
- Gas Test: House Pressure (PSI, in WC, oz/in², mm WC with auto-conversion) and House Utilities (fixtures with BTU/hr, running total)
- PDF Generation: Create professional PDF reports and invoices with a single click (html2canvas + jsPDF)
- LocalStorage: Customer data persistence for returning customers
- Responsive Design: Bootstrap 5, works on desktop and mobile devices
- No Server Required: Runs entirely in the browser with no backend dependencies
- Select a test type (Pre-Test, Post-Test, Pinpoint Test, or Gas Test)
- Enter customer information and test location
- Fill in test-specific fields (e.g., for Gas Test: House Pressure and/or House Utilities)
- For hydrostatic tests: choose PASS or FAIL
- Click Report to preview, then Download PDF; or Invoice for billing
- Pre-Test / Post-Test: Choose Supply or Sewer; enter test duration; PASS/FAIL required
- Pinpoint Test: Location, method, findings; no PASS/FAIL; different certification text
- Gas Test: House Pressure (enter one unit, others auto-compute; Reset to clear); House Utilities (add fixtures, BTU/hr with comma formatting, [x1,000] button, quick-fill buttons)
- Pressure conversions (PSI as base): 1 PSI = 16 oz/in², 27.68 in WC, 703 mm WC
- Locked fields turn gray when one pressure value is entered; Reset Pressure button turns orange
- BTU/hr: Comma formatting (e.g., 100,000), step 5000 for arrow keys, [x1,000] multiplies value
- Report: House Pressure and House Utilities sections appear only when data exists
- HTML5, CSS3, and JavaScript (ES6+)
- Bootstrap 5 for responsive UI components
- jsPDF for PDF generation
- html2canvas for converting HTML to images
- LocalStorage for customer data persistence
index.html- Main application HTML with form and report templatesjs/app-fixed.js- Main JavaScript file with all application logiccss/styles.css- Custom styling for the applicationimg/- Directory containing the Click Plumbing letterhead logo (logo.svg, printed on reports)favicon.ico,icons/- The app mark (the Tooling family's yellow tile): browser tab, iOS home screen, and the master SVG
The application uses vanilla JavaScript with the following key components:
-
Form Handling
- Input validation and data collection
- Customer data management with localStorage
- Form reset functionality
-
Modal Management
- Preview modal for report display
- Invoice modal for invoice generation
- Accessibility enhancements for modals
-
Report Generation
- Data formatting and template population
- Date formatting with timezone handling
- PDF generation using html2canvas and jsPDF
-
Customer Data Management
- Autocomplete functionality for returning customers
- LocalStorage persistence for customer information
- Address parsing and formatting
-
Gas Test Logic
- Pressure unit conversion (PSI, in WC, oz/in², mm WC)
- Fixture add/remove, BTU formatting with commas, quick-fill buttons
- [x1,000] multiplier for BTU values
-
Test Type Routing
- Show/hide sections per test type (Supply/Sewer, Pinpoint, Gas Test)
- Validation rules (PASS/FAIL required for hydrostatic; optional for Pinpoint and Gas Test)
-
Gas Test (2025)
- New test type with House Pressure and House Utilities
- Pressure unit conversion (PSI, in WC, oz/in², mm WC)
- Fixture list with BTU/hr, quick-fill buttons, [x1,000] multiplier
- Report shows only sections with data
-
Codebase Cleanup
- Single JavaScript file (
app-fixed.js), logo.svg, no duplicate Bootstrap - Removed legacy and backup JavaScript files
- Single JavaScript file (
-
Branding
- Page title: "Plumbing Tooling - Reports for Licensed Professionals"
-
Date Formatting
formatDatehandles YYYY-MM-DD with local timezone
- Clone this repository
- Run a local server (e.g.,
python -m http.server 8888) - Open
http://localhost:8888in your browser
- Add the test type button in
index.html(e.g.,data-test-type="gas-test") - Add the content block with
style="display: none;"and wire show/hide in the test type handler - In
app-fixed.js: updateformatTestType, add branch in test type button click handler, add reset logic - Add report template section in
index.htmland a branch inpopulateReportPreview - Update
validateForm(e.g., skip PASS/FAIL for the new type)
- Add the HTML input in
index.htmlwithin thehydroTestFormform - Update the
populateReportPreviewfunction inapp-fixed.jsto include the new field - Add the field to the report template in
index.html
- Locate the
reportTemplatediv inindex.html - Make changes to the structure while maintaining the ID attributes
- Update the
populateReportPreviewfunction if necessary
- Add new fields to the customer form in
index.html - Update the
saveCustomerDatafunction inapp-fixed.js - Modify the customer data object structure in the localStorage handling
-
Date Display Issues
- The application uses a custom
formatDatefunction to handle date formatting - Date input is expected in YYYY-MM-DD format (HTML date input standard)
- The function parses this format and creates a date in the local timezone
- The application uses a custom
-
PDF Generation Problems
- PDF generation uses html2canvas to capture the report as an image
- Ensure all assets (images, fonts) are properly loaded before generation
- Check browser console for any CORS-related errors with external resources
-
Modal Display Issues
- The application uses Bootstrap 5 modals with custom accessibility enhancements
- Modal initialization happens in the DOMContentLoaded event listener
- Avoid duplicate modal declarations which can cause JavaScript errors
-
Signature Capture Enhancement
- Add touch/stylus support for better signature quality
- Implement signature verification or timestamping
-
Report Template Customization
- Allow users to select from multiple report templates
- Add company information customization in settings
-
Data Export/Import
- Add functionality to export/import customer databases
- Implement cloud sync options for customer data
-
Invoice Integration
- Enhance the invoice generation with more payment options
- Add QuickBooks or other accounting software integration
- Clone this repository or download the files
- Open
index.htmlin your web browser (or visit clicktooling.com if deployed) - No installation or server setup required!
This application can be deployed to any static web hosting service:
- GitHub Pages
- Netlify
- Vercel
- AWS S3
- Any standard web hosting service
Simply upload all files while maintaining the directory structure.
- Chrome (recommended)
- Firefox
- Safari
- Edge
This project is licensed under the MIT License - see the LICENSE file for details.
- Built for Click Construction / Plumbing Tooling (formerly Click Tooling; moved from clicktooling.com to plumbingtooling.com 2026-08-28)
- Inspired by the original Click Construction Proposal Generator