forked from DGNum/infrastructure
feat(crabfit): Improve colormap display
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