file-type required report slots from the mobile app (e.g. PDF pick/upload), instead of relying on web-only uploads.ReportsSection, empty slots only allow adding when requiredReport.reportType is spectora or link (canAdd); file slots show the label but cannot start an add flow.handleAddUrl branches support Spectora URL validation and generic link creation; there is no file branch wired to an upload or document pick.useReportUpload.ts (FilePond, presigned-style server actions, size/type constants such as MAX_FILE_SIZE / ACCEPTED_FILE_TYPES) from attik-frontend/src/app/tools/inspections/[id]/components/reports/ — mobile work should mirror the same backend contracts (multipart vs presigned finalize, inspection/report fields, _requiredReportTypeId / index behavior) rather than inventing a parallel API.Attik Mobile
components/inspection/ReportsSection.tsx — extend canAdd / empty-slot actions for reportType === "file", wire mutations after a document pick, and keep slot keys (createSlotKey) and getUploadedReports behavior consistent.hooks/useReportMutations.ts (e.g. useCreateLinkReport, useCreateSpectoraReport) — evaluate whether a new mutation or API helper is needed for file-backed reports vs reusing an existing endpoint.components/inspection/AttachmentsSection.tsx uses expo-document-picker (DocumentPicker.getDocumentAsync); reuse patterns or shared utilities where appropriate.hooks/useInspectionReports.ts and any report list invalidation after upload.Attik Frontend (reference only)
src/app/tools/inspections/[id]/components/reports/useReportUpload.ts — server action URLs, metadata passed with uploads, and validation limits for parity.ReportCard.tsx / Reports.tsx — how file slots render after upload.Attik Backend
attik-mobile/components/inspection/ReportsSection.tsx, attik-mobile/components/inspection/AttachmentsSection.tsx, attik-mobile/hooks/useReportMutations.ts, attik-mobile/hooks/useInspectionReports.tsattik-frontend/src/app/tools/inspections/[id]/components/reports/useReportUpload.tsPlease authenticate to join the conversation.
Completed
Main App
About 2 months ago
Linear
Get notified by email when there are changes.
Completed
Main App
About 2 months ago
Linear
Get notified by email when there are changes.