Add Department Self-Serve dashboard with machine relay controls and API integration:
- Implemented `DepartmentSelfServe` dashboard for managing machine statuses and relays. - Added components for machine display, controls, and relay connectivity (`SelfServeMachine`, `SelfServeMachineControls`, `SelfServeMachineRelayControls`). - Integrated machine relay API endpoints (`/modules/self-serve/lane/relay/machine/*`) for status retrieval and updates. - Updated router configuration with a new route for the self-serve dashboard. - Extended OpenAPI definition to include machine relay APIs and enhance department weather targets documentation.
This commit is contained in:
@@ -354,8 +354,8 @@ test.describe('Admin Module - Goals', () => {
|
||||
to_date: { count: 6, target: 7, date_from: '2026-03-24T00:00:00+01:00', date_end: '2026-03-24T23:59:59+01:00' },
|
||||
today: { count: 1, target: 2, date_from: '2026-04-04T00:00:00+01:00', date_end: '2026-04-04T23:59:59+01:00' },
|
||||
week: { count: 4, target: 7, date_from: '2026-03-23T00:00:00+01:00', date_end: '2026-03-29T23:59:59+01:00' },
|
||||
month: { count: 9, date_from: '2026-04-01T00:00:00+01:00', date_end: '2026-04-30T23:59:59+01:00' },
|
||||
year: { count: 20, date_from: '2026-01-01T00:00:00+01:00', date_end: '2026-12-31T23:59:59+01:00' },
|
||||
month: { count: 9, target: 7, date_from: '2026-04-01T00:00:00+01:00', date_end: '2026-04-30T23:59:59+01:00' },
|
||||
year: { count: 20, target: 7, date_from: '2026-01-01T00:00:00+01:00', date_end: '2026-12-31T23:59:59+01:00' },
|
||||
every_2_weeks: { count: 5, target: 14, date_from: '2026-03-12T00:00:00+01:00', date_end: '2026-03-25T23:59:59+01:00' },
|
||||
departmental_distribution: {
|
||||
[String(departmentId)]: {
|
||||
@@ -363,8 +363,8 @@ test.describe('Admin Module - Goals', () => {
|
||||
to_date: { count: 6, target: 7 },
|
||||
today: { count: 1, target: 2 },
|
||||
week: { count: 4, target: 7 },
|
||||
month: { count: 9 },
|
||||
year: { count: 20 },
|
||||
month: { count: 9, target: 7 },
|
||||
year: { count: 20, target: 7 },
|
||||
every_2_weeks: { count: 5, target: 14 },
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user