From 42e7ceff02f604eeff6869ab5006e4c2a0090865 Mon Sep 17 00:00:00 2001 From: Brendan Mulholland Date: Mon, 9 Oct 2023 12:07:08 +0200 Subject: [PATCH 1/2] fix(notifs): Default colors off --- src/context/App.tsx | 2 +- src/routes/Settings.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/context/App.tsx b/src/context/App.tsx index fb94f545f..a5db720d0 100644 --- a/src/context/App.tsx +++ b/src/context/App.tsx @@ -37,7 +37,7 @@ export const defaultSettings: SettingsState = { markOnClick: false, openAtStartup: false, appearance: Appearance.SYSTEM, - colors: true, + colors: false, }; interface AppContextState { diff --git a/src/routes/Settings.tsx b/src/routes/Settings.tsx index a7b929fb6..55ba13651 100644 --- a/src/routes/Settings.tsx +++ b/src/routes/Settings.tsx @@ -73,7 +73,7 @@ export const SettingsRoute: React.FC = () => { updateSetting('colors', evt.target.checked)} /> From 72e3b9bb0624ce500d117dc6f84b85781d0cef71 Mon Sep 17 00:00:00 2001 From: Afonso Jorge Ramos Date: Tue, 10 Oct 2023 15:14:23 +0100 Subject: [PATCH 2/2] fix: update tests --- src/context/App.test.tsx | 4 ++-- src/routes/Settings.tsx | 2 +- src/routes/__snapshots__/Settings.test.tsx.snap | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/context/App.test.tsx b/src/context/App.test.tsx index 390fefc98..05e00520c 100644 --- a/src/context/App.test.tsx +++ b/src/context/App.test.tsx @@ -264,7 +264,7 @@ describe('context/App.tsx', () => { participating: true, playSound: true, showNotifications: true, - colors: true, + colors: false, }, ); }); @@ -302,7 +302,7 @@ describe('context/App.tsx', () => { participating: false, playSound: true, showNotifications: true, - colors: true, + colors: false, }, ); }); diff --git a/src/routes/Settings.tsx b/src/routes/Settings.tsx index 55ba13651..f6adb304a 100644 --- a/src/routes/Settings.tsx +++ b/src/routes/Settings.tsx @@ -73,7 +73,7 @@ export const SettingsRoute: React.FC = () => { updateSetting('colors', evt.target.checked)} /> diff --git a/src/routes/__snapshots__/Settings.test.tsx.snap b/src/routes/__snapshots__/Settings.test.tsx.snap index 3aa7b4c77..397f3730b 100644 --- a/src/routes/__snapshots__/Settings.test.tsx.snap +++ b/src/routes/__snapshots__/Settings.test.tsx.snap @@ -140,7 +140,7 @@ exports[`routes/Settings.tsx should render itself & its children 1`] = ` className="font-medium text-gray-700 dark:text-gray-200" htmlFor="colors" > - Use colors to indicate state + Use GitHub-like state colors (requires re-auth)