feat: Add support for project cancellation status across the application

This commit is contained in:
2025-09-11 16:19:46 +02:00
parent 2735d46552
commit 95ef139843
13 changed files with 116 additions and 50 deletions

View File

@@ -29,6 +29,7 @@ function ProjectsMapPageContent() {
in_progress_design: true,
in_progress_construction: true,
fulfilled: true,
cancelled: true,
});
const [activeBaseLayer, setActiveBaseLayer] = useState("OpenStreetMap");
const [activeOverlays, setActiveOverlays] = useState([]);
@@ -57,6 +58,11 @@ function ProjectsMapPageContent() {
label: "Completed",
shortLabel: "Zakończony",
},
cancelled: {
color: "#EF4444",
label: "Cancelled",
shortLabel: "Wycofany",
},
};
// Toggle all status filters

View File

@@ -119,6 +119,7 @@ export default function ProjectListPage() {
case "in_progress_design": return t('projectStatus.in_progress_design');
case "in_progress_construction": return t('projectStatus.in_progress_construction');
case "fulfilled": return t('projectStatus.fulfilled');
case "cancelled": return t('projectStatus.cancelled');
default: return "-";
}
};