Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
fix: add migration, PR comments
  • Loading branch information
zxt-tzx committed Oct 2, 2024
commit f68e15e09d2eadc60e24b08b1288fd96f6119fe1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-- Nothing to restore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UPDATE users SET theme_preference = '' WHERE theme_preference = 'darkBlue';
32 changes: 32 additions & 0 deletions site/src/pages/UsersPage/storybookData/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,22 @@ export const MockUsers: User[] = [
},
],
},
{
id: "59da0bfe-9c99-47fa-a563-f9fdb18449d0",
created_at: "2022-08-15T08:30:10.343828Z",
updated_at: "2024-09-05T12:27:22.098297Z",
last_seen_at: "2024-09-05T12:27:22.098297Z",
status: "active",
login_type: "oidc",
theme_preference: "dark",
organization_ids: ["703f72a1-76f6-4f89-9de6-8a3989693fe5"],
roles: [
{
name: "owner",
display_name: "Owner",
},
],
},
{
id: "12b03f43-1bb7-4fca-967a-585c97f31682",
created_at: "2022-08-10T15:35:20.553581Z",
Expand Down Expand Up @@ -400,6 +416,22 @@ export const MockUsers: User[] = [
},
],
},
{
id: "c323e5c3-57cb-45e7-81c4-56d6cacb2f8c",
created_at: "2024-03-04T11:12:41.201352Z",
updated_at: "2024-09-05T07:24:39.32465Z",
last_seen_at: "2024-09-05T07:24:39.324649Z",
status: "active",
login_type: "oidc",
theme_preference: "dark",
organization_ids: ["703f72a1-76f6-4f89-9de6-8a3989693fe5"],
roles: [
{
name: "owner",
display_name: "Owner",
},
],
},
{
id: "9e7815af-bc48-435a-91c7-72dcbf26f036",
created_at: "2024-05-24T14:53:53.996555Z",
Expand Down
2 changes: 1 addition & 1 deletion site/src/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ export const DEFAULT_THEME = "dark";
const theme = {
dark,
light,
} satisfies Record<"dark" | "light", Theme>;
} satisfies Record<string, Theme>;

export default theme;
Loading