Skip to content
forms-raw_singleitemedit-icon
navigation
modification_btn
docs
messages
flatprojectmap.handlebars
Plugin Details
modificationbutton
docs_htmltables.handlebars

Plugin Details

docs_html.handlebars
documentation.handlebars

Falcon — Audit & Inspection Plugin

Falcon is a modular audit/inspection plugin for the site. It lets you capture findings in the field (with photos), auto-extract time and location metadata, describe the issue, and register it against an asset from the central Asset Register. Falcon follows the standard MVC plugin layout and integrates with shared auth, views, and DataTables-based lists.

What Falcon Solves

  • In-field capture: Take/upload a photo, auto-capture timestamp and GPS (EXIF) when available.
  • Structured findings: Add a title, description, category, severity, and link to an asset/location.
  • Traceability: Every finding is tied to an asset, area, and audit session for clean reporting.
  • Follow-up: Assign an owner, due date, and status; attach evidence and remediation notes.

Directory Structure

plugins/
                    └─ falcon/
                       ├─ models/
                       │  ├─ Finding.js
                       │  ├─ AuditSession.js
                       │  ├─ Attachment.js
                       │  └─ Lookups.js          # categories, severities, statuses
                       ├─ controllers/
                       │  ├─ findingsController.js
                       │  ├─ sessionsController.js
                       │  └─ uploadsController.js
                       ├─ views/
                       │  ├─ index.handlebars    # landing & lists
                       │  ├─ finding_edit.handlebars
                       │  ├─ session_edit.handlebars
                       │  └─ partials/
                       │     ├─ finding_card.handlebars
                       │     ├─ upload_widget.handlebars
                       │     └─ asset_picker.handlebars
                       ├─ public/
                       │  ├─ falcon.css
                       │  ├─ falcon.js
                       │  └─ exif-reader.min.js  # client EXIF (optional; server-side extraction also supported)
                       └─ index.js               # plugin entry point (manifest, router, init/shutdown)
                    

Core Concepts

  • Audit Session: A logical grouping (e.g., “Weekly Safety Walk — Berth 3, 2025-10-22”).
  • Finding: A single observation recorded with photo, metadata, description, severity, and asset link.
  • Asset Register Link: Every finding references an assetId (and optionally areaId), enabling location-aware reports.
  • Attachments: Primary photo + additional evidence files per finding.

Typical Workflow

  1. Create/Select Session: Start a new audit session or open an ongoing one.
  2. Capture Finding: Take or upload a photo. Falcon extracts timestamp and GPS (EXIF) when available.
  3. Describe & Link: Add a short title, description, category, severity, and select the asset (via Asset Picker).
  4. Assign & Track: Set a responsible owner, due date, and status. Add follow-up notes.
  5. Publish Report: Export a session summary (PDF/CSV), or filter findings in the list view and share.

Key Screens

  • Falcon Landing: Searchable list of sessions and recent findings (filter by status/severity/asset/area).
  • Finding Editor: Photo uploader with EXIF hinting, map preview (if GPS present), asset picker, description fields.
  • Session Dashboard: Session metadata, participants, counts by status/severity, and export options.

Data Model (Overview)

Finding

FieldTypeDescription
_idObjectIdPrimary key
sessionIdObjectIdParent audit session
assetIdObjectIdLinked asset (required)
areaIdObjectIdOptional area/sub-location
titleStringShort summary of the finding
descriptionStringDetailed observation and impact
categoryStringLookup (e.g., Safety, Fire, Environmental, Mechanical)
severityStringLookup (e.g., Low, Medium, High, Critical)
statusStringLookup (Open, In-Progress, Resolved, Closed)
assigneeUserRefResponsible person/team
dueDateDateFollow-up deadline
photoAttachmentRefPrimary image
attachmentsAttachmentRef[]Additional images/docs
capturedAtDateEXIF or upload time
geoPointExtracted GPS { lat, lon, accuracy } (if available)
createdByUserRefAuditor
createdAt/updatedAtDateAudit trail

Audit Session

FieldTypeDescription
_idObjectIdPrimary key
nameStringSession title
scopeStringScope/notes (e.g., areas, assets, standards)
startedAtDateStart time
endedAtDateEnd/close time
ownerUserRefResponsible coordinator
participantsUserRef[]Team conducting the audit
statsObjectCounts by status/severity/category

EXIF & Location Metadata

  • Auto-extraction: On upload, Falcon reads EXIF (DateTimeOriginal, GPSLatitude/GPSLongitude) when present.
  • Fallbacks: If EXIF is missing, uses server time; optional map input allows manual pin placement.
  • Privacy: Users are notified when GPS is captured; admins can enforce stripping or require consent.

Routes (Example)

MethodPathHandlerAuth/RolePurpose
GET/plugins/falcon/findingsController.listViewerLanding: filters, table, recent sessions
GET/plugins/falcon/findings/newfindingsController.newFormEditor+Create form (camera/upload widget)
POST/plugins/falcon/findingsfindingsController.createEditor+Create finding; parse EXIF; link asset
GET/plugins/falcon/findings/:idfindingsController.viewViewerDetail page
POST/plugins/falcon/uploads/photouploadsController.photoEditor+Photo upload (primary image)
PUT/plugins/falcon/findings/:idfindingsController.updateEditor+Edit fields, reassign, change status
GET/plugins/falcon/sessionssessionsController.listViewerList sessions and stats
POST/plugins/falcon/sessionssessionsController.createEditor+Create an audit session
GET/plugins/falcon/export.csvfindingsController.exportCsvEditor+CSV export (filtered)

UI Elements

  • Upload Widget: Single-click camera/upload, preview, EXIF hint display, and re-take option.
  • Asset Picker: Search by code/name; enforces a valid assetId selection.
  • Map Preview: Shows pinned location when GPS is available or set manually.
  • Finding Card: Compact card view for mobile with photo, severity chip, status, and quick actions.

Permissions

  • Viewer: Read-only access to findings and sessions.
  • Editor: Create/edit findings, upload photos, manage sessions.
  • Admin: Configure lookups, manage exports, delete records.

Integration Notes

  • Asset Register: Falcon relies on a shared Asset API (or DB model). The Asset Picker ensures canonical linking.
  • Areas/Locations: Optional area hierarchy can be shown in the picker for quick scoping.
  • Standards/Tags: Optionally tag findings with standards (e.g., NFPA 13, ISO, internal codes) for compliance mapping.
  • Exports: CSV for raw data; future PDF summary per session with embedded photos.

Configuration Defaults (index.js)

{
                      enabled: true,
                      basePath: "/plugins/falcon",
                      permissions: {
                        create: ["editor","admin"],
                        update: ["editor","admin"],
                        remove: ["admin"]
                      },
                      uploads: {
                        accept: ["image/jpeg","image/png","image/heic"],
                        maxSizeMb: 15,
                        store: "local"  // or "s3"
                      },
                      exif: {
                        enableClientParse: true,
                        enableServerParse: true,
                        requireConsentForGPS: true
                      }
                    }
                    

Falcon is optimized for quick, reliable field capture and rigorous traceability. It pairs photos and EXIF metadata with structured findings and a first-class link to the Asset Register, enabling actionable reports and accountable remediation.

modal1
modal2
modal3
docs_javascript
new_issue_button.handlebars
shortcut_edit