Skip to content

Commit

Permalink
WIP inbox: Add "Inbox" page!
Browse files Browse the repository at this point in the history
TODO (before merge?):

- tests
- sorting (of streams; and within a stream, of topics)
- icons:
    https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/design.3A.20.23F117.20.22Inbox.22.20screen/near/1680637
  (that message, and the next)
- currently the whole stream row is tappable to collapse/uncollapse;
  should we limit that to just the area near the
  arrow_down/arrow_right, and have the rest of the row open a
  message list to the stream narrow?
- @-mention indicator next to stream/topic unread badge count
- helper widgets; code structure etc.?
- commit msg. with "fixes" line

Other TODOs to be done in later work are noted in the code.
  • Loading branch information
chrisbobbe committed Nov 13, 2023
1 parent e70bb6d commit efe5156
Show file tree
Hide file tree
Showing 2 changed files with 524 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/widgets/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import 'package:flutter_gen/gen_l10n/zulip_localizations.dart';
import '../model/localizations.dart';
import '../model/narrow.dart';
import 'about_zulip.dart';
import 'inbox.dart';
import 'login.dart';
import 'message_list.dart';
import 'page.dart';
Expand Down Expand Up @@ -249,6 +250,11 @@ class HomePage extends StatelessWidget {
narrow: const AllMessagesNarrow())),
child: const Text("All messages")),
const SizedBox(height: 16),
ElevatedButton(
onPressed: () => Navigator.push(context,
InboxPage.buildRoute(context: context)),
child: const Text("Inbox")),
const SizedBox(height: 16),
ElevatedButton(
onPressed: () => Navigator.push(context,
RecentDmConversationsPage.buildRoute(context: context)),
Expand Down
Loading

0 comments on commit efe5156

Please sign in to comment.