From 6ef0753a5134ed9cec682142cd4c2b58e6db0184 Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Wed, 9 Aug 2023 05:23:30 +0000 Subject: [PATCH] inbox: Add new narrow. --- templates/zerver/app/index.html | 5 + tools/test-js-with-node | 2 + web/shared/icons/arrow-down.svg | Bin 0 -> 178 bytes web/shared/icons/inbox.svg | Bin 0 -> 1271 bytes web/shared/icons/search-inbox.svg | Bin 0 -> 1153 bytes web/src/bundles/app.ts | 1 + web/src/hashchange.js | 19 +- web/src/hotkey.js | 23 + web/src/inbox_ui.js | 878 ++++++++++++++++++ web/src/inbox_util.js | 51 + web/src/left_sidebar_navigation_area.js | 13 + web/src/message_events.js | 5 + web/src/message_fetch.js | 2 + web/src/message_lists.js | 2 + web/src/message_view_header.js | 7 + web/src/muted_users_ui.js | 2 + web/src/narrow.js | 12 +- web/src/narrow_state.js | 3 +- web/src/stream_color.js | 6 + web/src/stream_events.js | 2 + web/src/ui_init.js | 3 + web/src/unread.js | 35 +- web/src/unread_ops.js | 4 + web/src/user_topics_ui.js | 2 + web/styles/inbox.css | 318 +++++++ web/styles/left_sidebar.css | 7 + web/styles/zulip.css | 41 + web/templates/inbox_view/inbox_list.hbs | 21 + web/templates/inbox_view/inbox_row.hbs | 37 + .../inbox_view/inbox_stream_container.hbs | 10 + .../inbox_view/inbox_stream_header_row.hbs | 14 + web/templates/inbox_view/inbox_view.hbs | 13 + web/templates/left_sidebar.hbs | 11 + web/tests/hotkey.test.js | 2 +- .../left_sidebar_navigation_area.test.js | 10 + 35 files changed, 1550 insertions(+), 11 deletions(-) create mode 100644 web/shared/icons/arrow-down.svg create mode 100644 web/shared/icons/inbox.svg create mode 100644 web/shared/icons/search-inbox.svg create mode 100644 web/src/inbox_ui.js create mode 100644 web/src/inbox_util.js create mode 100644 web/styles/inbox.css create mode 100644 web/templates/inbox_view/inbox_list.hbs create mode 100644 web/templates/inbox_view/inbox_row.hbs create mode 100644 web/templates/inbox_view/inbox_stream_container.hbs create mode 100644 web/templates/inbox_view/inbox_stream_header_row.hbs create mode 100644 web/templates/inbox_view/inbox_view.hbs diff --git a/templates/zerver/app/index.html b/templates/zerver/app/index.html index 9cebb67394..6a07838e29 100644 --- a/templates/zerver/app/index.html +++ b/templates/zerver/app/index.html @@ -237,6 +237,11 @@ +
+
+
+
+