Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/components/HomeComponents/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const Footer = () => {

<section className="container pb-14 text-center">
<h3>
&copy; 2025{' '}
&copy; 2026{' '}
<a
rel="noreferrer noopener"
target="_blank"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ exports[`Footer component using Snapshot renders correctly 1`] = `
class="container pb-14 text-center"
>
<h3>
© 2025
© 2026
<a
class="text-red transition-all border-secondary hover:border-b-2"
rel="noreferrer noopener"
Expand Down
12 changes: 9 additions & 3 deletions frontend/src/components/HomeComponents/Tasks/ReportChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ export const ReportChart: React.FC<ReportChartProps> = ({
}) => {
const [isExporting, setIsExporting] = useState(false);

const isDark =
typeof document !== 'undefined' &&
document.documentElement.classList.contains('dark');

const labelColor = isDark ? '#ffffff' : '#111111';

const handleCSVExport = () => {
exportReportToCSV(data, title);
};
Expand Down Expand Up @@ -90,19 +96,19 @@ export const ReportChart: React.FC<ReportChartProps> = ({
dataKey="completed"
fill="#E776CB"
name="Completed"
label={{ position: 'top', fill: 'white', fontSize: 12 }}
label={{ position: 'top', fill: labelColor, fontSize: 12 }}
/>
<Bar
dataKey="ongoing"
fill="#5FD9FA"
name="Ongoing"
label={{ position: 'top', fill: 'white', fontSize: 12 }}
label={{ position: 'top', fill: labelColor, fontSize: 12 }}
/>
<Bar
dataKey="overdue"
fill="#F33434"
name="Overdue"
label={{ position: 'top', fill: 'white', fontSize: 12 }}
label={{ position: 'top', fill: labelColor, fontSize: 12 }}
/>
</BarChart>
</ResponsiveContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const Footer = () => {

<section className="container pb-14 text-center">
<h3>
&copy; 2025{' '}
&copy; 2026{' '}
<a
rel="noreferrer noopener"
target="_blank"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ exports[`Footer component using Snapshot renders correctly 1`] = `
class="container pb-14 text-center"
>
<h3>
© 2025
© 2026
<a
class="text-red transition-all border-secondary hover:border-b-2"
rel="noreferrer noopener"
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import '../App.css';

export const LandingPage = () => {
return (
<>
<div className="overflow-x-hidden">
<Navbar />
<Hero />
<About />
Expand All @@ -19,6 +19,6 @@ export const LandingPage = () => {
<FAQ />
<Footer />
<ScrollToTop />
</>
</div>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,33 @@

exports[`LandingPage Component using Snapshot renders landing page correctly: landing-page 1`] = `
<DocumentFragment>
<div>
Mocked Navbar
</div>
<div>
Mocked Hero
</div>
<div>
Mocked About
</div>
<div>
Mocked HowItWorks
</div>
<div>
Mocked Contact
</div>
<div>
Mocked FAQ
</div>
<div>
Mocked Footer
</div>
<div>
Mocked ScrollToTop
<div
class="overflow-x-hidden"
>
<div>
Mocked Navbar
</div>
<div>
Mocked Hero
</div>
<div>
Mocked About
</div>
<div>
Mocked HowItWorks
</div>
<div>
Mocked Contact
</div>
<div>
Mocked FAQ
</div>
<div>
Mocked Footer
</div>
<div>
Mocked ScrollToTop
</div>
</div>
</DocumentFragment>
`;
2 changes: 1 addition & 1 deletion frontend/src/components/ui/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const TableRow = React.forwardRef<
<tr
ref={ref}
className={cn(
'border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted',
'border-b transition-colors hover:dark:bg-muted/50 hover:bg-black/15 data-[state=selected]:bg-muted',
className
)}
{...props}
Expand Down
Loading