From 596653ee1e50f03dbdfa8f197827d783a56a1680 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 26 Nov 2022 11:02:50 -0600 Subject: [PATCH 01/12] Wrap the emoji selector on smaller screens --- app/soapbox/components/ui/emoji-selector/emoji-selector.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/soapbox/components/ui/emoji-selector/emoji-selector.tsx b/app/soapbox/components/ui/emoji-selector/emoji-selector.tsx index 20810efbe..caaea79ee 100644 --- a/app/soapbox/components/ui/emoji-selector/emoji-selector.tsx +++ b/app/soapbox/components/ui/emoji-selector/emoji-selector.tsx @@ -47,8 +47,7 @@ const EmojiSelector: React.FC = ({ emojis, onReact, visible = fa return ( {Array.from(emojis).map((emoji, i) => ( Date: Sat, 26 Nov 2022 12:42:55 -0600 Subject: [PATCH 02/12] Improve direct timeline styles --- app/soapbox/features/direct-timeline/index.tsx | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/app/soapbox/features/direct-timeline/index.tsx b/app/soapbox/features/direct-timeline/index.tsx index 885c617db..aef932516 100644 --- a/app/soapbox/features/direct-timeline/index.tsx +++ b/app/soapbox/features/direct-timeline/index.tsx @@ -5,14 +5,13 @@ import { directComposeById } from 'soapbox/actions/compose'; import { connectDirectStream } from 'soapbox/actions/streaming'; import { expandDirectTimeline } from 'soapbox/actions/timelines'; import AccountSearch from 'soapbox/components/account-search'; -import ColumnHeader from 'soapbox/components/column-header'; import { Column } from 'soapbox/components/ui'; -import { useAppDispatch, useAppSelector } from 'soapbox/hooks'; +import { useAppDispatch } from 'soapbox/hooks'; import Timeline from '../ui/components/timeline'; const messages = defineMessages({ - title: { id: 'column.direct', defaultMessage: 'Direct messages' }, + heading: { id: 'column.direct', defaultMessage: 'Direct messages' }, searchPlaceholder: { id: 'direct.search_placeholder', defaultMessage: 'Send a message to…' }, }); @@ -20,8 +19,6 @@ const DirectTimeline = () => { const intl = useIntl(); const dispatch = useAppDispatch(); - const hasUnread = useAppSelector((state) => (state.timelines.get('direct')?.unread || 0) > 0); - useEffect(() => { dispatch(expandDirectTimeline()); const disconnect = dispatch(connectDirectStream()); @@ -40,13 +37,7 @@ const DirectTimeline = () => { }; return ( - - - + { timelineId='direct' onLoadMore={handleLoadMore} emptyMessage={} - divideType='space' + divideType='border' /> ); From de2186babfda407763e3bd4c8538654f791ee94a Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 26 Nov 2022 12:48:33 -0600 Subject: [PATCH 03/12] Features: SOAPBOX --> REBASED --- app/soapbox/utils/features.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/soapbox/utils/features.ts b/app/soapbox/utils/features.ts index 200cee5f1..8314cabeb 100644 --- a/app/soapbox/utils/features.ts +++ b/app/soapbox/utils/features.ts @@ -49,7 +49,8 @@ export const TRUTHSOCIAL = 'TruthSocial'; * Rebased, the recommended backend for Soapbox. * @see {@link https://gitlab.com/soapbox-pub/rebased} */ -export const SOAPBOX = 'soapbox'; +// NOTE: Rebased is named 'soapbox' for legacy reasons. +export const REBASED = 'soapbox'; /** * glitch-soc, fork of Mastodon with a number of experimental features. @@ -105,7 +106,7 @@ const getInstanceFeatures = (instance: Instance) => { * @see PATCH /api/v1/accounts/update_credentials */ accountLocation: any([ - v.software === PLEROMA && v.build === SOAPBOX && gte(v.version, '2.4.50'), + v.software === PLEROMA && v.build === REBASED && gte(v.version, '2.4.50'), v.software === TRUTHSOCIAL, ]), @@ -179,7 +180,7 @@ const getInstanceFeatures = (instance: Instance) => { * @see POST /api/v1/accounts * @see PATCH /api/v1/accounts/update_credentials */ - birthdays: v.software === PLEROMA && v.build === SOAPBOX && gte(v.version, '2.4.50'), + birthdays: v.software === PLEROMA && v.build === REBASED && gte(v.version, '2.4.50'), /** Whether people who blocked you are visible through the API. */ blockersVisible: features.includes('blockers_visible'), @@ -380,7 +381,7 @@ const getInstanceFeatures = (instance: Instance) => { */ mastodonAdmin: any([ v.software === MASTODON && gte(v.compatVersion, '2.9.1'), - v.software === PLEROMA && v.build === SOAPBOX && gte(v.version, '2.4.50'), + v.software === PLEROMA && v.build === REBASED && gte(v.version, '2.4.50'), ]), /** @@ -504,7 +505,7 @@ const getInstanceFeatures = (instance: Instance) => { * @see POST /api/v1/statuses */ quotePosts: any([ - v.software === PLEROMA && [SOAPBOX, AKKOMA].includes(v.build!) && gte(v.version, '2.4.50'), + v.software === PLEROMA && [REBASED, AKKOMA].includes(v.build!) && gte(v.version, '2.4.50'), instance.feature_quote === true, ]), @@ -520,7 +521,7 @@ const getInstanceFeatures = (instance: Instance) => { */ removeFromFollowers: any([ v.software === MASTODON && gte(v.compatVersion, '3.5.0'), - v.software === PLEROMA && v.build === SOAPBOX && gte(v.version, '2.4.50'), + v.software === PLEROMA && v.build === REBASED && gte(v.version, '2.4.50'), ]), reportMultipleStatuses: any([ From b8542c619d0bc2fe331f447fcb031bc12a9f0d71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sat, 26 Nov 2022 20:01:43 +0100 Subject: [PATCH 04/12] Improve chats styles and chat placeholder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- .../features/chats/components/chat.tsx | 44 +++++++++---------- .../components/placeholder-chat.tsx | 26 +++++------ .../components/placeholder-display-name.tsx | 5 ++- app/styles/chats.scss | 22 ---------- 4 files changed, 37 insertions(+), 60 deletions(-) diff --git a/app/soapbox/features/chats/components/chat.tsx b/app/soapbox/features/chats/components/chat.tsx index 7c595c33f..5b4635fab 100644 --- a/app/soapbox/features/chats/components/chat.tsx +++ b/app/soapbox/features/chats/components/chat.tsx @@ -35,29 +35,29 @@ const Chat: React.FC = ({ chatId, onClick }) => {