My Portal

Staff Schedule

Path/staff-schedule
Statuslive
Drill-down pages/my-account
Pop-ups(+2 inline)
Tabsโ€”
API routes/api/staff-portal/schedule

Database tables & columns

TableColumns used
calendarscalendar_name, city, dental_day_location, dentrix_office_name, short_code, state, street_address, zip_code
dd_staff_assignmentscalendar_id, position, published_at, schedule_date, staff_id
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
staffcell_phone, employment_type, first_name, id, last_name, mobile_phone, onboarding_completed_at, personal_email, position, status, work_email
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

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

    • apps/
      • worker/
        • src/
          • db/
            • index.ts
          • features/
            • staff-portal/
              • decide.ts
              • queries.ts
              • routes.ts
              • service.ts
          • lib/
            • list-query.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