From aed41989f53543ce5079f02a1040f426045bd673 Mon Sep 17 00:00:00 2001 From: Chewbacca Date: Mon, 3 Apr 2023 15:57:12 -0400 Subject: [PATCH 1/9] Remove 'Pending requests' from Group Manage --- app/soapbox/features/group/manage-group.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/app/soapbox/features/group/manage-group.tsx b/app/soapbox/features/group/manage-group.tsx index 012f762f5..723bbb5ad 100644 --- a/app/soapbox/features/group/manage-group.tsx +++ b/app/soapbox/features/group/manage-group.tsx @@ -7,8 +7,10 @@ import List, { ListItem } from 'soapbox/components/list'; import { CardBody, CardHeader, CardTitle, Column, Spinner, Text } from 'soapbox/components/ui'; import { useAppDispatch, useGroupsPath } from 'soapbox/hooks'; import { useDeleteGroup, useGroup } from 'soapbox/hooks/api'; +import { useBackend } from 'soapbox/hooks/useBackend'; import { GroupRoles } from 'soapbox/schemas/group-member'; import toast from 'soapbox/toast'; +import { TRUTHSOCIAL } from 'soapbox/utils/features'; import ColumnForbidden from '../ui/components/column-forbidden'; @@ -34,10 +36,12 @@ interface IManageGroup { const ManageGroup: React.FC = ({ params }) => { const { id } = params; - const intl = useIntl(); - const history = useHistory(); + + const backend = useBackend(); const dispatch = useAppDispatch(); const groupsPath = useGroupsPath(); + const history = useHistory(); + const intl = useIntl(); const { group } = useGroup(id); @@ -99,7 +103,10 @@ const ManageGroup: React.FC = ({ params }) => { - + {backend.software !== TRUTHSOCIAL && ( + + )} + From fd9fc8bb598bc8415aad6c135449fdcfd8c4501a Mon Sep 17 00:00:00 2001 From: Chewbacca Date: Mon, 3 Apr 2023 17:01:34 -0400 Subject: [PATCH 2/9] Update icon color for Group statuses --- app/soapbox/components/status.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/soapbox/components/status.tsx b/app/soapbox/components/status.tsx index 3ec072394..65291a420 100644 --- a/app/soapbox/components/status.tsx +++ b/app/soapbox/components/status.tsx @@ -8,7 +8,6 @@ import { mentionCompose, replyCompose } from 'soapbox/actions/compose'; import { toggleFavourite, toggleReblog } from 'soapbox/actions/interactions'; import { openModal } from 'soapbox/actions/modals'; import { toggleStatusHidden, unfilterStatus } from 'soapbox/actions/statuses'; -import Icon from 'soapbox/components/icon'; import TranslateButton from 'soapbox/components/translate-button'; import AccountContainer from 'soapbox/containers/account-container'; import QuotedStatus from 'soapbox/features/status/containers/quoted-status-container'; @@ -22,7 +21,7 @@ import StatusMedia from './status-media'; import StatusReplyMentions from './status-reply-mentions'; import SensitiveContentOverlay from './statuses/sensitive-content-overlay'; import StatusInfo from './statuses/status-info'; -import { Card, Stack, Text } from './ui'; +import { Card, Icon, Stack, Text } from './ui'; import type { Account as AccountEntity, @@ -217,7 +216,7 @@ const Status: React.FC = (props) => { } + icon={} text={ = (props) => { return ( } + icon={} text={ @@ -255,7 +254,7 @@ const Status: React.FC = (props) => { } + icon={} text={ Date: Mon, 3 Apr 2023 17:17:03 -0400 Subject: [PATCH 3/9] Update icon color in Group timeline --- app/soapbox/features/group/group-timeline.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/features/group/group-timeline.tsx b/app/soapbox/features/group/group-timeline.tsx index f718b9c87..8ab33e910 100644 --- a/app/soapbox/features/group/group-timeline.tsx +++ b/app/soapbox/features/group/group-timeline.tsx @@ -93,7 +93,7 @@ const GroupTimeline: React.FC = (props) => { onLoadMore={handleLoadMore} emptyMessage={ -
+
Date: Tue, 4 Apr 2023 06:55:33 -0400 Subject: [PATCH 4/9] Fix dark mode animation --- app/soapbox/components/authorize-reject-buttons.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/components/authorize-reject-buttons.tsx b/app/soapbox/components/authorize-reject-buttons.tsx index a785c31ea..a5fddc61a 100644 --- a/app/soapbox/components/authorize-reject-buttons.tsx +++ b/app/soapbox/components/authorize-reject-buttons.tsx @@ -165,7 +165,7 @@ const AuthorizeRejectButton: React.FC = ({ theme, icon, src={isLoading ? require('@tabler/icons/player-stop-filled.svg') : icon} onClick={action} theme='seamless' - className='h-10 w-10 items-center justify-center bg-gray-900' + className='h-10 w-10 items-center justify-center bg-white focus:!ring-0 dark:!bg-gray-900' iconClassName={clsx('h-6 w-6', { 'text-primary-500': theme === 'primary', 'text-danger-600': theme === 'danger', From 11b86ecad6475ba6cb9dcd407cd3ffda8fa26578 Mon Sep 17 00:00:00 2001 From: Chewbacca Date: Tue, 4 Apr 2023 06:57:32 -0400 Subject: [PATCH 5/9] Fix theme selector icon placement Closes https://gitlab.com/soapbox-pub/soapbox/-/issues/1406 --- app/soapbox/features/ui/components/theme-selector.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/features/ui/components/theme-selector.tsx b/app/soapbox/features/ui/components/theme-selector.tsx index 6f35c9673..2532b49b7 100644 --- a/app/soapbox/features/ui/components/theme-selector.tsx +++ b/app/soapbox/features/ui/components/theme-selector.tsx @@ -45,7 +45,7 @@ const ThemeSelector: React.FC = ({ value, onChange }) => {