Steve Howell
0a21b9b294
Simplify test-all: just use the script names as banners.
...
(imported from commit 20e48c468a5ccae63c64385dc114a4f8c892fc61)
2013-08-09 13:04:52 -04:00
Steve Howell
cf1d94edef
Add a test for stream_color.js (pick_color).
...
(imported from commit a49f96a4a7b61ef51c057e8a3f11c116d77ebb49)
2013-08-09 12:29:02 -04:00
Steve Howell
cef72fd8b8
Add tests for the Filter class.
...
(imported from commit ef0917bd7911c5cc6f6d20d356c156d483ba723f)
2013-08-09 12:04:43 -04:00
Steve Howell
cc73619a9d
Add unit tests to narrow.js.
...
This includes slightly invasive, but harmless, changes to
production code.
(imported from commit 847557c11088b75c836cc399d0af75353a8faa3a)
2013-08-09 11:59:32 -04:00
Steve Howell
509c3b4dc3
Send the full first line of the commit message to Zulip.
...
(imported from commit accafb1cd2fa64ad1377d0fc72ff8f89c1806d3b)
2013-08-09 10:45:20 -04:00
Steve Howell
48b4fed555
Use _.where and _.pluck in subs.subscribed_streams().
...
(imported from commit b6ff77f3d762c88ed6f04c9eb9ca9135b6eeb8ca)
2013-08-08 19:09:14 -04:00
Steve Howell
9c994265c6
Randomize stream color assignments.
...
This fixes trac #1357 , which says that some users get annoyed
when the system keeps generating the same color for them, which
would happen if they didn't like #76ce90 and kept picking a
new color for their streams.
(imported from commit 0fdb726aad4009332cc056a5e98bb39e01ef414c)
2013-08-08 18:22:44 -04:00
Steve Howell
7d67716c21
Simplify code to generate new stream colors.
...
Instead of splicing up a cloned copy of stream_assignment_colors
every time somebody uses a color, we just rebuild a hash
of used_colors from our subscribed streams when we need to assign
a color, and we avoid calling into stream_color.pick_color() when
a stream already has a color.
This change has a slight functional impact in the situation where
a user unsubscribes some streams during their session, because
we weren't "reclaiming" colors before on unsubscription, but the
simple approach gets that for free.
(imported from commit adf360365bdf1ae9db99c533a0bde62d91f5dfe8)
2013-08-08 18:22:44 -04:00
Steve Howell
e36fd929bc
Created stream_color.js.
...
This is a pure refactoring that mostly just moves code from
subs.js to the new stream_color.js and updates module references
accordingly. In order to prevent introducing some exports,
update_stream_color was given an additional "sub" parameter
and update_stream_sidebar_swatch_color was given an "id"
parameter.
Killed off unused initial_color_fetch var.
(imported from commit b7644ce67f50d31fb46f564d758d661eea776aa6)
2013-08-08 18:22:44 -04:00
Kevin Mehall
2dfcd7876d
Copy only specified properties from messages to summary row fake messages.
...
See previous commit message for why.
(imported from commit 53241f3aab3ec48a90cd9a280a0e5ec4a19e33cd)
2013-08-08 17:54:52 -04:00
Kevin Mehall
5d65de9b82
summarize-experiment: Fix an uncommon case that breaks rows.get().
...
One of the ugly parts of message_list.js is how it re-uses the message objects
from the server to hold handlebars template parameters. These objects are
shared between different message lists and re-renders, but are mutated by the
rendering process. The `dom_id` attribute is normally unset on summary rows,
and should not be used in the template. But when a message comes in with a
`dom_id` from another render, it can end up on the summary row, breaking
`rows.get()`.
(imported from commit ef6af65d5e995dffbd7234547786d6ea861920da)
2013-08-08 17:54:52 -04:00
Steve Howell
50b28dec49
Add node-based unit tests for util.js.
...
(imported from commit df666a5b96d378787e911c2cd6e509b7d42e1cb4)
2013-08-08 17:25:24 -04:00
Waseem Daher
49849a214f
New onboarding step: Set up an integration.
...
(imported from commit 2c6cc6f703e893b44b2871c9510e858743d417ad)
2013-08-08 17:23:27 -04:00
Waseem Daher
1e92b17b1a
Replace "Get the app" popup with a link.
...
The popover had a tendency to be obnoxious and hard to close.
This fixes Trac #1661 .
(imported from commit d0ad8bd5b643abd9e7add76bc029458dacbd76cf)
2013-08-08 17:23:27 -04:00
Steve Howell
8eb15a5436
Don't show inactive users as stream subscribers.
...
This fixes trac #1660 . A deactivated user may still have the
active flag set to "true" on their subscriptions, but this is
just to help future reactivations; they are not actually
valid subscribers while deactivated, so we add UserProfile.is_active
to our filter in the query in get_subscribers_backend().
(imported from commit 8598b2e180faea618371293e42b794898e645004)
2013-08-08 16:29:18 -04:00
Steve Howell
71e138b1aa
Suggest more topics.
...
Examine up to 300 topics for search suggestions.
(imported from commit 8d52dd4d857818dcf59222bfdd956ee800342894)
2013-08-08 14:53:11 -04:00
Steve Howell
626a737973
[important fix] Restore buddy list.
...
(There was an extra </div> tag.)
(imported from commit 500114eea1c93264ea590e6c7a9c0b1bacfb9710)
2013-08-08 13:19:01 -04:00
Kevin Mehall
9be559858e
Summarization style improvements
...
(imported from commit 4029d96d60cae0c6856067a696a842c39f4248e3)
2013-08-08 13:04:01 -04:00
Kevin Mehall
e03f3dabc1
Make Enter on a summary row expand it.
...
(imported from commit 4ad44a96a225f6cfbb7d4f62ebf7c62298dd730b)
2013-08-08 13:04:01 -04:00
Kevin Mehall
5f48eebc8a
Separate hotkeys that require messages from those that don't.
...
Fixes the blueslip error on "i" in empty narrow.
Also removes a then-uncessary check from do_narrow_action as suggested
by acrefoot.
(imported from commit 10b1f702b535b4eef54e500ccef93b6a5280e953)
2013-08-08 13:04:01 -04:00
Kevin Mehall
2664002dec
Make summary rows selectable.
...
We represent summary rows by the ID of their first message for
for selection purposes.
(imported from commit 9f3c4d23f6b1295b117d5197e214de983bb2cc20)
2013-08-08 13:04:01 -04:00
Steve Howell
6f49f13b03
Use 2-space indents consistently in settings.html.
...
(imported from commit eb8bb4b5078db29b65ba5c40989651151275dea3)
2013-08-08 13:03:10 -04:00
Steve Howell
722c1b1a43
Allow user to change their API key.
...
(imported from commit b7c50779d0209c6e6600b59c8760a81273fe2454)
2013-08-08 13:03:09 -04:00
Steve Howell
164215bc78
Support API for changing user's API key.
...
(imported from commit b9f5594cf809965c996115c8420a359820dad3ff)
2013-08-08 13:03:09 -04:00
Steve Howell
0b4c37ef8d
Autocomplete names w/spaces in search.
...
See trac #1356 .
(imported from commit 6aaf122c0f6d7b1d92bb074e8f3fbb93d0b63ceb)
2013-08-08 12:54:20 -04:00
Kevin Mehall
0b9497305f
Add defensive checks against undefined messages to _is_summarized_message.
...
Should fix the issue with empty realms.
(imported from commit afca70ebf3b7b74ae0d0c269c72b4f8d54fc254b)
2013-08-08 12:47:23 -04:00
Waseem Daher
aa29719bbd
Update zephyr_mirror instructions slightly.
...
(imported from commit 0660dfdd1ba16179c88d750f9d319603234d2480)
2013-08-08 12:09:22 -04:00
Tim Abbott
492a117292
Fix /zephyr page not being converted properly.
...
(imported from commit cf1e57b04a1dad4b33ace7705ed31075c48f2103)
2013-08-08 11:48:23 -04:00
Waseem Daher
7517cd8ad8
Slightly more compact "summarized messages" format.
...
(imported from commit 3870be2bc88145ea07c8bdb54309df201d617237)
2013-08-08 11:36:27 -04:00
Tim Abbott
a8d553bd10
post-receive: Properly encode unicode argument.
...
(imported from commit adc94a100462a8a2de0be8c05e60c0e33180e50d)
2013-08-08 10:32:16 -04:00
Tim Abbott
9181c7c75b
Move generate-fixtures to tools/.
...
(imported from commit 3d452b17e315ba9adf91e33408a7711d16b069a2)
2013-08-08 10:22:32 -04:00
Tim Abbott
aefaca8f73
Update trac configuration from prod server.
...
(imported from commit 3a671e629e6ab9e8d7efece0370eda9cea415363)
2013-08-08 10:22:32 -04:00
Tim Abbott
87f8c9333c
Rename Humbug => Zulip in app screenshot filenames.
...
(imported from commit a1a753143e77e0efd1de727378d505815a6d44d3)
2013-08-08 10:22:32 -04:00
Tim Abbott
e00efa4665
Rename Humbug-based variables in check-mirroring.
...
(imported from commit cdfc9a1c15db7bd6de099e6403dc65bfaff337b0)
2013-08-08 10:22:32 -04:00
Tim Abbott
b4d74b4fbc
Rename /usr/local/share/humbug/ to /usr/local/share/zulip/.
...
(imported from commit 6b5d13b36f96c7174e70ce1391f1d66724c45a62)
2013-08-08 10:22:32 -04:00
Tim Abbott
1fcb389494
Rename Humbug-based variables/paths in twitter search plugin.
...
(imported from commit a5e1df1f6c58321974c34bacb7515672be55e88e)
2013-08-08 10:22:32 -04:00
Tim Abbott
c2acea78cc
Rename Humbug-based variables/paths in twitter plugin.
...
(imported from commit fcb6332d0d1293044f17e841cd78e4f91de5dd30)
2013-08-08 10:22:31 -04:00
Tim Abbott
848e5258c7
Rename Humbug-based variables/paths in rss plugin.
...
(imported from commit 40b71946752dc323eff8bfe9a03b167bd83c563d)
2013-08-08 10:22:31 -04:00
Tim Abbott
f137fa833b
Rename Humbug-based variables/paths in jira plugin.
...
(imported from commit a4596acc5c2d8da5cecad772e9cda5a371189299)
2013-08-08 10:22:31 -04:00
Tim Abbott
aba11be192
Rename Humbug-based variables/paths in svn plugin.
...
(imported from commit 43a9282ad86546fb59e91c36e97a595e51789d07)
2013-08-08 10:22:31 -04:00
Tim Abbott
94f8933b8d
Rename Humbug-based variables/paths in git plugin.
...
(imported from commit e153c7a1a68e82dd3fa45251644be74c62770a9d)
2013-08-08 10:22:31 -04:00
Tim Abbott
e8f1a349b8
Add Zulip Nagios integration to puppet.
...
(imported from commit 62b53e4f8a31ec8ab21d5bb5435a320c8e4eab95)
2013-08-08 10:22:31 -04:00
Tim Abbott
53a47e8534
Rename Humbug-based variables/paths in Nagios plugin.
...
(imported from commit fe8e33241215ea880f7351c3c86b0fb546faf8d3)
2013-08-08 10:22:31 -04:00
Tim Abbott
3005792734
Rename Humbug-based variables in Trac plugin.
...
(imported from commit 5d406cb6c5fe7b1fbd4da706f7ac6bb6e381cadb)
2013-08-08 10:22:31 -04:00
Tim Abbott
6550134b3e
Rename humbug_*_config.py to zulip_*_config.py.
...
(imported from commit a1d4dd22c59f812f0eb4875dc70c89ce96a4b90c)
2013-08-08 10:22:31 -04:00
Tim Abbott
03293b7be9
Rename humbug-send to zulip-send.
...
(imported from commit 61400841f8fffe4c706d867aaa012059bcba271d)
2013-08-08 10:22:31 -04:00
Tim Abbott
747a9c536f
Rename the 'humbug' API module to 'zulip'.
...
(imported from commit b3a3d7c05459cbb0110cd0fbe2197d779f3a6264)
2013-08-08 10:22:31 -04:00
Tim Abbott
2ea1bb05a5
Rename ~/.humbugrc to ~/.zuliprc.
...
(imported from commit a0d53dd20097a56971874dc1d84c6f95267e84f2)
2013-08-08 10:22:31 -04:00
Jessica McKellar
d6c87f35e2
Move domain validation from a form field validator to a data cleaning check.
...
We need to be able to let a user through if they are trying to sign up
for a completely open realm like CUSTOMER3.
(imported from commit 1e33ab0ce94545f217739d501e9227dfb48e1123)
2013-08-08 10:12:22 -04:00
Jessica McKellar
99b2a90440
Move completely_open to models.py.
...
It will have new callers soon and that's as fine a place as any to
avoid circular imports.
(imported from commit 089a724e9ad06cb5a51ffe80f1729d789238e5f6)
2013-08-08 10:12:22 -04:00