Skip to content

Conversation

@CmdrTMir
Copy link
Contributor

Heatmap stellt die Verfügbarkeitsauslastung der anderen Taxiunternehmer dar.

@CmdrTMir CmdrTMir marked this pull request as ready for review March 11, 2025 13:13
Copy link
Member

@felixguendling felixguendling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ich denke, wir brauchen ein Konzept, das der Nutzer ohne zusätzliche Erklärung versteht.

class="h-full pr-2 align-middle font-mono text-sm font-semibold leading-none tracking-tight"
>
<HoverCard.Root>
<HoverCard.Trigger>{'Auslastung'}</HoverCard.Trigger>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warum Auslastung?
Warum mit {'?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ich habe nach einem kurzen Wort gesucht, damit es gut in die Übersicht passt. Es sollte beschreiben, wie sehr der Zeitslot von den anderen Taxiunternehmern ausgelastet ist.

Comment on lines +430 to +431
Eine Heatmap, die die Verfügbarkeiten der anderen Taxiunternehmer anzeigt. Farbcodierung:
linear, [1, 10]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unklar aus Nutzersicht

Comment on lines +297 to +320
case 0:
return;
case 1:
return 'bg-rose-100';
case 2:
return 'bg-rose-200';
case 3:
return 'bg-rose-300';
case 4:
return 'bg-rose-400';
case 5:
return 'bg-rose-500';
case 6:
return 'bg-rose-600';
case 7:
return 'bg-rose-700';
case 8:
return 'bg-rose-800';
case 9:
return 'bg-rose-900';
case 10:
return 'bg-rose-950';
default:
return;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unklar aus Nutzersicht was die Farbe bedeutet.

Comment on lines +294 to +295
let normval = Math.floor((heat.heat / max) * 10);
normval = heat.heat > 0 ? Math.max(1, normval) : 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicht nachvollziehabar aus Nutzersicht.

@CmdrTMir
Copy link
Contributor Author

Ok, ich könnte statt einer Heatmap eine Art Ampel machen, grün = keine Auslastung,
gelb = wenig Auslastung, rot = hohe Auslastung. Oder meinst du eine direktere Korrelation zwischen Farbe
und Auslastung in der Heatmap?
Die Berechnung im Hintergrund braucht so oder so einen Referenzwert für hohe bzw. maximale Auslastung,
da wir nicht wissen, was da ein maximaler Wert wäre, habe ich 20 angenommen und dann normiert.
Ich dachte, es wäre gut, wenn es über die Tage hinweg vergleichbar ist.

@nilspenzel nilspenzel closed this Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants