Compare commits

...

13 Commits

Author SHA1 Message Date
42bceef654 Merge branch 'Issues_July_2W' of https://git.marcoaiot.com/admin/marco.pms.web into Issues_July_2W 2025-07-14 12:52:19 +05:30
b9281a3955 Creating a custom hook for ImageGallery to call an API. 2025-07-14 12:51:48 +05:30
47bd782cdf Changes in Date picker . 2025-07-14 12:51:48 +05:30
89cabd73dd In the Image Gallery, the filter drawer's date picker should default to the last 7 days (today minus 7 days). 2025-07-14 12:51:25 +05:30
a3db40a86a In filter DatePicker should not display dates in Image Gallery. 2025-07-14 12:51:25 +05:30
17271f1900 In ProjectNav.jsx and AttendancePage.jsx, remove inline CSS font-size styles and replace them with Bootstrap classes. 2025-07-14 12:50:36 +05:30
70d6684bbe Nevigate to "Projects" Page Should Display Only Message When No Projects Are Assigned. 2025-07-14 12:50:35 +05:30
d4c4fa7304 Navigate to "Projects" Page Should Display Only Message When No Projects Are Assigned. 2025-07-14 12:50:17 +05:30
73b07904d2 Ensure all pages maintain a consistent size, even when there's less data to display. 2025-07-14 12:48:48 +05:30
ded2f73cc0 Page Height Should Be Minimized with "No Reports Found" Message in Daily Progress Report. 2025-07-14 12:47:14 +05:30
c8166114c4 Increase the size of table in Projects Directory and show text in center and add 200 px height. 2025-07-14 12:46:56 +05:30
eae0669be1 UI Misaligned on Toggling 'Show Inactive Contact' When No Inactive Contacts Exist in Directory at projects. 2025-07-14 12:46:56 +05:30
db8ecec49e Increase the size of Tabs text in Attendance and Projects. 2025-07-14 12:45:46 +05:30
4 changed files with 49 additions and 0 deletions

View File

@ -333,6 +333,7 @@ const AttendanceLog = ({
)}
{!loading && !isRefreshing && data.length === 0 && (
<span className="text-muted">No employee logs</span>
<span className="text-muted">No employee logs</span>
)}
{/* {error && !loading && !isRefreshing && (
<tr>

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}
/>

View File

@ -374,6 +374,44 @@ const ProjectList = () => {
</div>
)}
{!loading && totalPages > 1 && (
<nav>
<ul className="pagination pagination-sm justify-content-end py-2">
<li className={`page-item ${currentPage === 1 && "disabled"}`}>
<button
className="page-link"
onClick={() => setCurrentPage((p) => Math.max(1, p - 1))}
>
&laquo;
</button>
</li>
{[...Array(totalPages)].map((_, i) => (
<li
key={i}
className={`page-item ${currentPage === i + 1 && "active"}`}
>
<button
className="page-link"
onClick={() => setCurrentPage(i + 1)}
>
{i + 1}
</button>
</li>
))}
<li className={`page-item ${currentPage === totalPages && "disabled"}`}>
<button
className="page-link"
onClick={() =>
setCurrentPage((p) => Math.min(totalPages, p + 1))
}
>
&raquo;
</button>
</li>
</ul>
</nav>
)}
{!loading && totalPages > 1 && (
<nav>
<ul className="pagination pagination-sm justify-content-end py-2">