Free reinspection form link cannot be added to order

Objective

  • Make external URLs easy for inspectors to open from the job in Attik Mobile.
  • Clarify and fix where links fail today (notes vs files vs reports) so ops are not stuck pasting URLs that field staff cannot use.

Background

  • Product feedback: a free reinspection form includes links to photos, but the form URL does not work when added to notes and cannot be added to files. The form needs to be reachable on the order for the inspector.
  • Slack thread
  • Screenshot (reporter context):

IMG_6521.png

  • Notes — web vs mobile: On web, activity feed notes and @payments notes use parseContentWithMentions with parseUrls: true and parseUrlsAndCreateHTMLandAnchors.tsxhttp:// / https:// URLs become clickable. On Attik mobile, lib/parseContentWithMentions.tsx only styles @mentions; URLs in notes render as plain text in NoteCard.tsx (not tappable). Inspectors in the field likely hit this gap.
  • Files / attachments — by design: Workorder attachments (InspectionAttachmentsBox.tsx on web, AttachmentsSection.tsx on mobile, attik-backend/src/routes/inspectionAttachments.ts) accept file uploads only (S3, 25 MB max). There is no “paste a URL” attachment type — expecting a link in Files is a workflow mismatch, not a missing upload button.
  • Supported path today: Link reports store an external URL on the job — web AddReportModal.tsx (one-off link report); mobile ReportsSection.tsx opens via Linking.openURL. That is the intended way to attach a form or photo-folder URL to an order for inspectors (mark Complete if it should appear in client-facing lists).
  • URL format caveat: Web linkification requires a scheme (https://); bare www. URLs may not become links.

Scope

Frontend (web)

  • Activity feed notes: attik-frontend/src/components/activityFeed/NotesBlock.tsx (parseUrls: true).
  • URL parsing: attik-frontend/src/util/functions/data/parseUrlsAndCreateHTMLandAnchors.tsx, parseContentWithMentions.tsx.
  • Workorder files: attik-frontend/src/app/tools/inspections/[id]/components/InspectionAttachmentsBox.tsx (upload only).
  • Link on order: attik-frontend/src/app/tools/inspections/[id]/components/reports/AddReportModal.tsx, Reports.tsx (one-off reports).

Mobile

  • Notes: attik-mobile/lib/parseContentWithMentions.tsx, components/inspection/NoteCard.tsx, NotesSection.tsxno URL linkification today (primary defect candidate for “link in notes doesn’t work”).
  • Attachments: attik-mobile/components/inspection/AttachmentsSection.tsx (file upload / open uploaded file URL only).
  • Link reports: attik-mobile/components/inspection/ReportsSection.tsx (link report create + Linking.openURL).

Backend

  • Attachment API: attik-backend/src/routes/inspectionAttachments.ts — multipart file upload and presigned finalize; no URL-attachment model.
  • Reports API: attik-backend/src/routes/reports.tsreportType: 'link' with link field.

Out of scope unless product expands

  • Hosting the reinspection form or photo gallery inside Attik.
  • Bulk photo upload as a native album (separate from link report workaround).

Decision needed

  • Fix scope: mobile note URL tap-to-open only vs parity with web (mentions + URLs) vs also improving discoverability of Link report in ops docs/UI.
  • Whether to support URL-type workorder attachments in addition to files.
  • Whether web-only reports of “link not working” indicate malformed URLs or broken external form permissions (outside Attik).

References

  • Slack — original report
  • Mobile notes: attik-mobile/lib/parseContentWithMentions.tsx
  • Web URL notes: attik-frontend/src/util/functions/data/parseUrlsAndCreateHTMLandAnchors.tsx
  • Link reports: attik-frontend/src/app/tools/inspections/[id]/components/reports/AddReportModal.tsx, attik-mobile/components/inspection/ReportsSection.tsx

Please authenticate to join the conversation.

Upvoters
Status

Planned

Board
🏠

Main App

Date

23 days ago

Author

Linear

Subscribe to post

Get notified by email when there are changes.