- Refactor machine_1 drawing logic: optimize highlighted button rendering and deferred processing.

- Add branding management feature: API routes, payload handling, and OpenAPI schema updates.
- Implement department branding logic: CRUD operations, validation, and permissions.
- Add order deletion confirmation support with conflict handling and OpenAPI schema updates.
- Enhance tests and API methods for improved order handling and branding workflows.
This commit is contained in:
Jeppe Bundgaard
2026-05-07 10:44:00 +02:00
parent a71bde3211
commit 22fcb5cd0e
12 changed files with 785 additions and 71 deletions
+57 -3
View File
@@ -10961,12 +10961,23 @@ paths:
name: {type: string}
description: {type: string}
cvr: {type: integer}
address: {type: string, nullable: true}
phone_country_code: {type: integer, nullable: true}
phone: {type: integer, nullable: true}
email: {type: string, nullable: true}
website: {type: string, nullable: true}
banner: {type: string, nullable: true}
logo: {type: string, nullable: true}
favicon: {type: string, nullable: true}
signature: {type: string, nullable: true}
responses:
'200':
description: Branding option added successfully
content:
application/json:
schema: {}
'400':
$ref: '#/components/responses/BadRequest'
'403':
$ref: '#/components/responses/Forbidden'
put:
@@ -10984,17 +10995,30 @@ paths:
required: [id]
properties:
id: {type: integer}
name: {type: string}
description: {type: string}
cvr: {type: integer}
name: {type: string, nullable: true}
description: {type: string, nullable: true}
cvr: {type: integer, nullable: true}
address: {type: string, nullable: true}
phone_country_code: {type: integer, nullable: true}
phone: {type: integer, nullable: true}
email: {type: string, nullable: true}
website: {type: string, nullable: true}
banner: {type: string, nullable: true}
logo: {type: string, nullable: true}
favicon: {type: string, nullable: true}
signature: {type: string, nullable: true}
responses:
'200':
description: Branding option updated successfully
content:
application/json:
schema: {}
'400':
$ref: '#/components/responses/BadRequest'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
/roles:
get:
@@ -11168,6 +11192,36 @@ paths:
application/json:
schema: {}
/superuser/department/branding:
put:
tags:
- Departments
summary: Set department branding
description: Assign an existing branding option to a department, or clear the department branding by sending a null branding_id.
operationId: setDepartmentBranding
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [department_id, branding_id]
properties:
department_id: {type: integer}
branding_id: {type: integer, nullable: true}
responses:
'200':
description: Department branding updated successfully
content:
application/json:
schema: {}
'400':
$ref: '#/components/responses/BadRequest'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
/superuser/department/prices:
get:
tags: