requiredInfoValues for search and reporting instead of relying on office staff via side channels.requiredInfo (attik-backend/src/models/requiredInfoSchema.ts): name, required, type, options, _spectoraCustomFieldId, hidden, etc. There is no schema property today for “inspectors may edit this field.”requiredInfoValues (attik-backend/src/models/requiredInfoValueSchema.ts: _requiredInfoId, name, value). PATCH inspection/:id assigns b.requiredInfoValues directly in attik-backend/src/routes/inspection.ts when present.RequiredInfoSection → RequiredInfoAccordion (attik-frontend/src/app/tools/inspections/[id]/components/RequiredInfoSection.tsx), mounted from WorkorderPage.tsx, persisting with PATCH inspection/{id}.RequiredInfoGrid.tsx from app/(app)/inspection/[id].tsx; there is no mobile service in-repo that patches requiredInfoValues alongside attachments/notes.requiredInfoValues for change history (attik-backend/src/util/functions/activity/requiredInfoHandlers.ts).Backend — attik-backend
requiredInfoSchema, routes/requiredInfo.ts) with a per-field flag (or equivalent) meaning “inspectors assigned to the job may edit this field’s value,” plus validation rules the dev team deems appropriate.PATCH inspection/:id behavior so inspector-scoped clients can only change requiredInfoValues entries that are both flagged and allowed for that inspection’s services—without opening broader workorder edits unless product intends that.Frontend — attik-frontend
RequiredInfo is created or edited (company required info and service linkage—e.g. services types in src/util/types/serverTypeCollection/services.ts and related settings screens) should expose the new inspector-editable toggle.RequiredInfoSection / RequiredInfoAccordion should honor the flag and the current user’s role: editable inputs for permitted inspector users on flagged fields; unchanged behavior for everyone else unless product specifies otherwise.Mobile — attik-mobile
RequiredInfoGrid so flagged fields become editable when the authenticated user is an inspector (or the same role product uses on web), calling the same inspection PATCH contract the web uses.RequiredInfoAccordion field types (text, number, select, date, boolean, indicator).attik-backend/src/models/requiredInfoSchema.tsattik-backend/src/models/requiredInfoValueSchema.tsattik-backend/src/routes/requiredInfo.tsattik-backend/src/routes/inspection.ts (PATCH, requiredInfoValues)attik-backend/src/util/functions/activity/requiredInfoHandlers.tsattik-frontend/src/util/types/serverTypeCollection/requiredInfo.tsattik-frontend/src/app/tools/inspections/[id]/components/RequiredInfoSection.tsxattik-frontend/src/components/scheduling/RequiredInfoAccordion.tsxattik-mobile/components/inspection/RequiredInfoGrid.tsxattik-mobile/app/(app)/inspection/[id].tsxPlease authenticate to join the conversation.
Planned
Main App
2 months ago
Linear
Get notified by email when there are changes.
Planned
Main App
2 months ago
Linear
Get notified by email when there are changes.