05/02 Phase C 4

This commit is contained in:
Nguyen Ngo
2026-05-04 13:15:28 -04:00
parent 2baa67766b
commit 09715e9c11
3 changed files with 549 additions and 71 deletions
@@ -1,13 +1,20 @@
// Views/Inspection/FormRenderer/FormFieldView.swift
// -------------------------------------------------
// Renders a single form field from the inspection template form_schema.
// Designed to sit inside a card (secondarySystemGroupedBackground).
// All fields use consistent styling suited for iPad.
// Views/Dashboard/FormFieldView.swift
// ------------------------------------
// Shared form field sub-components used across the app.
//
// CHANGED (grid layout update):
// - FormFieldView top-level struct retained for any standalone usage.
// - RatingFieldView, PassFailFieldView, CheckboxGroupView, RadioGroupView,
// SelectFieldView, DateFieldView remain here for backward compatibility.
// - ImageFieldView, SignatureFieldView, TableFieldView remain here;
// GridCellContentView (in ExecuteInspectionView.swift) references these directly.
// - No components removed.
import SwiftUI
import PencilKit
// MARK: - FormFieldView
// Retained for standalone/legacy usage outside the grid inspection form.
struct FormFieldView: View {