Skip to content

(feat) - O3-5484: add daily/weekly/monthly calendar view switcher#2311

Open
sohamdhande wants to merge 2 commits intoopenmrs:mainfrom
sohamdhande:feat/calendar-view-switcher
Open

(feat) - O3-5484: add daily/weekly/monthly calendar view switcher#2311
sohamdhande wants to merge 2 commits intoopenmrs:mainfrom
sohamdhande:feat/calendar-view-switcher

Conversation

@sohamdhande
Copy link

@sohamdhande sohamdhande commented Mar 12, 2026

Requirements

  • This PR has a title that briefly describes the work done
    including the ticket number and uses a conventional commit label.
  • My work is based on designs, which are linked or shown either
    in the Jira ticket or the description below.
  • My work includes tests or is validated by existing tests.

Summary

The appointments calendar only rendered the MonthlyCalendarView
even though the useAppointmentsCalendar hook already supports
daily, weekly, and monthly periods.

This PR adds a ContentSwitcher UI component allowing users to
toggle between Daily, Weekly, and Monthly views. The monthly view
renders the existing calendar. Daily and weekly views show
placeholders with TODO comments marking them as future work.

Screenshots

Screenshot 2026-03-12 at 10 12 53 AM Screenshot 2026-03-12 at 10 13 05 AM Screenshot 2026-03-12 at 10 13 18 AM

Related Issue

https://issues.openmrs.org/browse/O3-5484

Other

  • Zero breaking changes — monthly remains the default view
  • npx tsc --noEmit passes with 0 errors
  • Existing test suite passes

@sohamdhande sohamdhande changed the title O3-5484: feat(esm-appointments-app): add daily/weekly/monthly calendar view switcher (feat) - O3-5484: add daily/weekly/monthly calendar view switcher Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants