Fixs generals access login#19
Merged
Merged
Conversation
added 5 commits
December 28, 2025 02:53
- Updated Home component to include a file description. - Refactored DashboardLayout to utilize user session data for dynamic user information display. - Modified DashboardPage to greet users by their first name, improving personalization of the welcome message.
- Introduced a new utility function `getFirstWord` to extract the first word from a string, improving text handling. - Updated `layout.tsx` with a file description for better documentation and clarity. - Added an index file for utilities to streamline exports and improve module organization.
…d user greeting - Renamed `getFirstWord` to `getFirstsWords` to support multiple words extraction from a string. - Updated `DashboardPage` to use the new utility function for personalized user greetings. - Enhanced `NavUser` component to display the first two words of the user's name, improving user interface consistency.
…lity - Updated `useSession` hook to include `useRouter` from Next.js for navigation. - Refactored logout function to redirect users to the login page upon logout, improving user experience.
…dling and state updates - Introduced initial session retrieval and state management using useState and useEffect. - Added error handling for session updates and logout functionality. - Implemented event listeners for localStorage changes to keep session state in sync across tabs. - Refactored session return structure to ensure consistent session information is provided.
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.
No description provided.