Add edit icon button to event list item
Remove emoji icons from journey display and replace with FontAwesome icons Add FontAwesome icon imports and styles for new icon usage Update calendar service to use FontAwesome icons instead of emojis Remove redundant emoji field from CalendarSourceInfo type Adjust journey scoring weights to prioritize fewer changes Remove emoji icons and simplify event metadata display
This commit is contained in:
@@ -40,11 +40,11 @@ export function rankJourneys(
|
||||
const duration = durationMinutes(journey);
|
||||
|
||||
const arrivalScore = Math.max(0, 100 - deltaMinutes * 4) - lateMinutes * 10;
|
||||
const changesScore = Math.max(0, 100 - journey.changes * 35);
|
||||
const changesScore = Math.max(0, 100 - journey.changes * 55);
|
||||
const durationScore = 100 - ((duration - minDuration) / durationRange) * 100;
|
||||
const cancelledPenalty = journey.cancelled ? 1_000 : 0;
|
||||
|
||||
const score = arrivalScore * 0.55 + changesScore * 0.3 + durationScore * 0.15 - cancelledPenalty;
|
||||
const score = arrivalScore * 0.45 + changesScore * 0.4 + durationScore * 0.15 - cancelledPenalty;
|
||||
return { journey, score };
|
||||
})
|
||||
.sort((a, b) => {
|
||||
|
||||
@@ -164,8 +164,6 @@ export type CalendarAccountType =
|
||||
export interface CalendarSourceInfo {
|
||||
label: string;
|
||||
badge: string;
|
||||
/** Icon emoji shown next to the calendar name. */
|
||||
emoji: string;
|
||||
}
|
||||
|
||||
/** Minimal calendar descriptor used for selection UI. */
|
||||
|
||||
Reference in New Issue
Block a user