From 4de1b6aeac3e77b8675e1ba5ba407eaa6c3da216 Mon Sep 17 00:00:00 2001 From: klopez4212 Date: Sat, 31 Oct 2026 14:46:57 +0000 Subject: [PATCH] Simplify mobile Solo and DM empty states (#8851) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace the embedded Solo onboarding block with “No chats yet.” Give Solo and DM empty states matching left alignment and spacing below their headings, with softer text at 65% opacity. Validated with mobile formatting, analysis, the full mobile test suite, and a Flutter widget preview measuring equal 16-point gaps below both headings. ### Preview Actual Flutter widgets with sample data; not a device capture. ![Solo and DM empty states with matching spacing](https://github.com/user-attachments/assets/f044b7e5-b1ed-4d83-912d-a0fa119055d4) --------- Signed-off-by: kenny lopez Co-authored-by: Terp <5856f6900e8e0a4e0ea1f4f8d2ee33e4753d2119bc122f94ecafc660b46c0511@buzz.block.builderlab.xyz> --- .../lib/features/channels/channels_page/body.dart | 2 +- .../features/channels/channels_page/sections.dart | 13 +++++++++---- mobile/lib/features/channels/me/me_page.dart | 14 ++++++++++++-- 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/mobile/lib/features/channels/channels_page/body.dart b/mobile/lib/features/channels/channels_page/body.dart index e288030829..0200610f55 100644 --- a/mobile/lib/features/channels/channels_page/body.dart +++ b/mobile/lib/features/channels/channels_page/body.dart @@ -112,7 +112,7 @@ class _ChannelsBody extends StatelessWidget { Grid.gutter, Grid.xs, Grid.gutter, - 0, + Grid.twelve, ), child: Semantics( header: true, diff --git a/mobile/lib/features/channels/channels_page/sections.dart b/mobile/lib/features/channels/channels_page/sections.dart index 4ada819095..d1f1e4a541 100644 --- a/mobile/lib/features/channels/channels_page/sections.dart +++ b/mobile/lib/features/channels/channels_page/sections.dart @@ -367,10 +367,15 @@ class _ChannelSection extends StatelessWidget { top: Grid.half, bottom: Grid.half, ), - child: Text( - emptyLabel, - style: contentListBodyTextStyle.copyWith( - color: context.colors.onSurfaceVariant, + child: Align( + alignment: Alignment.centerLeft, + child: Text( + emptyLabel, + style: contentListBodyTextStyle.copyWith( + color: context.colors.onSurfaceVariant.withValues( + alpha: 0.65, + ), + ), ), ), ) diff --git a/mobile/lib/features/channels/me/me_page.dart b/mobile/lib/features/channels/me/me_page.dart index 2073819fc1..a0aab7e990 100644 --- a/mobile/lib/features/channels/me/me_page.dart +++ b/mobile/lib/features/channels/me/me_page.dart @@ -270,8 +270,18 @@ class MePage extends HookConsumerWidget { if (sliver && visible.isEmpty && organization.groups.isEmpty) SliverToBoxAdapter( child: Padding( - padding: const EdgeInsets.all(Grid.gutter), - child: _MeEmptyState(onNewChat: newChat), + padding: const EdgeInsets.symmetric( + horizontal: Grid.gutter, + vertical: Grid.half, + ), + child: Text( + 'No chats yet', + style: contentListBodyTextStyle.copyWith( + color: context.colors.onSurfaceVariant.withValues( + alpha: 0.65, + ), + ), + ), ), ), ];