Skip to content

updates#13

Open
Wishvadinimayadunna wants to merge 594 commits intofeat/Loginfrom
main
Open

updates#13
Wishvadinimayadunna wants to merge 594 commits intofeat/Loginfrom
main

Conversation

@Wishvadinimayadunna
Copy link
Copy Markdown
Collaborator

No description provided.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 22, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
database-middleware-system ❌ Failed (Inspect) Jul 23, 2025 6:33pm

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 22, 2025

Deploy Preview for gilded-centaur-2a0246 failed. Why did it fail? →

Name Link
🔨 Latest commit b820ad9
🔍 Latest deploy log https://app.netlify.com/sites/gilded-centaur-2a0246/deploys/6807e8fff964890008bb1e9c

Suweka and others added 28 commits April 25, 2025 19:09
- Created a responsive top navigation bar (Navbar) with logo and dashboard link
- Added user avatar with dynamic fallback (first letter of name/email)
- Integrated user dropdown menu with Settings and Logout options
- Highlighted the current active page using Next.js usePathname
- Applied Tailwind CSS styling for clean design and mobile responsiveness
- Used lucide-react icons for dashboard, settings, and logout actions
- Connected Navbar with auth context to show logged-in user's info
- Implemented UsersList component to display all users in a table format
- Integrated fetch, edit, and delete functionality for admin users
- Prevented users from deleting their own account
- Added loading state and error handling with toast notifications
- Connected the component to the auth context for current user identification
- Used EditUser component to handle user update operations
- Enhanced user experience with Tailwind CSS responsive styling
- Implemented EditUser form with fields for name, role, and optional password update
- Integrated client-side validation and dynamic show/hide password toggle
- Added loading state and success/error feedback with toast notifications
- Allowed admin users to update existing users' information via API
- Included cancel and submit buttons with responsive design using Tailwind CSS
- Improved user management workflow in the admin panel
- Created AddUser component for admins to create new users
- Supports entering email, role selection, and password generation
- Temporary password can be manually set or auto-generated
- Integrated show/hide password toggle feature
- Added success and error toast notifications for user feedback
- Cleared input fields after successful user creation
- Improved UX with cancel and submit actions
…sidebar component for dynamic user-based navigation

- Integrated auth context into sidebar to dynamically render user-specific navigation
- Added admin-only navigation items based on user role
- Updated imports to streamline component structure
- Removed hardcoded user profile from sidebar
- Improved navigation flexibility and maintainability
- Changed line endings from LF to CRLF for Windows compatibility
Improved login form styling with Tailwind classes (border, rounded, shadow, hover effects).

Updated login success and error handling logic.

Added user registration link (Sign up link) below login form.

Changed toast success/error flow to be cleaner after login.

Minor fixes to button colors, hover effects, and disabled states during login loading.

Improved form responsiveness and accessibility.
…d implement dynamic loading for PdfDropZone and improve employee matching logic
…nt AccountSettings component for managing user profile, including avatar upload, password change, and account deletion.
- Added logic to navigate to the previous page if the current page becomes empty after deleting an error log.
- Improved user experience by ensuring the page state updates before fetching new error logs.
- Removed unused button for viewing full details to streamline the UI.
- Updated the job role display to include a styled badge for better visual emphasis.
- Improved the overall UI by adding padding and rounded corners to the job role element.
- Added pagination functionality to the ClientsPage, allowing users to navigate through client listings more efficiently.
- Increased the number of clients displayed per page from 9 to 12.
- Introduced pagination controls with previous, next, and ellipsis indicators for better navigation experience.
- Updated the display to show the range of clients currently being viewed.
- Added state management for company options and selected company to filter error logs.
- Implemented a useEffect hook to fetch client names for the filter dropdown.
- Updated filtering logic to include company name as a filter criterion.
- Enhanced sorting functionality to sort error logs by company name and error code.
- Modified FilterDropdown and SortDropdown components to accept dynamic options and labels.
- Introduced a new API route for handling attachment uploads associated with error logs.
- Enhanced ErrorLogPage to allow users to upload attachments, displaying them in a new column.
- Implemented error handling and user feedback for the upload process.
- Added a hidden file input to trigger file selection for uploads.
- Implemented a new DELETE API route for removing attachments associated with error logs.
- Enhanced ErrorLogPage to allow users to delete attachments with appropriate error handling and user feedback.
- Updated the UI to include a delete button for each attachment, improving user interaction and management of attachments.
- Improved the PDF generation logic by introducing a helper function for rendering sections, allowing for better handling of page overflow.
- Enhanced layout and formatting of the error log report, including dynamic margins and line heights for improved readability.
- Streamlined the rendering process by removing unnecessary calculations and ensuring sections are properly displayed within the PDF.
- Updated the DELETE API route to remove associated attachments when an error log is deleted, improving data integrity.
- Modified the response message to confirm both the error log and its attachments have been deleted.
- Improved error handling in ErrorLogPage to provide more informative feedback to users upon deletion failures.
- Updated the matching logic in the POST API to include case-insensitive checks for certification names.
- Modified the employee retrieval process to include job role information, improving the response structure.
- Adjusted the FilterDropdown component to ensure unique keys for each role option, enhancing rendering performance.
- Added @hookform/resolvers and react-hook-form to package.json for improved form management.
- Updated pnpm-lock.yaml to reflect the new dependencies and their versions.
- Removed outdated dependencies from package.json.
- Updated avatar URL generation in AccountSettings and NavUser components to include cache-busting parameters based on user data.
- Enhanced toast dismissal logic to ensure proper handling during account deletion.
- Simplified user data fetching after login in authContext for better data consistency.
- Integrated AnimatePresence and motion components from framer-motion for improved animations during component transitions.
- Updated file upload progress and status handling to reflect the current processing state more accurately.
- Refactored the display logic for certification requirements and matched employees to include animations, enhancing user experience.
- Included next-auth and react-hook-form in package.json to enhance form management and authentication capabilities.
- Updated package versions to ensure compatibility and access to the latest features.
- Added last login timestamp retrieval in the authentication API to provide users with their last successful login time.
- Updated user data structure in the context and settings to include last login information for improved session tracking.
- Refactored DELETE API to ensure proper deletion of related database instances and metrics when a client is removed, enhancing data integrity.
- Renamed and updated Prisma models for consistency, including changing 'users' to 'User' and 'DatabaseInstance' to 'Database'.
- Introduced new models: 'AuthLog', 'PasswordResetToken', 'RefreshToken', 'UserAWRSettings', and 'UserAWRReportJob'.
- Updated field names in models to follow camelCase convention, enhancing code readability.
- Removed outdated migration files and added new migrations to reflect the updated schema.
- Adjusted package.json to remove unused scripts related to Prisma seeding.
- Simplified the structure of the AuditLogs component by removing the SidebarProvider and AppSidebar, streamlining the layout.
- Maintained the functionality of filters, error messages, and loading states while enhancing readability.
- Ensured that pagination is correctly integrated within the main content area.
- Eliminated the SidebarProvider and AppSidebar from the DashboardPage, simplifying the component structure.
- Directly rendered the DashboardContent component with necessary props, enhancing readability and maintainability.
- Added AppSidebar and SidebarProvider to enhance the layout of the UsersPage.
- Wrapped existing content in SidebarInset to maintain structure and improve user experience.
- Ensured that modals and user interaction elements remain functional within the new sidebar context.
- Integrated search functionality and status filtering for user management.
- Updated user data structure to include 'id' and 'status' fields for better tracking.
- Refactored DeleteConfirmationDialog to use Dialog components for a more consistent UI.
- Enhanced layout with new UI elements including badges for user roles and statuses.
- Improved user interaction with modals for creating and editing users, ensuring a smoother experience.
- Introduced a breadcrumb mapping for improved navigation within the DataVisualizationPage.
- Added a header section featuring a BarChart2 icon and a descriptive title for better user engagement.
- Updated the CustomBreadcrumb component to utilize the new name mappings for clarity.
- Enhanced the overall layout with additional descriptive text to guide users in visualizing their data.
- Introduced new UI components such as Badge, Button, Card, Input, and Select for a more modern layout.
- Updated event handling to support additional event types: CLIENT_CREATED, CLIENT_UPDATED, CLIENT_DELETED, DATABASE_CREATED, DATABASE_UPDATED, DATABASE_DELETED, MIDDLEWARE_CREATED, MIDDLEWARE_UPDATED, and MIDDLEWARE_DELETED.
- Refactored filter selection to use a dropdown for better user experience.
- Enhanced loading and no logs states with improved visual feedback.
- Streamlined pagination within a card layout for better organization.
- Modified the query parameter logic to prevent 'all' from being appended as an event type filter.
- Updated the SelectItem for event types to set 'all' as a valid value, improving filter functionality.
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.

6 participants