Dev#21
Merged
Merged
Conversation
- Updated import statements to use double quotes for uniformity across multiple files. - Enhanced the AppSidebar component by adding a placeholder to the SidebarHeader. - Cleaned up class names and structure in various UI components, including Button, Input, Separator, and Sheet, for improved clarity and maintainability. - Adjusted the Sidebar component to streamline its structure and ensure consistent styling practices.
- Introduced tw-animate-css package to enhance animation capabilities across the application. - Updated globals.css to include tw-animate-css for global animation styles. - Refactored various UI components, including Button, Card, and Input, to improve structure and maintainability. - Adjusted component imports to use consistent double quotes for better readability. - Removed unused Spinner component to streamline the codebase.
- Removed tw-animate-css import from globals.css to streamline styles. - Updated color variables in globals.css for improved design consistency. - Enhanced AppSidebar component by integrating Header for better structure. - Added documentation comment to the sidebar index file for clarity. - Exported Header component from fragments index for better accessibility.
- Modified AppSidebar component to accept an items prop for dynamic rendering. - Removed unused sample data and unnecessary imports to clean up the code. - Updated Sidebar component to pass an empty items array to AppSidebar for initial rendering.
- Updated Sidebar component to accept an items prop for rendering navigation dynamically. - Integrated NAVIGATION_NAV_MAIN constant into DashboardLayout for improved sidebar navigation. - Refactored AppSidebar to utilize the items prop and removed placeholder data for cleaner implementation. - Added documentation for NAVIGATION_NAV_MAIN to clarify its purpose in the sidebar structure.
- Refactored AppSidebar component to directly use the items prop for rendering navigation items. - Added a new dashboard entry in NAVIGATION_NAV_MAIN, including a link to the transactions page. - Removed placeholder items to streamline the sidebar structure and improve clarity.
- Enhanced NavMain component to handle sub-items dynamically, improving the rendering of nested navigation. - Updated NAVIGATION_NAV_MAIN constants to reflect new titles and structure for sidebar items. - Introduced Link component for better navigation handling and streamlined the sidebar item rendering logic.
- Updated layout and page components for the dashboard to improve clarity and consistency in documentation. - Changed component names and descriptions to better reflect their purpose, including renaming NewTransactionPage to TransactionsPage and EditTransactionPage to CreateEditTransactionPage. - Enhanced the layout file with a clearer module description and removed outdated comments.
- Updated NavMain component to include new styling and improved link handling for sidebar items. - Modified NAVIGATION_NAV_MAIN constants to reflect updated titles and icons for better clarity. - Adjusted routes in ROUTES_PAGES for consistency and accuracy in navigation paths. - Refactored keywords structure to encapsulate titles for sidebar items, enhancing maintainability.
- Enhanced Sidebar component to accept user data for improved personalization. - Updated DashboardLayout to pass user information to Sidebar for better user experience. - Cleaned up various page components by removing unnecessary newlines for consistency. - Refactored Sidebar and AppSidebar components to streamline props and improve maintainability.
- Reformatted Sidebar component props for better clarity and structure. - Updated DashboardLayout to enhance the readability of user data passed to Sidebar. - Cleaned up NavUser component by adjusting formatting for AvatarFallback elements.
Structure dashboard 2
- Removed the Card component and its associated tests to streamline the molecules structure. - Updated index.ts to export all components from 'cards' for better organization.
- Added MasterPage component with a header and a grid layout for displaying cards. - Introduced CardA component for individual card representation, including click handling for navigation. - Updated index exports to include the new Header component and removed obsolete master page utilities.
- Integrated Header component into DashboardPage, ProductsPage, UsersPage, and TransactionsPage for consistent navigation. - Updated text content in header components to provide clearer context for users. - Removed obsolete pages for creating and editing products, users, and transactions to streamline the dashboard structure.
- Reformatted imports and removed unnecessary newlines in MasterPage, ProductsPage, and Card components for better code clarity. - Updated test cases for the Card component to enhance coverage and ensure proper rendering behavior. - Streamlined the Header component's props and improved test structure for better maintainability.
- Integrated Message component into ProductsPage to inform users that the feature is under development. - Updated the Header component title for better alignment with the current page context. - Exported the Message component in the index file for accessibility across the application.
- Updated test cases for the Message component to utilize React nodes for title and description props. - Mocked Title and Text components to streamline testing and ensure accurate rendering. - Enhanced test coverage for icon rendering and class application, ensuring proper behavior across various scenarios. - Improved overall structure and readability of test cases for better maintainability.
…rity - Updated login page to redirect to the dashboard if the user is authenticated. - Enhanced LoginForm component by consolidating imports and improving link functionality for password recovery and registration. - Refined authentication utility functions to remove temporary code and ensure proper token validation. - Added a ShieldUser icon to the login page for better visual representation.
…tency - Replaced AuthCheck with AuthTemplate in ForgotPasswordPage, LoginPage, and RegisterPage for a unified layout structure. - Simplified component imports and removed unnecessary elements for cleaner code. - Updated the auth-form-layout template to enhance visual representation with icons.
…stency - Simplified test cases by removing unnecessary line breaks and formatting for better clarity. - Ensured consistent usage of props in test cases for the Message component. - Enhanced overall structure of the test file for maintainability.
…ering - Updated Message component to use LucideIcon type for the icon prop, enhancing type safety. - Modified icon rendering to support additional props for better customization. - Adjusted tests to reflect changes in icon handling and ensure accurate rendering of icons.
…error handling - Exported FormFieldError from the auth module for better error management in forms. - Updated login-form.tsx to include validation using react-hook-form and zod. - Implemented error handling for email and password fields, displaying relevant messages. - Improved user experience by disabling the login button during submission and providing feedback on login status.
…ndling - Added `next-themes` and `sonner` packages for improved theming and toast notifications. - Updated `layout.tsx` to include a `Toaster` component for displaying notifications. - Refined `useLogin` hook to provide success and error feedback using toast notifications. - Cleaned up `login-form.tsx` by removing unnecessary error handling code for a more streamlined user experience.
…sistency - Replaced AuthTemplate with AuthLayout in ForgotPasswordPage, LoginPage, and RegisterPage for a unified layout structure. - Updated auth-form-layout to enhance the layout and visual representation of authentication forms. - Streamlined imports and improved code clarity across affected files.
…consistency - Updated ForgotPasswordForm and RegisterForm components to use AuthFormLayout for a unified structure. - Streamlined imports and removed unnecessary elements for cleaner code. - Enhanced documentation for better clarity and understanding of the components.
…ling - Updated API configuration to remove ReqRes references and focus on MockAPI. - Modified login and registration services to interact with MockAPI endpoints. - Enhanced user data handling by including user ID in session storage. - Improved error handling for user registration to prevent duplicate accounts.
- Integrated react-hook-form and zod for form management and validation in RegisterForm component. - Added fields for name, email, password, and confirm password with appropriate validation messages. - Enhanced user experience by disabling the submit button during registration and providing feedback on the registration status. - Introduced registerSchema for structured validation of registration data.
…g logic in auth service - Changed MOCKAPI_PROJECT_ID to MOCKAPI_URL for improved clarity in API configuration. - Updated endpoints in API_CONFIG to utilize the new MOCKAPI_URL. - Refactored login and registration methods in auth service to fetch all users and filter on the client side, enhancing performance and code readability. - Improved email comparison in user search to be case-insensitive.
- Updated LoginForm component to improve structure and readability, including consistent formatting and removal of unnecessary whitespace. - Integrated QueryClientProvider in tests for better handling of asynchronous data fetching. - Enhanced session management by updating saveSession function to store user email and name alongside the token and user ID. - Added utility functions to retrieve user email and name from localStorage for improved user data handling. - Cleaned up unused imports and streamlined error handling in form components.
…types.ts for cleaner code.
Feat access login
- 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.
Fixs generals access login
- Updated the Message component to include a gap between elements for better spacing. - Adjusted the icon size for improved visual consistency. - Enhanced the description text styling to ensure better readability on smaller screens.
…ality and associated components - Eliminated the FilterModalComponent and related filter logic from the GenericTable. - Updated PageHeaderComponent to remove filter-related props and UI elements. - Adjusted GenericTableProps to reflect the removal of column filter options. - Cleaned up unused imports and components to streamline the codebase.
…ure and clarity - Removed unused components and types related to the GenericTable, including actions-cell, pagination, and table-body. - Updated the GenericTable component to streamline imports and enhance readability. - Refactored the index files to ensure proper exports and organization. - Cleaned up whitespace and improved formatting across various components for consistency.
- Moved TableComponent import to a dedicated fragments directory for better organization. - Cleaned up whitespace and formatting across various components for improved readability. - Updated index files to streamline exports and removed unnecessary type utilities. - Enhanced the useGenericTable hook with clearer type definitions and improved comments.
- Implemented UsersPage component to display user data using GenericTable. - Defined column configurations for user attributes including ID, name, email, and creation date. - Integrated API call to fetch all users and display them in the table. - Added a new button for creating a new user, with a placeholder for future implementation. - Updated index exports for generic table components and added new button type definition. - Removed the obsolete PageHeader component to streamline the structure.
- Simplified column configuration by utilizing CONFIG_COLUMNS for better maintainability. - Updated new button functionality to dynamically display the 'New User' text based on keywords. - Removed obsolete column definitions and streamlined imports for improved code clarity. - Enhanced type definitions in GenericTableProps to make the title optional.
…ity and structure - Integrated ROUTES_PAGES for dynamic navigation in the UsersPage component. - Updated GenericTable to utilize TableSkeleton and TableError for better loading and error handling. - Streamlined imports in GenericTable and its related components for improved organization. - Refactored NewButton component to simplify rendering logic. - Enhanced TableHeaderComponent with SortIndicator for better sorting functionality.
…and functionality - Added Text component for consistent text styling in TableHeaderComponent. - Updated header rendering logic to handle potential undefined values safely. - Enhanced header cell styling with background color and improved layout for better user experience. - Modified TableComponent to include overflow handling for better responsiveness.
…g and layout - Integrated Text component for consistent text styling in PaginationComponent and TableBodyComponent. - Updated pagination buttons and layout for better responsiveness and user experience. - Enhanced no results message in TableBodyComponent for improved clarity.
- Updated MessageProps interface to improve type definitions. - Added DeleteAction to user table configuration for enhanced functionality. - Refactored EditAction to utilize ButtonAction for better consistency and clarity. - Streamlined exports in fragments index to include DeleteAction.
- Added Info icon and ButtonAction for improved user guidance in the search area. - Adjusted layout for better spacing and responsiveness in the header component. - Updated Input styling for a more consistent appearance.
…eamline codebase.
- Cleaned up whitespace and formatting in UsersPage and related components. - Streamlined imports in ButtonAction and other fragments for better organization. - Enhanced ButtonAction component structure for clearer prop handling. - Updated index exports to ensure consistency across generic table components.
Generic table
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.