poprawki filtrów dziennia DR

This commit is contained in:
2023-12-21 22:11:06 +01:00
parent 3b3c3bda31
commit 0995ce15bc
3 changed files with 27 additions and 20 deletions
+18 -15
View File
@@ -1,12 +1,5 @@
export namespace Journal {
export type DispatcherSearcher = {
[key in 'search-dispatcher' | 'search-station' | 'search-date']: string;
};
export interface DispatcherSorter {
id: 'timestampFrom' | 'duration';
dir: -1 | 1;
}
export type DispatcherSearchKey = 'search-dispatcher' | 'search-station' | 'search-date';
export type TimetableSearchKey =
| 'search-driver'
@@ -19,6 +12,23 @@ export namespace Journal {
[key in TimetableSearchKey]: string;
};
export type DispatcherSearchType = {
[key in DispatcherSearchKey]: string;
};
export type TimetableSorterKey = 'timetableId' | 'beginDate' | 'distance' | 'total-stops';
export type DispatcherSorterKey = 'timestampFrom' | 'duration';
export interface DispatcherSorter {
id: DispatcherSorterKey;
dir: -1 | 1;
}
export interface TimetableSorter {
id: TimetableSorterKey;
dir: 'asc' | 'desc';
}
export const enum TimetableFilterId {
ALL_STATUSES = 'all-statuses',
ACTIVE = 'active',
@@ -42,13 +52,6 @@ export namespace Journal {
default: boolean;
}
export type TimetableSorterKey = 'timetableId' | 'beginDate' | 'distance' | 'total-stops';
export interface TimetableSorter {
id: TimetableSorterKey;
dir: 'asc' | 'desc';
}
export enum StatsTab {
DRIVER_STATS = 'journal-driver-stats',
DISPATCHER_STATS = 'journal-dispatcher-stats',