Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: remove dark blue theme#14890

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
aslilac merged 2 commits intocoder:mainfromzxt-tzx:feat/rm-dark-blue
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes fromall 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
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
-- Nothing to restore
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
UPDATE users SET theme_preference = '' WHERE theme_preference = 'darkBlue';
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -42,19 +42,12 @@ export const AppearanceForm: FC<AppearanceFormProps> = ({
themes={[themes.dark, themes.light]}
onSelect={() => onChangeTheme("auto")}
/>

<ThemePreviewButton
displayName="Dark"
active={currentTheme === "dark"}
theme={themes.dark}
onSelect={() => onChangeTheme("dark")}
/>
<ThemePreviewButton
displayName="Dark blue"
active={currentTheme === "darkBlue"}
theme={themes.darkBlue}
onSelect={() => onChangeTheme("darkBlue")}
/>
<ThemePreviewButton
displayName="Light"
active={currentTheme === "light"}
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -21,24 +21,6 @@ describe("appearance page", () => {
expect(API.updateAppearanceSettings).toBeCalledTimes(0);
});

it("changes theme to dark blue", async () => {
renderWithAuth(<AppearancePage />);

jest.spyOn(API, "updateAppearanceSettings").mockResolvedValueOnce({
...MockUser,
theme_preference: "darkBlue",
});

const darkBlue = await screen.findByText("Dark blue");
await userEvent.click(darkBlue);

// Check if the API was called correctly
expect(API.updateAppearanceSettings).toBeCalledTimes(1);
expect(API.updateAppearanceSettings).toHaveBeenCalledWith("me", {
theme_preference: "darkBlue",
});
});

it("changes theme to light", async () => {
renderWithAuth(<AppearancePage />);

Expand Down
4 changes: 2 additions & 2 deletionssite/src/pages/UsersPage/storybookData/users.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -343,7 +343,7 @@ export const MockUsers: User[] = [
last_seen_at: "2024-09-05T12:27:22.098297Z",
status: "active",
login_type: "oidc",
theme_preference: "darkBlue",
theme_preference: "dark",
organization_ids: ["703f72a1-76f6-4f89-9de6-8a3989693fe5"],
roles: [
{
Expand DownExpand Up@@ -423,7 +423,7 @@ export const MockUsers: User[] = [
last_seen_at: "2024-09-05T07:24:39.324649Z",
status: "active",
login_type: "oidc",
theme_preference: "darkBlue",
theme_preference: "dark",
organization_ids: ["703f72a1-76f6-4f89-9de6-8a3989693fe5"],
roles: [
{
Expand Down
33 changes: 0 additions & 33 deletionssite/src/theme/darkBlue/branding.ts
View file
Open in desktop

This file was deleted.

52 changes: 0 additions & 52 deletionssite/src/theme/darkBlue/experimental.ts
View file
Open in desktop

This file was deleted.

15 changes: 0 additions & 15 deletionssite/src/theme/darkBlue/index.ts
View file
Open in desktop

This file was deleted.

37 changes: 0 additions & 37 deletionssite/src/theme/darkBlue/monaco.ts
View file
Open in desktop

This file was deleted.

79 changes: 0 additions & 79 deletionssite/src/theme/darkBlue/mui.ts
View file
Open in desktop

This file was deleted.

Loading
Loading

[8]ページ先頭

©2009-2025 Movatter.jp