Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(frontend): allow workspace admin to set workspace color #5032

Merged
merged 6 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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.

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