Skip to content

Mobile Companion CoParent Documents

Ankit Upadhyay edited this page Jul 9, 2026 · 1 revision

Mobile: Companion, Co-Parent, Documents

Pet profiles, shared ownership, and document management on mobile. Part of Mobile Overview.

Companion (pet profiles)

src/features/companion/:

  • companionSlice.ts (companion), thunks.ts (fetchCompanions), selectors.ts (selectSelectedCompanionId).
  • Services companionService.ts + codeEntriesService.ts; breed data JSON (catBreeds, dogBreeds, horseBreeds); components/CompanionProfileHeader.tsx.
  • Screens: AddCompanionScreen, CompanionOverviewScreen, ProfileOverviewScreen.

Co-Parent (shared ownership)

src/features/coParent/:

  • coParentSlice.ts (coParent), thunks.ts (acceptCoParentInvite, declineCoParentInvite, fetchParentAccess, fetchPendingInvites), services/coParentService.ts, hooks/useCoParentInviteFlow.ts, types (CoParentPermissions, ParentCompanionAccess).
  • Components: AddCoParentBottomSheet, CoParentCard, CoParentInviteBottomSheet, DeleteCoParentBottomSheet. Screens: CoParentsScreen, AddCoParentScreen, EditCoParentScreen, CoParentProfileScreen.
  • Invite handling is wired at the root (AppNavigator) so an incoming co-parent invite is caught on launch. Backend: Organizations and Companions (coparentInvite).

Documents

src/features/documents/:

  • documentSlice.ts (documents, default export), constants.ts, subcategoryIds.ts, types.ts (Document).
  • Hooks: useDocumentCompanionSync, useDocumentFormValidation, useDocumentNavigation.
  • Components: DocumentForm/, DocumentListItem, DocumentAttachmentsSection, DocumentAttachmentViewer, DocumentAttachmentThumbnail, DocumentCompanionSelector, documentAttachmentUtils.ts.
  • Screens: DocumentsScreen, AddDocumentScreen, EditDocumentScreen, CategoryDetailScreen, DocumentPreviewScreen, DocumentSearchScreen, EmptyDocumentsScreen. Stack: DocumentStackNavigator.tsx.

Related

Product & Domain
Architecture
Applications
Design & Accessibility
Engineering Handbook
Decisions (ADRs)
Design Docs & Plans
Roadmap
Operations
Meta

Canonical code & docs: main repo · Auto-generated companion: DeepWiki

Clone this wiki locally