Reports - Dental Days

Dental Days Calendar

Path/dental-days-calendar
Statustodo
Drill-down pages—
Pop-ups(+3 inline)
Tabs—
API routes/api/data/dental-days/calendar:x
/api/data/offices
/api/data/vans:x

Business rules

Written when this page is worked on (docs/BUSINESS-RULES.md).

Database tables & columns

TableColumns used
bookingsapp, calendar_id, date
calendarscalendar_name, city, dentrix_office_id, hubspot_id, short_code, state, status, street_address, zip_code
companieshubspot_id, name, slug
dentrix_officesapp, dentrix_id, display_name, name
equipment_repairs(columns not named in the SQL)
schedulescalendar_id, capacity, date, end_hour, start_hour, van_name
vansactive, color, created_at, id, name, notes, sort_order

File structure

Its own files

  • apps/
    • web/
      • src/
        • pages/
          • DentalDaysCalendar.tsx

Shared code it uses (followed through its imports and the helpers its API calls; sign-in/access plumbing and UI primitives left out)

  • apps/
    • web/
      • src/
        • components/
          • reports/
            • DentrixSourceNote.tsx
            • HowItWorksNote.tsx
            • ReportHeader.tsx
          • LastSynced.tsx
        • hooks/
          • useApi.ts
        • lib/
          • office.ts
          • time.ts
          • van-colors.ts
    • worker/
      • src/
        • routes/
          • data.ts
        • utils/
          • office.ts