https://app.spectora.com/inspection/${inspection.slug}/edit (e.g. in WorkorderActionsDropdown). The mobile app needs an equivalent that opens the Spectora mobile app to the same inspection when possible.attik-mobile/attik-mobile). The job details screen is app/inspection/[id].tsx (InspectionDetailsScreen). Inspection data is loaded via hooks/useInspectionDetails.ts, which fetches inspection/${inspectionId} with populate for charges, services, people, reports, events; the response type InspectionPopulatedWithServices in types/index.ts already includes slug (line 90). A "Start Inspection" button already exists in the footer of this screen (BlurView footer with startButton / startButtonText styles, lines 465–472) but the TouchableOpacity has no onPress handler—it is visible but does nothing. In scope: wire that button so that when tapped it opens this job in Spectora using inspection.slug, e.g. https://app.spectora.com/inspection/${inspection.slug}/edit via Linking.openURL (or a Spectora mobile deep link / universal link if available and preferred). If slug is missing for some inspections, disable or hide the button and optionally surface a short message. How to open Spectora on mobile (universal link vs custom scheme vs fallback to browser) is a decision for the developer using Spectora’s behavior and docs (e.g. Quick Start Guide: Mobile App). No other UI change is required; the Start button placement and styling are already in place.attik-backend/src/models/inspectionSchema.ts); it is synced from Spectora (e.g. src/routes/webhooks/spectora/syncInspection.ts) and returned by inspection APIs. The mobile app’s useInspectionDetails calls inspection/${id}; that endpoint should already return the inspection document including slug. No change is required for when or how slug is stored; only confirm that the response shape used by the mobile job-details screen exposes slug.https://app.spectora.com/inspection/${inspection.slug}/edit in attik-frontend/src/app/tools/inspections/[id]/components/WorkorderActionsDropdown.tsx ("Open Spectora Job"). The mobile app may use the same URL as a universal link (if Spectora opens it in-app on mobile) or a different scheme; the developer should verify against Spectora’s behavior. No web UI change is required for this task.attik-frontend/src/app/tools/inspections/[id]/components/WorkorderActionsDropdown.tsx (handleOpenSpectoraJob, https://app.spectora.com/inspection/${inspection.slug}/edit)attik-backend/src/models/inspectionSchema.ts; sync from Spectora in src/routes/webhooks/spectora/syncInspection.tsattik-mobile/app/inspection/[id].tsx (InspectionDetailsScreen, footer Start button); data: attik-mobile/hooks/useInspectionDetails.ts; type with slug: attik-mobile/types/index.ts (InspectionPopulatedWithServices.slug)Please authenticate to join the conversation.
Canceled
Main App
4 months ago
Linear
Get notified by email when there are changes.
Canceled
Main App
4 months ago
Linear
Get notified by email when there are changes.