From bfe7613edcd6ab53a17d0dd0ebe04a06bd5913f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sun, 3 Nov 2024 00:27:16 +0100 Subject: [PATCH 1/3] pl-fe: Replace heart icon with a star MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-fe/src/components/status-action-bar.tsx | 2 +- packages/pl-fe/src/features/interaction-requests/index.tsx | 2 +- .../pl-fe/src/features/notifications/components/filter-bar.tsx | 2 +- .../src/features/notifications/components/notification.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/pl-fe/src/components/status-action-bar.tsx b/packages/pl-fe/src/components/status-action-bar.tsx index 21beb71aa..a1391d39b 100644 --- a/packages/pl-fe/src/components/status-action-bar.tsx +++ b/packages/pl-fe/src/components/status-action-bar.tsx @@ -398,7 +398,7 @@ const FavouriteButton: React.FC = ({ const favouriteButton = ( { name: 'status', }); items.push({ - text: , + text: , title: intl.formatMessage(messages.favourites), action: onClick('favourite'), name: 'favourite', diff --git a/packages/pl-fe/src/features/notifications/components/notification.tsx b/packages/pl-fe/src/features/notifications/components/notification.tsx index 582c77ed1..650175968 100644 --- a/packages/pl-fe/src/features/notifications/components/notification.tsx +++ b/packages/pl-fe/src/features/notifications/components/notification.tsx @@ -54,7 +54,7 @@ const icons: Partial> = { follow: require('@tabler/icons/outline/user-plus.svg'), follow_request: require('@tabler/icons/outline/user-plus.svg'), mention: require('@tabler/icons/outline/at.svg'), - favourite: require('@tabler/icons/outline/heart.svg'), + favourite: require('@tabler/icons/outline/star.svg'), reblog: require('@tabler/icons/outline/repeat.svg'), status: require('@tabler/icons/outline/bell-ringing.svg'), poll: require('@tabler/icons/outline/chart-bar.svg'), From db02dbf13c31166e015a0863b9b220ebb4a11e75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sun, 3 Nov 2024 00:28:36 +0100 Subject: [PATCH 2/3] pl-fe: Disable wrench button by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-fe/src/schemas/pl-fe/settings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pl-fe/src/schemas/pl-fe/settings.ts b/packages/pl-fe/src/schemas/pl-fe/settings.ts index 07d315d3d..e7f64d380 100644 --- a/packages/pl-fe/src/schemas/pl-fe/settings.ts +++ b/packages/pl-fe/src/schemas/pl-fe/settings.ts @@ -35,7 +35,7 @@ const settingsSchema = v.object({ preserveSpoilers: v.fallback(v.boolean(), false), autoTranslate: v.fallback(v.boolean(), false), knownLanguages: v.fallback(v.array(v.string()), []), - showWrenchButton: v.fallback(v.boolean(), true), + showWrenchButton: v.fallback(v.boolean(), false), systemFont: v.fallback(v.boolean(), false), demetricator: v.fallback(v.boolean(), false), From 6818341d7e8174d1b9a94a5ca4f4260028b9b7ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sun, 3 Nov 2024 00:38:20 +0100 Subject: [PATCH 3/3] pl-fe: do not store serialized client in local storage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-fe/src/reducers/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pl-fe/src/reducers/auth.ts b/packages/pl-fe/src/reducers/auth.ts index 7f097df66..8f8467cb0 100644 --- a/packages/pl-fe/src/reducers/auth.ts +++ b/packages/pl-fe/src/reducers/auth.ts @@ -145,7 +145,7 @@ const sanitizeState = (state: State) => { }); }; -const persistAuth = (state: State) => localStorage.setItem(STORAGE_KEY, JSON.stringify(state.toJS())); +const persistAuth = (state: State) => localStorage.setItem(STORAGE_KEY, JSON.stringify(state.delete('client').toJS())); const persistSession = (state: State) => { const me = state.me;