Avari Staffing Reports · Schedule

Dashboard

Path/avari/dashboard
Statustodo
Drill-down pages/staffing-schedule
Pop-ups(+5 inline)
Tabs10
API routes/api/avari/audit
/api/avari/candidates
/api/avari/candidates/:x
/api/avari/month
/api/avari/payroll
/api/avari/payroll/check
/api/avari/payroll/finalize
/api/avari/staff/:x
/api/avari/time-off/:x/logged
/api/staff-portal/admin/time-off-requests/:x

Business rules

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

Database tables & columns

TableColumns used
audit_logsaction, created_at, entity_id, entity_type, new_data, new_data_encrypted, user_name
avari_candidatescreated_at, created_by, docs, email, first_name, id, interview_date, interview_notes, interviewer, last_name, phone, position, preferred_office, recommendation, scorecard, stage, tryout_date, tryout_feedback, tryout_manager, tryout_office, updated_at, updated_by
avari_payroll_checkschecked_at, checked_by, note, staff_id, status, work_date
avari_payroll_periodsfinalized_at, finalized_by, period
calendarscalendar_name, city, dental_day_location, dentrix_office_id, dentrix_office_name, hubspot_id, short_code, state, status, street_address, zip_code
companieshubspot_id, name
dd_staff_assignmentscalendar_id, position, published_at, schedule_date, staff_id
dentrix_officesapp, dentrix_id, id, name
dh_usersemail, id, name, staff_id
email_recipient_notify_typesnotify_type, recipient_id
email_recipientsactive, created_at, email, email_type, id, name
email_sendsapp, error, lang, provider, recipients, ref, sent_by, status, subject, subject_encrypted, template_key, to_email, to_email_encrypted, to_email_hash
email_templatesactive, bcc_emails, body_en, body_es, from_email, key, reply_to, subject_en, subject_es, to_emails
schedulescalendar_id, date, end_hour, start_hour
staffcell_phone, employment_type, first_name, id, last_name, mobile_phone, onboarding_completed_at, personal_email, position, status, work_email
staff_benefitsemployment_type, flag_override, min_days, notes, staff_id, updated_at, updated_by
staff_performance_scoresclinical, notes, patient_experience, patient_flow, period, production, reliability, score, scored_at, scored_by, staff_id, teamwork
staff_time_offend_date, reason, request_id, staff_id, start_date
staff_time_off_requestscreated_at, decided_at, decided_by, end_date, id, reason, requester_email, requester_name, requester_phone, staff_id, start_date, status
time_off_approval_tokensapprover_email, approver_name, expires_at, request_id, token_hash, used_at

File structure

Its own files

  • apps/
    • web/
      • src/
        • pages/
          • AvariStaffing.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/
          • avari/
            • Audit.tsx
            • Availability.tsx
            • Coverage.tsx
            • Dashboard.tsx
            • Offices.tsx
            • Payroll.tsx
            • Performance.tsx
            • Providers.tsx
            • ProviderSchedule.tsx
            • Recruitment.tsx
            • Reports.tsx
            • Schedule.tsx
            • shared.tsx
          • forms/
            • DatePicker.tsx
          • reports/
            • DentrixSourceNote.tsx
            • HowItWorksNote.tsx
            • ReportHeader.tsx
          • TablePagination.tsx
        • lib/
          • avari.ts
        • services/
          • api.ts
    • worker/
      • src/
        • db/
          • audit.ts
          • index.ts
        • features/
          • staff-portal/
            • decide.ts
            • queries.ts
            • routes.ts
            • service.ts
        • lib/
          • list-query.ts
        • routes/
          • avari.ts
        • services/
          • email-templates.ts
          • notify-recipients.ts
          • phi-read.ts
          • staff-onboarding.ts
        • utils/
          • crypto.ts
          • email.ts
          • phi-access.ts
          • phi-crypto.ts