Skip to content

Fixs generals access login#19

Merged
jwchavarrro merged 5 commits into
devfrom
fixs-generals-access-login
Dec 28, 2025
Merged

Fixs generals access login#19
jwchavarrro merged 5 commits into
devfrom
fixs-generals-access-login

Conversation

@jwchavarrro

Copy link
Copy Markdown
Owner

No description provided.

jwchavarrro 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.
@jwchavarrro
jwchavarrro merged commit 876e599 into dev Dec 28, 2025
3 checks passed
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.

1 participant