Fix calendar dropdown search paging and persist last used calendar#2262
Open
AbhishekPAnil wants to merge 5 commits into
Open
Fix calendar dropdown search paging and persist last used calendar#2262AbhishekPAnil wants to merge 5 commits into
AbhishekPAnil wants to merge 5 commits into
Conversation
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…e on dashboard bootstrap
fix(calendar-dropdown): reset search paging to page 1 and stop auto-f…
suhail-aliyar
approved these changes
Jul 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces persistent storage for each user's most recently used calendar, improving how the app remembers and restores the user's context across sessions and devices. It adds a new utility for managing per-user recent calendar IDs in
localStorage, updates the Dashboard and Calendar components to use this mechanism, and cleans up legacy logic around session storage and navigation.The most important changes are:
Persistent Recent Calendar Storage:
src/utils/recentCalendarStorage.jswith functions to get, set, and clear a user's most recently used calendar usinglocalStorage, keyed by user ID. This is now the source of truth for restoring calendar context.Dashboard Initialization and Navigation:
src/pages/Dashboard/Dashboard.jsxto:persistActiveCalendarcallback. [1] [2] [3] [4] [5]Calendar Dropdown Behavior:
src/components/Dropdown/Calendar/Calendar.jsxto:Login Flow Simplification:
src/pages/Login/Login.jsxby removing checks forcalendarIdin session storage, since calendar selection is now managed in the Dashboard using the new persistent mechanism.General Refactoring:
These changes ensure that each user is returned to their most recently used calendar, even across devices, and streamline calendar selection and navigation throughout the app.