zulip/static
Steve Howell 72e0f2e901 bots: Lift render_bots calls to dispatcher code.
This is mostly a refactoring to break the unnecessary
dependency of bot_data on settings_bots.

This is a bit more than a refactoring, as I remove all
the debounced calls to render bots during the
initialization of bot_data. (The debouncing probably
meant we only rendered once, but it was still needless
work.)

We don't need to explicitly render bots during
bot_data.initialize(), which you can verify by loading
"#settings/your-bots" as the home page. It was just an
artifact of how add() was implemented.

Note that for the **admin** screen, we did not and
still do not do live updates for add/remove; we only do
it for updates. Fixing that is out of the scope of this
change. The code that was moved here affects
**personal** bot settings.

Note that the debounce code is quite fragile. See my
code comment that explains it. I don't have time to go
down the rabbit hole of a deep fix here. The puppeteer
tests would fail without the debounce, even though I
was able to eliminate the debounce in an earlier
version of this fix and see good results during manual
testing. (My testing may have just been on the "lucky"
side of the race.) I created #17743 to address this
problem.
2021-03-22 19:40:06 -07:00
..
assets docs: Fix more capitalization issues. 2020-10-23 11:46:55 -07:00
audio notificaiton_sounds: Add some atonal sounds created by @stwime. 2021-02-05 12:28:20 -08:00
generated
html logo: Update Zulip logo. 2020-07-16 01:37:08 -07:00
images logos: Optimize jotform.svg with svgo 2. 2021-03-04 12:24:25 -08:00
js bots: Lift render_bots calls to dispatcher code. 2021-03-22 19:40:06 -07:00
shared typeahead: Always rank exact string match first. 2021-02-25 17:55:54 -08:00
styles right-sidebar: Fix design bugs with keyboard-shortcuts. 2021-03-22 19:29:46 -07:00
templates left sidebar: Don't show unstar-all button when redundant. 2021-03-18 15:52:06 -07:00
third refactor: Rename filter to linkifier in frontend code and docs. 2021-03-15 11:19:59 -07:00
.gitignore dependencies: Replace moment.js with date-fns. 2021-02-05 11:04:32 -08:00