fix: resolve 6 Gitea issues (#9, #10, #12, #14, #15, #21) #25

Merged
mates merged 2 commits from fix/gitea-issues-9-10-12-14-15-21 into master 2026-02-04 13:43:51 +01:00
Showing only changes of commit 2b7197eff6 - Show all commits

View File

@@ -4,7 +4,7 @@ import Header from "../components/Header";
import { useAuth } from "../context/auth"; import { useAuth } from "../context/auth";
import Login from "../Login"; import Login from "../Login";
import { formatDate, getFirstWorkDayOfWeek, getHumanDate, getLastWorkDayOfWeek } from "../Utils"; import { formatDate, getFirstWorkDayOfWeek, getHumanDate, getLastWorkDayOfWeek } from "../Utils";
import { WeeklyStats, LunchChoice, VotingStats, getStats, getVotingStats } from "../../../types"; import { WeeklyStats, LunchChoice, VotingStats, FeatureRequest, getStats, getVotingStats } from "../../../types";
import Loader from "../components/Loader"; import Loader from "../components/Loader";
import { faChevronLeft, faChevronRight, faGear } from "@fortawesome/free-solid-svg-icons"; import { faChevronLeft, faChevronRight, faGear } from "@fortawesome/free-solid-svg-icons";
import { Legend, Line, LineChart, Tooltip, XAxis, YAxis } from "recharts"; import { Legend, Line, LineChart, Tooltip, XAxis, YAxis } from "recharts";
@@ -155,7 +155,7 @@ export default function StatsPage() {
<tbody> <tbody>
{sortedVotingStats.map(([feature, count]) => ( {sortedVotingStats.map(([feature, count]) => (
<tr key={feature}> <tr key={feature}>
<td>{feature}</td> <td>{FeatureRequest[feature as keyof typeof FeatureRequest] ?? feature}</td>
<td>{count as number}</td> <td>{count as number}</td>
</tr> </tr>
))} ))}