Skip to content

Commit 30b3624

Browse files
committed
feat: remove dark blue theme
1 parent 35a5475 commit 30b3624

File tree

10 files changed

+1
-433
lines changed

10 files changed

+1
-433
lines changed

site/src/pages/UserSettingsPage/AppearancePage/AppearanceForm.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,12 @@ export const AppearanceForm: FC<AppearanceFormProps> = ({
4242
themes={[themes.dark, themes.light]}
4343
onSelect={() => onChangeTheme("auto")}
4444
/>
45-
4645
<ThemePreviewButton
4746
displayName="Dark"
4847
active={currentTheme === "dark"}
4948
theme={themes.dark}
5049
onSelect={() => onChangeTheme("dark")}
5150
/>
52-
<ThemePreviewButton
53-
displayName="Dark blue"
54-
active={currentTheme === "darkBlue"}
55-
theme={themes.darkBlue}
56-
onSelect={() => onChangeTheme("darkBlue")}
57-
/>
5851
<ThemePreviewButton
5952
displayName="Light"
6053
active={currentTheme === "light"}

site/src/pages/UserSettingsPage/AppearancePage/AppearancePage.test.tsx

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,6 @@ describe("appearance page", () => {
2121
expect(API.updateAppearanceSettings).toBeCalledTimes(0);
2222
});
2323

24-
it("changes theme to dark blue", async () => {
25-
renderWithAuth(<AppearancePage />);
26-
27-
jest.spyOn(API, "updateAppearanceSettings").mockResolvedValueOnce({
28-
...MockUser,
29-
theme_preference: "darkBlue",
30-
});
31-
32-
const darkBlue = await screen.findByText("Dark blue");
33-
await userEvent.click(darkBlue);
34-
35-
// Check if the API was called correctly
36-
expect(API.updateAppearanceSettings).toBeCalledTimes(1);
37-
expect(API.updateAppearanceSettings).toHaveBeenCalledWith("me", {
38-
theme_preference: "darkBlue",
39-
});
40-
});
41-
4224
it("changes theme to light", async () => {
4325
renderWithAuth(<AppearancePage />);
4426

site/src/pages/UsersPage/storybookData/users.ts

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -336,22 +336,6 @@ export const MockUsers: User[] = [
336336
},
337337
],
338338
},
339-
{
340-
id: "59da0bfe-9c99-47fa-a563-f9fdb18449d0",
341-
created_at: "2022-08-15T08:30:10.343828Z",
342-
updated_at: "2024-09-05T12:27:22.098297Z",
343-
last_seen_at: "2024-09-05T12:27:22.098297Z",
344-
status: "active",
345-
login_type: "oidc",
346-
theme_preference: "darkBlue",
347-
organization_ids: ["703f72a1-76f6-4f89-9de6-8a3989693fe5"],
348-
roles: [
349-
{
350-
name: "owner",
351-
display_name: "Owner",
352-
},
353-
],
354-
},
355339
{
356340
id: "12b03f43-1bb7-4fca-967a-585c97f31682",
357341
created_at: "2022-08-10T15:35:20.553581Z",
@@ -416,22 +400,6 @@ export const MockUsers: User[] = [
416400
},
417401
],
418402
},
419-
{
420-
id: "c323e5c3-57cb-45e7-81c4-56d6cacb2f8c",
421-
created_at: "2024-03-04T11:12:41.201352Z",
422-
updated_at: "2024-09-05T07:24:39.32465Z",
423-
last_seen_at: "2024-09-05T07:24:39.324649Z",
424-
status: "active",
425-
login_type: "oidc",
426-
theme_preference: "darkBlue",
427-
organization_ids: ["703f72a1-76f6-4f89-9de6-8a3989693fe5"],
428-
roles: [
429-
{
430-
name: "owner",
431-
display_name: "Owner",
432-
},
433-
],
434-
},
435403
{
436404
id: "9e7815af-bc48-435a-91c7-72dcbf26f036",
437405
created_at: "2024-05-24T14:53:53.996555Z",

site/src/theme/darkBlue/branding.ts

Lines changed: 0 additions & 33 deletions
This file was deleted.

site/src/theme/darkBlue/experimental.ts

Lines changed: 0 additions & 52 deletions
This file was deleted.

site/src/theme/darkBlue/index.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

site/src/theme/darkBlue/monaco.ts

Lines changed: 0 additions & 37 deletions
This file was deleted.

site/src/theme/darkBlue/mui.ts

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)