Skip to content

Commit

Permalink
feat(frontend): allow workspace admin to set workspace color (#5032)
Browse files Browse the repository at this point in the history
* feat(frontend): allow workspace admin to set workspace color

* sqlx prep

* sqlx prep

* make border wider, add removed comment
  • Loading branch information
alpetric authored Jan 9, 2025
1 parent 53c62f2 commit 0c39137
Show file tree
Hide file tree
Showing 18 changed files with 453 additions and 38 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions backend/migrations/20250107212922_workspace_color.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE workspace_settings DROP COLUMN color;
1 change: 1 addition & 0 deletions backend/migrations/20250107212922_workspace_color.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE workspace_settings ADD COLUMN color VARCHAR(7) DEFAULT NULL;
33 changes: 33 additions & 0 deletions backend/windmill-api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1576,6 +1576,30 @@ paths:
schema:
type: string

/w/{workspace}/workspaces/change_workspace_color:
post:
summary: change workspace id
operationId: changeWorkspaceColor
tags:
- workspace
parameters:
- $ref: "#/components/parameters/WorkspaceId"
requestBody:
content:
application/json:
schema:
type: object
properties:
color:
type: string
responses:
"200":
description: status
content:
text/plain:
schema:
type: string

/w/{workspace}/users/whois/{username}:
get:
summary: whois
Expand Down Expand Up @@ -1722,6 +1746,8 @@ paths:
$ref: "#/components/schemas/WorkspaceDefaultScripts"
mute_critical_alerts:
type: boolean
color:
type: string
required:
- code_completion_enabled
- automatic_billing
Expand Down Expand Up @@ -12765,10 +12791,13 @@ components:
type: string
username:
type: string
color:
type: string
required:
- id
- name
- username
- color
required:
- email
- workspaces
Expand All @@ -12782,6 +12811,8 @@ components:
type: string
username:
type: string
color:
type: string
required:
- id
- name
Expand All @@ -12797,6 +12828,8 @@ components:
type: string
domain:
type: string
color:
type: string
required:
- id
- name
Expand Down
Loading

0 comments on commit 0c39137

Please sign in to comment.