From af2a49d3098db5fd70792218557735498a8fc974 Mon Sep 17 00:00:00 2001 From: Echo Date: Mon, 21 Sep 2026 13:06:42 +0000 Subject: [PATCH] Status redesign: Single page and threading (#40625) --- .../mastodon/components/formatted_date.tsx | 9 +- .../mastodon/components/status/action_bar.tsx | 20 +- .../mastodon/components/status/meta.tsx | 125 +++++---- .../components/status/prepend.module.scss | 7 +- .../mastodon/components/status/status.tsx | 17 +- .../components/status/styles.module.scss | 30 +- .../default_should_update_scroll.tsx | 7 +- .../scroll_container/scroll_context.tsx | 5 +- .../mastodon/features/status/index.tsx | 18 ++ .../features/status/{index.jsx => legacy.jsx} | 0 .../features/status/redesign.module.scss | 38 +++ .../mastodon/features/status/redesign.tsx | 263 ++++++++++++++++++ app/javascript/mastodon/hooks/useStatus.ts | 35 ++- app/javascript/mastodon/locales/en.json | 5 +- app/javascript/mastodon/selectors/contexts.ts | 5 +- app/javascript/mastodon/selectors/statuses.ts | 3 +- 16 files changed, 497 insertions(+), 90 deletions(-) create mode 100644 app/javascript/mastodon/features/status/index.tsx rename app/javascript/mastodon/features/status/{index.jsx => legacy.jsx} (100%) create mode 100644 app/javascript/mastodon/features/status/redesign.module.scss create mode 100644 app/javascript/mastodon/features/status/redesign.tsx diff --git a/app/javascript/mastodon/components/formatted_date.tsx b/app/javascript/mastodon/components/formatted_date.tsx index cc927b08737..5514f370bcc 100644 --- a/app/javascript/mastodon/components/formatted_date.tsx +++ b/app/javascript/mastodon/components/formatted_date.tsx @@ -2,12 +2,13 @@ import type { ComponentProps } from 'react'; import { FormattedDate } from 'react-intl'; -export const FormattedDateWrapper = ( - props: ComponentProps & { className?: string }, -) => ( +export const FormattedDateWrapper = ({ + className, + ...props +}: ComponentProps & { className?: string }) => ( {(date) => ( -