Skip to content

Commit dd2c813

Browse files
committed
fix: resolve merge conflicts with development branch
2 parents 19d85c8 + 5398e21 commit dd2c813

66 files changed

Lines changed: 5609 additions & 2534 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

jsconfig.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"compilerOptions": {
3-
"baseUrl": "src"
4-
}
3+
"baseUrl": "src",
4+
"paths": {
5+
"~/*": ["./*"]
6+
}
7+
},
8+
"include": ["src"]
59
}
10+

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"joi-browser": "^13.4.0",
6969
"jquery": "^3.7.1",
7070
"jspdf": "^4.2.1",
71+
"jspdf-autotable": "^5.0.7",
7172
"jwt-decode": "^2.2.0",
7273
"leaflet": "^1.9.4",
7374
"leaflet.heat": "^0.2.0",
@@ -103,6 +104,7 @@
103104
"react-router-dom": "^5.2.0",
104105
"react-router-hash-link": "^2.3.1",
105106
"react-select": "^5.10.2",
107+
"react-simple-maps": "^3.0.0",
106108
"react-spinners": "^0.15.0",
107109
"react-sticky": "^6.0.3",
108110
"react-table": "^7.8.0",
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import axios from 'axios';
2+
import { ENDPOINTS } from '../../utils/URL';
3+
4+
export const getWeeklyGrading = (teamCode, date, token) => async dispatch => {
5+
try {
6+
const params = { team: teamCode };
7+
if (date) params.date = date;
8+
9+
const response = await axios.get(ENDPOINTS.WEEKLY_GRADING, {
10+
params,
11+
headers: { Authorization: `${token}` },
12+
});
13+
return response.data;
14+
} catch (error) {
15+
dispatch({ type: 'SET_ERROR', error: error.message });
16+
throw error;
17+
}
18+
};
19+
20+
export const saveWeeklyGrading = (teamCode, date, gradings, token) => async dispatch => {
21+
try {
22+
const response = await axios.post(
23+
ENDPOINTS.WEEKLY_GRADING_SAVE,
24+
{ teamCode, date, gradings },
25+
{ headers: { Authorization: `${token}` } },
26+
);
27+
return response.data;
28+
} catch (error) {
29+
dispatch({ type: 'SET_ERROR', error: error.message });
30+
throw error;
31+
}
32+
};

src/components/AttendanceSystem/AttendanceNoShowCharts.module.css

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,22 +90,22 @@
9090
border: 1px solid #d1d5db;
9191
border-radius: 6px;
9292
background-color: white;
93-
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
93+
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);
9494
outline: none;
9595
}
9696

9797
.card {
9898
background-color: white;
9999
border-radius: 8px;
100-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
100+
box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
101101
padding: 24px;
102102
margin-bottom: 24px;
103103
}
104104

105105
.chartsCard {
106106
background-color: white;
107107
border-radius: 8px;
108-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
108+
box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
109109
padding: 24px;
110110
}
111111

@@ -166,6 +166,7 @@
166166
height: 12px;
167167
border-radius: 50%;
168168
}
169+
169170
.statusValue {
170171
font-size: 18px;
171172
font-weight: 600;
@@ -241,7 +242,7 @@
241242
.upcomingChartsCard {
242243
background-color: white;
243244
border-radius: 8px;
244-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
245+
box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
245246
padding: 24px;
246247
text-align: center;
247248
}
@@ -252,23 +253,26 @@
252253
margin: 0;
253254
}
254255

255-
@media (min-width: 768px) {
256+
@media (width >= 768px) {
256257
.chartsContainer {
257258
flex-direction: row;
258259
justify-content: space-between;
259260
}
261+
260262
.chartWrapper {
261263
width: 48%;
262264
}
263265
}
264266

265-
@media (max-width: 480px) {
267+
@media (width <= 480px) {
266268
.pageTitle {
267269
font-size: 20px;
268270
}
271+
269272
.cardTitle {
270273
font-size: 20px;
271274
}
275+
272276
.chartSectionTitle {
273277
font-size: 16px;
274278
}
@@ -304,7 +308,7 @@
304308
:global(.dark-mode) .upcomingChartsCard,
305309
:global(.dark-mode) .upcomingContainer {
306310
background-color: #1f2937; /* Darker card background */
307-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
311+
box-shadow: 0 4px 6px rgb(0 0 0 / 30%);
308312
color: #f9fafb;
309313
}
310314

src/components/BMDashboard/Equipment/Detail/EquipmentDetailPage.module.css

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
/* stylelint-disable declaration-block-no-duplicate-properties */
12
.equipmentDetailPage {
23
font-size: 0.95rem;
3-
margin: 1.5rem auto 3rem auto;
4+
margin: 1.5rem auto 3rem;
45
max-width: 720px;
56
}
67

@@ -112,8 +113,8 @@ button.descriptionItem_button:hover {
112113
/* Hide native select arrow to prevent double-chevron; use single custom arrow */
113114
.editableField select {
114115
appearance: none !important;
115-
-webkit-appearance: none !important;
116-
-moz-appearance: none !important;
116+
appearance: none !important;
117+
appearance: none !important;
117118
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%23495057'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
118119
background-repeat: no-repeat !important;
119120
background-position: right 0.75rem center !important;
@@ -172,7 +173,7 @@ button.descriptionItem_button:hover {
172173

173174
:global(body.dark-mode) .equipmentDetailPageHeader h1,
174175
:global(body.bm-dashboard-dark) .equipmentDetailPageHeader h1 {
175-
color: #ffffff;
176+
color: #fff;
176177
}
177178

178179
:global(body.dark-mode) :global(.EquipmentDetailPage__dashed_line),
@@ -227,8 +228,8 @@ button.descriptionItem_button:hover {
227228
:global(body.dark-mode) .editableField select,
228229
:global(body.bm-dashboard-dark) .editableField select {
229230
appearance: none;
230-
-webkit-appearance: none;
231-
-moz-appearance: none;
231+
appearance: none;
232+
appearance: none;
232233
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%23e0eaf5'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
233234
background-repeat: no-repeat;
234235
background-position: right 0.75rem center;

0 commit comments

Comments
 (0)