pramod_Task-#298 : Update Contact #119

Merged
pramod.mahajan merged 16 commits from pramod_Task-#298 into Feature_Directory 2025-05-18 12:35:55 +00:00
Collaborator

src/repository/DirectoryRepository
Added a new method UpdateContact to handle contact updates.

/src/Pages/Directory/Directory
Updated the submitContact function to support both creating and updating contacts.
Integrated the UpdateContact component, now displayed in a modal.

src/hook/useDirectory
Enhanced the useDirectory hook to properly trigger on component mount.

src/hook/masterHook/useMaster
Introduced a new hook useContactCategory for managing contact creation and updates more effectively.

src/components/common/TagInput
Refined to prevent unnecessary re-renders.
Updated styles for improved consistency and performance.

src/components/common/
Introduced a new custom component for multi-select functionality:
SelectMultiple.jsx
MultiSelectDropdown.css

src/components/Directory/
Added a new UpdateContact component for editing existing contacts.

src/components/Directory/ManageDirectory
Improved form validation.
Integrated SelectMultiple.jsx for selecting multiple projects.

src/components/Directory/ListViewDirectory
Enabled functionality to open the update contact modal via:
setSelectedContact( contact )
setIsOpenModal(true)

src/components/Directory/
Added DirectorySchema.js using Zod for better readability and form validation in both create and update workflows.

_src/repository/DirectoryRepository_ Added a new method UpdateContact to handle contact updates. _/src/Pages/Directory/Directory_ Updated the submitContact function to support both creating and updating contacts. Integrated the UpdateContact component, now displayed in a modal. _src/hook/useDirectory_ Enhanced the useDirectory hook to properly trigger on component mount. _src/hook/masterHook/useMaster_ Introduced a new hook useContactCategory for managing contact creation and updates more effectively. _src/components/common/TagInput_ Refined to prevent unnecessary re-renders. Updated styles for improved consistency and performance. _src/components/common/_ Introduced a new custom component for multi-select functionality: SelectMultiple.jsx MultiSelectDropdown.css _src/components/Directory/_ Added a new UpdateContact component for editing existing contacts. _src/components/Directory/ManageDirectory_ Improved form validation. Integrated SelectMultiple.jsx for selecting multiple projects. _src/components/Directory/ListViewDirectory_ Enabled functionality to open the update contact modal via: setSelectedContact( contact ) setIsOpenModal(true) _src/components/Directory/_ Added DirectorySchema.js using Zod for better readability and form validation in both create and update workflows.
pramod.mahajan added 16 commits 2025-05-18 12:28:52 +00:00
pramod.mahajan merged commit b489c094b3 into Feature_Directory 2025-05-18 12:35:55 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: admin/marco.pms.web#119
No description provided.