Commit Graph

201 Commits

Author SHA1 Message Date
AmirReza Jamali d9a945904a feat(phone-input): integrate phone number input component and validation
- Added `libphonenumber-js` dependency for improved phone number handling.
- Refactored `CreateAdmin` form to utilize a new `PhoneNumberInput` component with validation rules.
- Updated `useCreateAdminPresenter` to normalize phone number input before submission.
- Enhanced error messages for phone validation in `Texts` constant.
- Modified `User` schema to validate phone numbers using E.164 format.
2026-05-16 10:28:03 +03:30
AmirReza Jamali f79348312b feat(tender-details): improve scrolling behavior and header offset management
- Introduced a new constant for the tender section scroll offset to enhance scrolling behavior when navigating to sections.
- Updated the scroll-to-section logic to account for the sticky header and added a small gap for better visual alignment.
- Refactored the useTenderSectionScrollSpy hook to utilize the new scroll offset, ensuring consistent behavior across sections.
- Improved code organization by separating scroll offset calculations into a dedicated function.
2026-05-16 09:28:22 +03:30
AmirReza Jamali 7aa13bb904 feat(select): implement searchable select component with server search capabilities
- Enhanced the Select component to support a searchable dropdown, allowing users to filter options by label or value.
- Introduced a new useSelectServerSearch hook for server-side searching, enabling dynamic fetching of options based on user input.
- Updated TenderDetailsHeader and TenderListFilters to utilize the searchable feature, improving user experience in selecting languages and countries.
- Added utility functions for filtering select items and managing search states, ensuring efficient data handling and responsiveness.
2026-05-16 09:18:12 +03:30
AmirReza Jamali 25f8bde229 feat(dependencies): add Lottie animation libraries and refactor NotFoundPage
- Added `@lottiefiles/dotlottie-react` and `lottie-react` dependencies for enhanced animation capabilities.
- Refactored the NotFoundPage component to utilize a dedicated NotFoundContent component, improving code organization and readability.
- Updated package.json and pnpm-lock.yaml to reflect new dependencies and their versions.
2026-05-13 17:07:47 +03:30
AmirReza Jamali d1bc56dc60 feat(tender-list): add GSAP for animations and enhance table functionality
- Integrated GSAP for improved animations in the tender list components, enhancing user experience during data loading and transitions.
- Refactored TendersTable and TenderListFilters to utilize new animation features, providing smoother interactions.
- Updated TableBody and TableSkeleton components to support ref forwarding, improving flexibility in rendering and animations.
- Enhanced useTenderListPresenter to manage loading states and pagination more effectively, ensuring better data handling and user feedback.
2026-05-13 12:19:42 +03:30
AmirReza Jamali 37e2744420 feat(tender-details): add lots section and enhance tender details functionality
- Introduced a new "Lots" section in the tender details page to display lot-specific information, improving data organization and visibility.
- Updated the tender navigation to conditionally include the "Lots" section based on its availability.
- Enhanced the tender display utilities with functions to determine the visibility of various sections, including lots, description, and translation.
- Refactored components to utilize the new utilities for better conditional rendering and improved user experience.
- Improved type definitions for tender details to ensure better type safety and clarity.
2026-05-13 09:44:43 +03:30
AmirReza Jamali 2178f25af5 feat(tender-details): enhance document handling and navigation in tender details
- Added a new documents section to the tender details page, improving organization and visibility of related documents.
- Updated the tender navigation items to conditionally include the documents section based on the loading state and document availability.
- Refactored the TenderDetailsContent component to manage document loading states and conditionally render the documents section.
- Enhanced the getTenderNavItems utility to accept options for showing the documents section, improving flexibility in navigation rendering.
2026-05-13 08:55:40 +03:30
AmirReza Jamali d65f8cdf48 feat(Dockerfile): restructure multi-stage build for improved efficiency
- Introduced a multi-stage build process to optimize the Docker image size and build time.
- Added a dedicated stage for dependencies installation using pnpm, enhancing package management.
- Separated the build stage to compile the application, ensuring a cleaner final image.
- Updated the runner stage to copy only necessary files from the build stage, improving runtime performance.
2026-05-12 13:07:48 +03:30
AmirReza Jamali 9e2e7c1ceb feat(tender-procurement): enhance tender procurement section with additional details
- Added functionality to trim and filter related TED notice publication IDs for better display.
- Introduced new fields for notice type code and main classification in the tender details.
- Updated the procurement section to conditionally render additional information, improving user experience and data visibility.
2026-05-12 12:37:45 +03:30
AmirReza Jamali 2477215fce feat(tender-details): add documents section and enhance document handling
- Introduced a new documents section in the tender details page for better organization of related documents.
- Updated the API service to support downloading individual and bulk documents.
- Enhanced the TenderDetailsContent component to manage document data and loading states effectively.
- Refactored tender navigation items to include the new documents section.
- Improved type definitions for better clarity and type safety in document handling.
2026-05-11 17:41:38 +03:30
AmirReza Jamali 88bc939956 feat(contact-us & feedback tables): implement pagination and loading states
- Added pagination functionality to ContactUsTable and FeedbackTable components, enhancing user navigation through large datasets.
- Integrated loading states to provide visual feedback during data fetching.
- Updated data fetching hooks to accept parameters for improved query handling.
- Refactored table row rendering to include pagination metadata for accurate row numbering.
- Enhanced overall user experience by conditionally rendering pagination controls based on data availability.
2026-05-11 17:30:34 +03:30
AmirReza Jamali 71f961ee49 feat(date-picker): enhance DatePicker component with new features and styling updates
- Added a portal option for rendering the calendar in a portal, improving usability in modals and overflow containers.
- Introduced new utility functions for converting form values to picker values, enhancing date handling for single and multiple selections.
- Refactored DatePickerRHFInput to utilize memoization for performance optimization and improved value management.
- Updated CSS styles for the date picker to ensure better visibility and interaction in both light and dark modes.
2026-05-11 17:09:36 +03:30
AmirReza Jamali 5855ce33d4 feat(date-picker): add clearable option and enhance date handling
- Introduced a clearable option for the DatePicker component, allowing users to easily reset the selected date.
- Enhanced date handling logic to support conversion from Unix timestamps and improved value management for single and range selections.
- Updated TenderListFilters to utilize the clearable feature in multiple DatePicker instances for better user experience.
- Refactored useTenderListPresenter to manage date range filters more effectively, ensuring proper cleanup of cleared values.
2026-05-11 16:42:49 +03:30
AmirReza Jamali f397158a29 refactor(tender-details): enhance translation page tests and layout
- Updated Cypress tests for the tender translation page to improve visibility checks and streamline assertions.
- Refactored test structure to utilize a dedicated function for fetching the visible title heading.
- Adjusted test cases to ensure accurate language switching and URL handling for tender details.
- Improved layout consistency in the translation page by refining element visibility checks and ensuring proper section rendering.
2026-05-11 16:11:09 +03:30
AmirReza Jamali 283aa9385e refactor(tender-details): enhance tender section navigation and layout
- Introduced a scroll spy feature for tender sections to improve navigation experience.
- Added TenderSectionNavList component for better section navigation and user interaction.
- Updated MainLayout to adjust main content overflow behavior for improved layout consistency.
- Refactored TendersTable to remove unnecessary create button and streamline feedback navigation.
2026-05-10 10:13:57 +03:30
AmirReza Jamali f01632e38d refactor(tender-details): enhance translation and summary features
- Integrated language selection and translation functionality in TenderDetails, allowing users to choose display language and translate tender metadata.
- Added AI summary section to display overall summary of the tender.
- Updated API service to support translation requests and handle responses effectively.
- Improved pagination handling in AdminsTable for better user experience.
- Refactored various components to ensure consistent data flow and state management.
2026-05-10 08:44:03 +03:30
AmirReza Jamali f48cb7e249 chore: update app version and enhance UI components
- Bumped NEXT_PUBLIC_APP_VERSION to 2.0.3 for the latest release.
- Improved Cypress test for customer feedback page to handle delayed route transitions.
- Refactored CompanyDetailsPage to enhance layout and added new components for better structure.
- Updated TenderDetails to conditionally render location and currency information based on validity checks.
- Added data-cy attributes to various form elements and tables for improved testing capabilities.
2026-05-05 15:20:55 +03:30
AmirReza Jamali 4b425d6a46 Fixed sign in page test failing issue 2026-05-04 10:11:57 +03:30
a.jamali 05d40a242c Update .env.production 2026-05-03 19:02:44 +03:30
Karim Pirzargar 7b760eaa4b update path dockerfile 2026-05-03 17:05:09 +03:30
AmirReza Jamali c38c226dbd refactor(tender-details): integrate unixToDate for date formatting and enhance layout consistency
- Replaced msToDate with unixToDate for application, publication, submission, and tender deadlines to ensure accurate date representation.
- Improved ShowcaseSection layout by adjusting class names for better visual consistency across various sections.
- Enhanced error message formatting for improved readability.
2026-05-03 11:00:03 +03:30
AmirReza Jamali 04bdb7bf0d refactor(tender-details): update ShowcaseSection styling for improved layout consistency
- Replaced TIMELINE_SHOWCASE with SHOWCASE_CENTERED_BODY for better vertical alignment of content in ShowcaseSection components.
- Ensured consistent styling across various sections including Tender ID, Buyer organization, and timeline details.
2026-05-02 13:04:56 +03:30
AmirReza Jamali 88f9605748 feat(tenders-table): add submission and tender deadlines to tender list
- Enhanced TendersTable to display submission deadline, tender deadline, and created at date using unixToDate for better clarity.
- Updated useTenderListPresenter to include new columns for submission and tender deadlines.
- Modified TenderSchema to make created_at optional, aligning with data structure requirements.
2026-05-02 13:01:11 +03:30
AmirReza Jamali c82574af01 refactor(contacts-footer-hero-section): remove placeholder text from input fields for cleaner UI
- Removed placeholder text from various input fields in ContactsStep, FooterStep, HeroStep, and SectionStep components to streamline the user interface.
- Updated MarketingForm to enhance form field handling and validation logic.
- Improved default values in useMarketingForm for better initial state management.
2026-05-02 12:49:58 +03:30
AmirReza Jamali 37c4053a6c feat(tender-details): enhance tender details page with improved layout and error handling
- Added SectionHeading and ExternalLinkIcon components for better structure and visual appeal.
- Improved error handling UI when tender data fails to load, providing user-friendly messages and navigation options.
- Refactored ShowcaseSection to accept additional className and rootClassName props for more flexible styling.
- Updated TendersTable to streamline action buttons and improve layout consistency.
2026-05-02 10:05:48 +03:30
AmirReza Jamali 73d11ac72b feat(CreateAdmin): add password visibility toggle button for improved user experience 2026-05-02 09:27:50 +03:30
AmirReza Jamali 62a5873a3f refactor(CreateCustomer): replace password visibility toggle from span to button for improved accessibility 2026-04-28 15:19:20 +03:30
AmirReza Jamali 5bf3e53d95 refactor(ui): improve layout and accessibility in various components
- Updated the grid layout in the Home page for better responsiveness.
- Adjusted tabIndex handling in MultiSelect component to enhance accessibility.
- Added minimum width to the TopChannels table for consistent display.
- Refined notification recipient placeholder logic for cleaner code.
2026-04-28 15:16:33 +03:30
AmirReza Jamali 013788d566 feat(map): enhance map component with ref for container and cleanup logic 2026-04-28 14:01:07 +03:30
AmirReza Jamali bcea73051b chore(env): update application version to 2.0.1 and enhance output file tracing in Next.js configuration 2026-04-28 09:33:44 +03:30
Karim Pirzargar f4b81c7b3b Merge branch 'develop' of repo.ravanertebat.com:TM/tm_panel into develop 2026-04-27 12:29:33 +03:30
Karim Pirzargar f8a04a68b6 install xvfb * base imahe 2026-04-27 12:29:14 +03:30
AmirReza Jamali 487a9d56e1 feat(theme-toggle): implement triple tap gesture for theme switching and enhance sidebar visibility logic 2026-04-27 12:20:51 +03:30
Karim Pirzargar 2014403558 add xvfb-run 2026-04-27 12:09:21 +03:30
Karim Pirzargar 912406369c add base image cyperss 2026-04-27 12:00:27 +03:30
AmirReza Jamali 0177ecdb4f feat(layout): integrate VersionLogger component to display application version in the layout 2026-04-26 17:44:36 +03:30
AmirReza Jamali 079d976c29 feat(env): add application version to environment variables and log it in the layout component 2026-04-26 17:18:27 +03:30
AmirReza Jamali 1540679095 fix(build.sh): update image tag handling to prompt interactively if omitted
- Modified the build script to allow the image tag to be optional, prompting the user for input if not provided.
- Updated usage instructions to reflect the new behavior.
2026-04-26 16:14:58 +03:30
AmirReza Jamali 36cf088aa5 feat(sidebar): add visibility property to navigation item for conditional rendering 2026-04-26 15:49:19 +03:30
AmirReza Jamali 4fee2c4944 chore: update CI configuration and Dockerfile for pnpm compatibility
- Adjusted CI configuration to ensure compatibility with pnpm.
- Made necessary updates to the Dockerfile for seamless integration with pnpm.
- Refined installation instructions in README.md to align with the latest changes.
2026-04-26 10:13:02 +03:30
AmirReza Jamali 84d34866be chore: migrate to pnpm for package management and update CI configuration
- Replaced npm with pnpm in the CI configuration and Dockerfile for improved dependency management.
- Updated package.json to specify pnpm as the package manager.
- Modified installation instructions in README.md to reflect the use of pnpm.
- Enhanced the build process in the Dockerfile to utilize pnpm for installing dependencies and building the application.
2026-04-25 15:20:23 +03:30
AmirReza Jamali 9b3bd3d1f5 chore: remove package-lock.json to clean up project dependencies and replaced pnpm 2026-04-25 14:46:49 +03:30
Karim Pirzargar 995758a04b showe log 2026-04-25 14:23:05 +03:30
Karim Pirzargar f6883023b0 update node verisn 2026-04-25 14:15:28 +03:30
Karim Pirzargar 975e315de4 update 2026-04-25 14:01:39 +03:30
AmirReza Jamali eab516c7f3 feat(tests, components): enhance Cypress commands and UI elements for improved testing and accessibility
- Added new Cypress commands for mocking admin-related API interactions, including list, create, update, delete, and change status functionalities.
- Introduced data-cy attributes across various components (e.g., Breadcrumbs, Forms, Tables) to improve testability and accessibility.
- Updated existing components to support new data-cy attributes for better integration with Cypress tests.
2026-04-25 13:25:23 +03:30
AmirReza Jamali 2a4f3e7e4b refactor(loading, auth, status): enhance UI components for improved aesthetics and functionality
- Redesigned Loading component to feature a full-screen loader with animated elements for a modern look.
- Updated SigninWithPassword component to include error handling and improved password visibility toggle.
- Refactored Status component to utilize a tone-based styling system for better visual feedback based on status types.
2026-04-25 12:35:03 +03:30
AmirReza Jamali f195bba03d refactor(auth, layouts): enhance UI components for improved aesthetics and usability
- Updated SignIn and Profile components with new background styles and layout adjustments for a more modern look.
- Refined button styles in GoogleSigninButton and SigninWithPassword for better user interaction feedback.
- Enhanced InputGroup and Select components with improved styling and error handling for a more consistent user experience.
- Adjusted Sidebar and Header components for better responsiveness and visual appeal.
- Implemented spotlight effect in UserInfo dropdown for a more engaging user interface.
2026-04-23 20:53:23 +03:30
AmirReza Jamali bb1af8b31c feat(package): add Cypress for end-to-end testing and enhance scripts
- Added Cypress as a dependency for end-to-end testing.
- Introduced new npm scripts for running Cypress tests and starting the development server for testing.
- Updated package-lock.json to reflect the new dependencies and their versions.
2026-04-21 15:59:20 +03:30
AmirReza Jamali dae564b859 refactor(forms): update placeholders for improved clarity and user guidance
- Made the placeholder in InputGroup optional for better flexibility.
- Updated various form components (CreateCompany, CreateCustomer, CreateNotification, CreateCompanyCategory) to provide more descriptive placeholders, enhancing user understanding of expected input.
- Ensured consistency in placeholder text across different fields to improve overall user experience.
2026-04-19 18:12:23 +03:30