Compare commits

..

13 Commits

Author SHA1 Message Date
94947c7c05 Merge branch 'Issues_July_2W' of https://git.marcoaiot.com/admin/marco.pms.web into Issues_July_2W 2025-07-14 13:25:37 +05:30
88857c3255 Creating a custom hook for ImageGallery to call an API. 2025-07-14 13:25:31 +05:30
fab4499746 Changes in Date picker . 2025-07-14 13:25:31 +05:30
1b011dfe7d In the Image Gallery, the filter drawer's date picker should default to the last 7 days (today minus 7 days). 2025-07-14 13:25:13 +05:30
03b918b8e7 In filter DatePicker should not display dates in Image Gallery. 2025-07-14 13:25:13 +05:30
26d2e82116 In ProjectNav.jsx and AttendancePage.jsx, remove inline CSS font-size styles and replace them with Bootstrap classes. 2025-07-14 13:24:54 +05:30
b4fa62549d Nevigate to "Projects" Page Should Display Only Message When No Projects Are Assigned. 2025-07-14 13:24:54 +05:30
32757c6796 Navigate to "Projects" Page Should Display Only Message When No Projects Are Assigned. 2025-07-14 13:24:40 +05:30
cefc475c0a Ensure all pages maintain a consistent size, even when there's less data to display. 2025-07-14 13:24:13 +05:30
10cf207677 Page Height Should Be Minimized with "No Reports Found" Message in Daily Progress Report. 2025-07-14 13:24:13 +05:30
331a60a899 Increase the size of table in Projects Directory and show text in center and add 200 px height. 2025-07-14 13:24:00 +05:30
62c178bd18 UI Misaligned on Toggling 'Show Inactive Contact' When No Inactive Contacts Exist in Directory at projects. 2025-07-14 13:24:00 +05:30
45d60b76a0 Increase the size of Tabs text in Attendance and Projects. 2025-07-14 13:23:38 +05:30
2 changed files with 10 additions and 0 deletions

View File

@ -39,6 +39,7 @@ const Directory = ({ IsPage = true, prefernceContacts }) => {
const [openBucketModal, setOpenBucketModal] = useState(false);
const [notes, setNotes] = useState([]);
const [filterAppliedNotes, setFilterAppliedNotes] = useState([]);
const [filterAppliedNotes, setFilterAppliedNotes] = useState([]);
// const [selectedOrgs, setSelectedOrgs] = useState([]);
// Changed to an array for multiple selections
@ -354,6 +355,7 @@ const Directory = ({ IsPage = true, prefernceContacts }) => {
contactsToExport={contacts}
notesToExport={notes}
selectedNoteNames={selectedNoteNames}
selectedNoteNames={selectedNoteNames}
setSelectedNoteNames={setSelectedNoteNames}
notesForFilter={notes}
setFilterAppliedNotes={setFilterAppliedNotes}
@ -459,6 +461,7 @@ const Directory = ({ IsPage = true, prefernceContacts }) => {
searchText={searchText}
setIsOpenModalNote={setIsOpenModalNote}
filterAppliedNotes={filterAppliedNotes}
filterAppliedNotes={filterAppliedNotes}
/>
</div>
)}
@ -494,6 +497,10 @@ const Directory = ({ IsPage = true, prefernceContacts }) => {
</li>
))}
<li
className={`page-item ${currentPage === totalPages ? "disabled" : ""
}`}
>
<li
className={`page-item ${currentPage === totalPages ? "disabled" : ""
}`}
@ -510,6 +517,7 @@ const Directory = ({ IsPage = true, prefernceContacts }) => {
)}
</div>
</div>
);
};

View File

@ -175,6 +175,7 @@ const ImageGallery = () => {
});
});
return Array.from(uniqueUsersMap.entries()).sort((a, b) => a[1].localeCompare(b[1]));
return Array.from(uniqueUsersMap.entries()).sort((a, b) => a[1].localeCompare(b[1]));
}, [allImagesData]);
const buildings = getUniqueValuesWithIds("buildingId", "buildingName");
@ -321,6 +322,7 @@ const ImageGallery = () => {
<DateRangePicker
onRangeChange={setDateRange}
endDateMode="today"
endDateMode="today"
startDate={selectedFilters.startDate}
endDate={selectedFilters.endDate}
/>