Skip to content

Commit

Permalink
Merge pull request #470 from OpenCatalogi/feature/OP-279/chart-data
Browse files Browse the repository at this point in the history
feature/OP-279/chart-data
  • Loading branch information
remko48 authored May 1, 2024
2 parents 775240f + 6acc022 commit 633672e
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 105 deletions.
1 change: 0 additions & 1 deletion pwa/src/data/filters/softwareType.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export const softwareTypes = [
{ label: "Standalone", value: "standalone" },
{ label: "Standalone Mobile", value: "standalone/mobile" },
{ label: "Standalone IoT", value: "standalone/iot" },
{ label: "Standalone Desktop", value: "standalone/desktop" },
Expand Down
29 changes: 27 additions & 2 deletions pwa/src/services/getStatusColor.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,42 @@
export const getStatusColor = (status: string): string => {
switch (status) {
case "Concept":
return "warning";
return "active";
case "Development":
return "warning";
case "Beta":
return "warning";
return "neutral";
case "Bruikbaar":
return "safe";
case "Stable":
return "safe";
case "Obsolete":
return "danger";
case "Onbekend":
case "":
return "invalid";
default:
return "";
}
};

export const getStatusDiagramColor = (status: string): string => {
switch (status) {
case "Concept":
return "#12239e";
case "Development":
return "#db9600";
case "Beta":
return "#0077b8";
case "Bruikbaar":
return "#11a23f";
case "Stable":
return "#11a23f";
case "Obsolete":
return "#ce4c3b";
case "Onbekend":
case "":
return "#000000";
default:
return "";
}
Expand Down
10 changes: 6 additions & 4 deletions pwa/src/styling/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@ body {
--open-catalogi-rating-rating-bar-background-color: #bfbfbf;
--web-app-overlay-background: rgba(0, 0, 0, 0.3);
--web-app-download-popup-width: 500px;
--utrecht-feedback-safe-fill-background-color: hsla(139, 81%, 35%, 1);
--utrecht-feedback-warning-fill-background-color: hsla(41, 100%, 43%, 1);
--utrecht-feedback-danger-fill-background-color: hsla(7, 60%, 52%, 1);
--utrecht-feedback-neutral-fill-background-color: hsla(201, 100%, 36%, 1);
--utrecht-feedback-safe-fill-background-color: #11a23f;
--utrecht-feedback-warning-fill-background-color: #db9600;
--utrecht-feedback-error-fill-background-color: #ce4c3b;
--utrecht-feedback-neutral-fill-background-color: #0077b8;
--utrecht-feedback-active-fill-background-color: #12239e;
--utrecht-feedback-invalid-fill-background-color: #000000;
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
user-select: none;
}

.legendContainer {
overflow-y: auto;
max-height: 180px;
min-width: 125px;
}

.legend {
display: flex;
gap: 5px;
Expand Down
Loading

0 comments on commit 633672e

Please sign in to comment.