zulip/static
Steve Howell e040721090 refactor: Extract huddle_data.js.
This makes it so that search_suggestion.js
does not depend on activity.js.

That dependency hasn't really been "elegant"
for quite some time, but it will become particularly
unnecessary when we go to remove the "Group PMs"
section from the right sidebar.

This commit introduces a temporary wart
where we have these two functions with the
same name in a sort of unnecessarily
complicated code stack:

    activity.process_loaded_messages
    huddle_data.process_loaded_messages

But we will eliminate the former function
very soon, and our message-related codepaths
will just call the `huddle_data` version
directly.

TESTING NOTES:

Now that `huddle_data` is a tiny leaf
module, it's super easy to just use the
real implementation of what was formerly
called `activity.get_huddles()` (and is
now in `huddle_data`).

When I first wrote this commit, introducing
the real implementation of `get_huddles` exposed
some bugs that I fixed in the immediately
prior commits to this.

When the tests were originally written,
I believe `activity.js` had some annoying
`jQuery` dependencies that made it hard
to unit test against.  We've slimmed it over
time to be mostly just a "controller" module.
But even in its current state it would have
been a bit of a bloated dependency.

The other friction for using the actual
version of `get_huddles` was setting up
the message data, but that's pretty minor.
2020-05-26 21:26:11 -07:00
..
assets styles: Finish removing manual antialiasing configuration. 2019-08-30 14:51:52 -07:00
audio
generated
html static: Serve webpack bundles from the root domain. 2020-04-10 00:48:02 -07:00
images integrations: Add bot avatar for grafana. 2020-05-11 01:07:44 -07:00
js refactor: Extract huddle_data.js. 2020-05-26 21:26:11 -07:00
shared typeahead: Convert to ES6 module. 2020-02-19 14:36:42 -08:00
styles settings: Fix streams tab-switcher misalignment for iPad size devices. 2020-05-26 15:25:01 -07:00
templates i18n: Translate Unmute in muted topics UI. 2020-05-25 18:26:36 -07:00
third markdown: Add timestamp syntax to markdown processors. 2020-05-20 14:23:55 -07:00
.eslintrc.json lint: Delegate console.log check to ESLint. 2020-02-07 14:09:47 -08:00
.gitignore team: Generate team page data using cron job. 2020-04-08 12:52:31 -07:00
favicon.ico