Skip to content

Commit bf7b859

Browse files
authored
fix: minor bug fixes on ui (#393)
1 parent 224ad3a commit bf7b859

8 files changed

Lines changed: 43 additions & 33 deletions

File tree

frontend/src/components/HomeComponents/Footer/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const Footer = () => {
9090

9191
<section className="container pb-14 text-center">
9292
<h3>
93-
&copy; 2025{' '}
93+
&copy; 2026{' '}
9494
<a
9595
rel="noreferrer noopener"
9696
target="_blank"

frontend/src/components/HomeComponents/Footer/__tests__/__snapshots__/Footer.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ exports[`Footer component using Snapshot renders correctly 1`] = `
149149
class="container pb-14 text-center"
150150
>
151151
<h3>
152-
© 2025
152+
© 2026
153153
<a
154154
class="text-red transition-all border-secondary hover:border-b-2"
155155
rel="noreferrer noopener"

frontend/src/components/HomeComponents/Tasks/ReportChart.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ export const ReportChart: React.FC<ReportChartProps> = ({
2323
}) => {
2424
const [isExporting, setIsExporting] = useState(false);
2525

26+
const isDark =
27+
typeof document !== 'undefined' &&
28+
document.documentElement.classList.contains('dark');
29+
30+
const labelColor = isDark ? '#ffffff' : '#111111';
31+
2632
const handleCSVExport = () => {
2733
exportReportToCSV(data, title);
2834
};
@@ -90,19 +96,19 @@ export const ReportChart: React.FC<ReportChartProps> = ({
9096
dataKey="completed"
9197
fill="#E776CB"
9298
name="Completed"
93-
label={{ position: 'top', fill: 'white', fontSize: 12 }}
99+
label={{ position: 'top', fill: labelColor, fontSize: 12 }}
94100
/>
95101
<Bar
96102
dataKey="ongoing"
97103
fill="#5FD9FA"
98104
name="Ongoing"
99-
label={{ position: 'top', fill: 'white', fontSize: 12 }}
105+
label={{ position: 'top', fill: labelColor, fontSize: 12 }}
100106
/>
101107
<Bar
102108
dataKey="overdue"
103109
fill="#F33434"
104110
name="Overdue"
105-
label={{ position: 'top', fill: 'white', fontSize: 12 }}
111+
label={{ position: 'top', fill: labelColor, fontSize: 12 }}
106112
/>
107113
</BarChart>
108114
</ResponsiveContainer>

frontend/src/components/LandingComponents/Footer/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const Footer = () => {
8888

8989
<section className="container pb-14 text-center">
9090
<h3>
91-
&copy; 2025{' '}
91+
&copy; 2026{' '}
9292
<a
9393
rel="noreferrer noopener"
9494
target="_blank"

frontend/src/components/LandingComponents/Footer/__tests__/__snapshots__/Footer.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ exports[`Footer component using Snapshot renders correctly 1`] = `
149149
class="container pb-14 text-center"
150150
>
151151
<h3>
152-
© 2025
152+
© 2026
153153
<a
154154
class="text-red transition-all border-secondary hover:border-b-2"
155155
rel="noreferrer noopener"

frontend/src/components/LandingPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import '../App.css';
1010

1111
export const LandingPage = () => {
1212
return (
13-
<>
13+
<div className="overflow-x-hidden">
1414
<Navbar />
1515
<Hero />
1616
<About />
@@ -19,6 +19,6 @@ export const LandingPage = () => {
1919
<FAQ />
2020
<Footer />
2121
<ScrollToTop />
22-
</>
22+
</div>
2323
);
2424
};

frontend/src/components/__tests__/__snapshots__/LandingPage.test.tsx.snap

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,33 @@
22

33
exports[`LandingPage Component using Snapshot renders landing page correctly: landing-page 1`] = `
44
<DocumentFragment>
5-
<div>
6-
Mocked Navbar
7-
</div>
8-
<div>
9-
Mocked Hero
10-
</div>
11-
<div>
12-
Mocked About
13-
</div>
14-
<div>
15-
Mocked HowItWorks
16-
</div>
17-
<div>
18-
Mocked Contact
19-
</div>
20-
<div>
21-
Mocked FAQ
22-
</div>
23-
<div>
24-
Mocked Footer
25-
</div>
26-
<div>
27-
Mocked ScrollToTop
5+
<div
6+
class="overflow-x-hidden"
7+
>
8+
<div>
9+
Mocked Navbar
10+
</div>
11+
<div>
12+
Mocked Hero
13+
</div>
14+
<div>
15+
Mocked About
16+
</div>
17+
<div>
18+
Mocked HowItWorks
19+
</div>
20+
<div>
21+
Mocked Contact
22+
</div>
23+
<div>
24+
Mocked FAQ
25+
</div>
26+
<div>
27+
Mocked Footer
28+
</div>
29+
<div>
30+
Mocked ScrollToTop
31+
</div>
2832
</div>
2933
</DocumentFragment>
3034
`;

frontend/src/components/ui/table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const TableRow = React.forwardRef<
5858
<tr
5959
ref={ref}
6060
className={cn(
61-
'border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted',
61+
'border-b transition-colors hover:dark:bg-muted/50 hover:bg-black/15 data-[state=selected]:bg-muted',
6262
className
6363
)}
6464
{...props}

0 commit comments

Comments
 (0)