Skip to content

Frontend Inventory and Forms

Ankit Upadhyay edited this page Jul 24, 2026 · 2 revisions

Frontend: Inventory and Forms

The dispensary/inventory UI and the form-builder + e-signature surfaces. Backend counterpart: Backend: Tasks, Observations, Inventory and Backend: Forms, E-Sign, Documents. Part of Frontend Overview.

Inventory / dispensary

features/inventory/:

  • Page pages/Inventory/index.tsx (+ types.ts, utils.ts, InventoryFilterModal.tsx, and the responsive InventoryPhoneCatalog.tsx from PR #1912); components components/AddInventory/ (FormSection, InventoryConfig, ImageUploadField), InventoryInfo.tsx, InfoSection.tsx, DispensaryDetailModal.tsx, TurnoverAnalytics/.
  • Services inventoryService.ts, dispensaryService.ts, inventoryUploadService.ts; store stores/inventoryStore.ts; hook hooks/useInventory.ts.
  • UI: ui/cards/InventoryCard, ui/cards/InventoryTurnoverCard, ui/filters/InventoryFilters, ui/filters/InventoryTurnoverFilters, ui/tables/DispensaryTable (alignment reworked in the QA batch PR #1990). Catalog store stores/revampCatalogStore.ts. Route (app)/inventory/page.tsx.

Forms, templates, e-sign builder

features/forms/ is a full form builder:

  • Builder at pages/Forms/Sections/AddForm/ with Build.tsx / Details.tsx / Review.tsx and per-field-type Builder+Renderer pairs (Input, Text, Date, Dropdown, Boolean, RichText, Signature), plus FormRenderer.tsx, BuildWrapper.tsx, reviewUtils.ts, validationUtils.ts. Sections/ also holds FormInfo.tsx and taskTemplateSummary.tsx.
  • Services: formService.ts, templateFormsService.ts, templateResolverService.ts, fhirTemplateService.ts, formAssignmentService.ts, appointmentFormsService.ts, formSigningService.ts.
  • Store stores/formsStore.ts, hook hooks/useForms.ts, lib/formAssignmentBadge.ts, ui/cards/FormCard, ui/filters/FormsFilters. Route (app)/forms/page.tsx.

Document e-signing (Documenso)

features/docSigning/ (components/DocSigningPortal.tsx, pages/DocSigning/) and features/documents/ (services/documensoService.ts, documentService.ts, CompanionDocumentUploadForm.tsx). Store stores/documentStore.ts + signingOverlayStore.ts; the Signature field and ui/primitives/RichTextEditor (TipTap) power signing/rich content. Backend: Forms, E-Sign, Documents.

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