zulip/zerver
Aman Agrawal e587c029f6 display_settings: Allow user to set default_view.
TextField is used to allow users to set long stream + topic narrow
names in the urls.

We currently restrict users to only set "all_messages" and
"recent_topics" as narrows.

This commit achieves 3 things:
* Removes recent topics as the default view which loads when
  hash is empty.
* Loads default_view when hash is empty.
* Loads default_view on pressing escape key when it is unhandled by
  other present UI elements.

NOTE: After this commit loading zulip with an empty hash will
automatically set hash to default_view.  Ideally, we'd just display
the default view without a hash, but that involves extra complexity.

One exception is when user is trying to load an overlay directly,
i.e. zulip is loaded with an overlay hash. In this case,
we render recent topics is background irrespective of default_view.

We consider this last detail to be a bug not important enough to block
adding this setting.
2021-03-11 18:09:08 -08:00
..
data_import import/export: Fix deprecated authentication method for Slack. 2021-03-08 12:56:37 -08:00
lib markdown: Re-enable typeshed stub for Python-Markdown. 2021-03-10 11:49:59 -08:00
management python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
migrations display_settings: Allow user to set default_view. 2021-03-11 18:09:08 -08:00
openapi display_settings: Allow user to set default_view. 2021-03-11 18:09:08 -08:00
templatetags python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
tests display_settings: Allow user to set default_view. 2021-03-11 18:09:08 -08:00
tornado docs: Add a document explaining email/push notifications. 2021-03-05 15:24:25 -08:00
views display_settings: Allow user to set default_view. 2021-03-11 18:09:08 -08:00
webhooks webhooks: Fix spelling of milliseconds. 2021-03-05 12:22:50 -08:00
worker invites: Delete old compat code in the invites queue worker. 2021-02-26 08:26:43 -08:00
__init__.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
apps.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
context_processors.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
decorator.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
filters.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
forms.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
logging_handlers.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
middleware.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
models.py display_settings: Allow user to set default_view. 2021-03-11 18:09:08 -08:00
signals.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00