Commit Graph

10 Commits

Author SHA1 Message Date
AmirReza Jamali 08938ad7f0 Fix company document removal in edit mode
continuous-integration/drone/push Build is passing
2026-07-07 10:54:51 +03:30
AmirReza Jamali 90a42b9fc5 feat(forms): implement dynamic form builder for admin and company creation
continuous-integration/drone/push Build is passing
- Introduced DynamicFormBuilder component to streamline form creation for admin and company categories.
- Refactored CreateAdmin and CreateCompany components to utilize the new dynamic form structure.
- Added createAdminFormSections and createCompanyFormSections functions to define form fields and validation rules.
- Enhanced form handling with improved error management and dynamic field rendering.

This update enhances maintainability and scalability of forms across the application.
2026-06-21 09:03:51 +03:30
AmirReza Jamali 169708e49d fix(companies): align optional numeric fields with API validation
continuous-integration/drone/push Build is passing
Make employee_count, annual_revenue, and founded_year truly optional in
the create company form and payload. Add field validation docs and
Cypress e2e coverage for dashboard and notifications.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-16 11:47:45 +03:30
AmirReza Jamali da1e2f89e7 feat(documents): implement document upload functionality for companies
- Added DocumentItem component to display uploaded documents in CompanyDetailsPage.
- Introduced useUploadCompanyDocuments hook for handling document uploads.
- Updated CreateCompany form to include document upload capabilities and validation for file types and sizes.
- Enhanced API services to support batch document uploads and retrieval of document information.
- Improved response handling in the file service for better error management and user feedback.
2026-06-06 17:18:02 +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 711dee4bce fixed build issue 2025-09-28 10:29:16 +03:30
AmirReza Jamali dd0cbb8e29 fixed: force issues 2025-09-22 14:57:29 +03:30
AmirReza Jamali 4a7a1c66f7 Add: shared skeleton, dark toggle bg, fixed: multi select patching issue 2025-09-20 19:35:58 +03:30
AmirReza Jamali 0ea2ff635b refactor(forms): Enhance MultiSelect with controlled state and styling
This commit overhauls the `MultiSelect` component to improve its functionality, flexibility, and integration with form libraries.

The component is now a controlled component, accepting a `value` prop and using the `onChange` handler to propagate updates. This allows for seamless integration with libraries like React Hook Form.

Key changes include:
- Added `value`, `disabled`, `active`, and `height` props for more granular control over the component's state and appearance.
- Refactored styling logic to use the `cn` utility for cleaner conditional class management.
- Simplified the internal JSX structure and SVGs for better readability and maintenance.
- Updated the component's state management to correctly reflect the incoming `value` prop.
2025-09-20 18:28:53 +03:30
AmirReza Jamali 1d4ccb3575 Initial commit for new panel 2025-09-09 11:20:26 +03:30