feat(scheduling): add department/manager filters, refine color palette
- Add department and manager fields to backend types and suggestions API - Add department/manager to advanced filter panel - Refine card colors: orange (换下) / blue (换走) / dark slate (全部) - Selected card uses solid bg color, inactive uses gradient - Batch pills use dark slate, confirm button uses dark slate - Background changed to #F0F4F8 for subtle cool tone Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -54,6 +54,8 @@ export function toVehicleInfo(v: EnrichedVehicle): SchedulingVehicleInfo {
|
||||
region: v.region,
|
||||
province: v.province,
|
||||
customer: v.customer,
|
||||
department: v.department,
|
||||
manager: v.manager,
|
||||
customerAvgDaily: v.customerAvgDaily,
|
||||
predictedYearEnd: v.predictedYearEnd,
|
||||
daysLeft: v.daysLeft,
|
||||
|
||||
@@ -229,6 +229,8 @@ app.get('/', async (c) => {
|
||||
region,
|
||||
province,
|
||||
customer,
|
||||
department: info?.department || null,
|
||||
manager: info?.manager || null,
|
||||
customerAvgDaily,
|
||||
predictedYearEnd,
|
||||
daysLeft,
|
||||
|
||||
@@ -10,6 +10,8 @@ export interface SchedulingVehicleInfo {
|
||||
region: string;
|
||||
province: string;
|
||||
customer: string | null;
|
||||
department: string | null;
|
||||
manager: string | null;
|
||||
customerAvgDaily: number;
|
||||
predictedYearEnd: number;
|
||||
daysLeft: number;
|
||||
@@ -81,6 +83,8 @@ export interface EnrichedVehicle {
|
||||
region: string;
|
||||
province: string;
|
||||
customer: string | null;
|
||||
department: string | null;
|
||||
manager: string | null;
|
||||
customerAvgDaily: number;
|
||||
predictedYearEnd: number;
|
||||
daysLeft: number;
|
||||
|
||||
Reference in New Issue
Block a user