feat(crabfit): Improve colormap display
All checks were successful
lint / check (push) Successful in 29s
build configuration / build_web02 (push) Successful in 55s
build configuration / build_storage01 (push) Successful in 1m0s
build configuration / build_compute01 (push) Successful in 1m2s
build configuration / build_vault01 (push) Successful in 1m9s
build configuration / build_web01 (push) Successful in 2m29s
All checks were successful
lint / check (push) Successful in 29s
build configuration / build_web02 (push) Successful in 55s
build configuration / build_storage01 (push) Successful in 1m0s
build configuration / build_compute01 (push) Successful in 1m2s
build configuration / build_vault01 (push) Successful in 1m9s
build configuration / build_web01 (push) Successful in 2m29s
This commit is contained in:
parent
ce3681f1e4
commit
c95908d0b3
2 changed files with 16 additions and 0 deletions
|
@ -0,0 +1,15 @@
|
||||||
|
diff --git a/src/utils/calculateAvailability.ts b/src/utils/calculateAvailability.ts
|
||||||
|
index 67286f35..4a744672 100644
|
||||||
|
--- a/src/utils/calculateAvailability.ts
|
||||||
|
+++ b/src/utils/calculateAvailability.ts
|
||||||
|
@@ -23,8 +23,8 @@ interface AvailabilityInfo {
|
||||||
|
* group availability for each date passed in.
|
||||||
|
*/
|
||||||
|
export const calculateAvailability = (dates: string[], people: Person[]): AvailabilityInfo => {
|
||||||
|
- let min = 0
|
||||||
|
- let max = people.length
|
||||||
|
+ let min = people.length
|
||||||
|
+ let max = 0
|
||||||
|
|
||||||
|
const availabilities: Availability[] = dates.map(date => {
|
||||||
|
const names = people.flatMap(p => p.availability.some(d => d === date) ? [p.name] : [])
|
|
@ -32,6 +32,7 @@ stdenv.mkDerivation (
|
||||||
./04-frontend_url.patch
|
./04-frontend_url.patch
|
||||||
./05-dgnum.patch
|
./05-dgnum.patch
|
||||||
./06-download.patch
|
./06-download.patch
|
||||||
|
./07-colormap.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
offlineCache = fetchYarnDeps {
|
offlineCache = fetchYarnDeps {
|
||||||
|
|
Loading…
Reference in a new issue