Reid Barton
949dcbfbc7
Fix inverted logic for autofocus field in set_mode
...
This meant that the "New stream message" button would focus the wrong
text field.
(imported from commit 5e34f0fb936b94b8c1515e915e8059d19feba45e)
2013-01-16 16:04:17 -05:00
Keegan McAllister
6ddbcf4799
gcal-bot: Handle all-day events
...
(imported from commit 7395f2cdd2003b24ce59a1dbdf6f6ae24b6eae6c)
2013-01-16 15:23:36 -05:00
Keegan McAllister
c9a555b605
Nginx: Drop caching directive for /static
...
This might fix problems where users were running old code even after reloading.
(imported from commit dedc4d513f884aa2bafa0c7cc7a817d6715b48a0)
2013-01-16 15:03:40 -05:00
Zev Benjamin
93c706a610
Fix subscriptions page for MIT users
...
Prior to this commit, they weren't able to subscribe or unsubscribe
from streams or change stream colors.
(imported from commit 7f690c724bec3e7e6ba3b45ac7b41d1f7296b6f1)
2013-01-16 15:00:35 -05:00
Zev Benjamin
e6c5b309ce
Use consistent terminology for loading indicators and spinners
...
(imported from commit 54d14c7176e8feb125de253d1bf6205013d53760)
2013-01-16 14:45:23 -05:00
Zev Benjamin
9d27878abf
Destroy spinners with a new abstraction instead of hiding them
...
If you create a spinner in a hidden element and then show the
element, the spinner is placed differently than if you had created
the spinner while the element was visible. This commit makes it so
that we never create spinners while their parent is hidden.
(imported from commit a21e68976d70fcceece30ee35f5e7cf6f9490497)
2013-01-16 14:45:23 -05:00
Zev Benjamin
5e76815c43
Use not-tables for loading indicators
...
(imported from commit 37a18feea4366e66d4e0a42d8f66edc55928c5f7)
2013-01-16 14:45:23 -05:00
Zev Benjamin
beea0f747e
Rename loading_{indicator,spinner} to page_loading_{indicator,spinner}
...
(imported from commit e1222569f62ac693d45d2f057ef6b05c883c900e)
2013-01-16 14:45:23 -05:00
Zev Benjamin
1b1d5ff92a
Use a helper function to create spinners
...
This allows us to use a uniform style across all our spinners. It
also cuts down on boilerplate HTML.
(imported from commit 9879f38e0f1ca8edd40a937753811e329447262d)
2013-01-16 14:45:23 -05:00
Zev Benjamin
03adc138c5
Remove dead CSS
...
(imported from commit fcabfeca475be71c19e326f938e4112bd71794b9)
2013-01-16 14:45:23 -05:00
Reid Barton
2797a41fd8
Automatically subscribe on send when lurking
...
(imported from commit 636c07346e766615a0012e4532f35d328bb7984d)
2013-01-16 14:19:06 -05:00
Reid Barton
64ebbc6c73
Restrict lurk mode compose box stream to the lurk stream
...
(imported from commit f187f619fc77645a294ab4cb90baf802f55d3326)
2013-01-16 14:19:06 -05:00
Reid Barton
3297bd06ae
Give some indication that we're lurking
...
This could stand to be more drastic; perhaps a background color change
like narrow's?
(imported from commit 74136b0cd8696d9f8615b84a233b7430843c3560)
2013-01-16 14:19:06 -05:00
Reid Barton
169fb36674
Don't move the pointer when in lurk mode
...
(imported from commit 6acda4b6d924d605e8ade945e1e4f10ce1e2864e)
2013-01-16 14:19:06 -05:00
Reid Barton
9e23907259
Add "Lurk" mode
...
/?lurk=foo will show all messages to the stream "foo", regardless of
whether you're subscribed.
(imported from commit 049d98b3ee8df19ef0a9dc392ae941dd463f8dd5)
2013-01-16 14:19:06 -05:00
Reid Barton
3c1f08c394
Add --stream option to print-messages, print-next-message API examples
...
(imported from commit aeaf8a111759de59ba87fc7014be86bd13810271)
2013-01-16 14:19:05 -05:00
Reid Barton
ed29f22069
Implement single-stream get_old_messages/get_updates
...
(imported from commit 22a5c4985f36c38cf2490ecf26da294b502f8e46)
2013-01-16 14:19:05 -05:00
Reid Barton
c9e2fed3f9
Preparatory changes to Tornado server for receiving a single stream's messages
...
Doesn't yet add the API for actually doing so.
(imported from commit a2062d71544441256a41f817388bb0c7ea6891ff)
2013-01-16 14:19:05 -05:00
Reid Barton
7b7f6390f9
Add a notion of "public" stream
...
A public stream is one for which any user can view all messages sent
to the stream, regardless of whether the user was subscribed when
those messages were sent.
For now, to avoid a database schema change and to facilitate testing,
public streams are all streams on the customer29.invalid or
humbughq.com realms.
(imported from commit 7a71fd788d585a6f5b3e494e771ec85b632bb36e)
2013-01-16 14:19:05 -05:00
Luke Faraone
d0a5d7f7e2
Serve static content in /dist on app
...
(imported from commit b5850ee1f6c6663a27fee14f430f1fae7b690725)
2013-01-15 19:10:09 -05:00
Zev Benjamin
d3dd0a805a
Inlucde the current user in the people list
...
(imported from commit a596b61a68453126726bd6f56a6c421022e1e395)
2013-01-15 17:40:30 -05:00
Zev Benjamin
14cccd9787
Be more robust when creating names for the subscriber lists
...
(imported from commit fca2c0f2d9dcee4830394c9be5b08ce81379e4a6)
2013-01-15 17:40:30 -05:00
Keegan McAllister
a15a1702e1
search: Only highlight actual message or recipient header text
...
Before, a whitespace-only search would "highlight" the pointer and all kinds of
other interstitial space, which totally broke the page layout.
Fixes #408 .
(imported from commit e7e0e251551a9da5a2ea53e36b9cce16e3e30634)
2013-01-15 17:28:07 -05:00
Waseem Daher
7a6068c3ad
Colorize the stream bar in the composebox based on where we're writing.
...
(imported from commit 8e9bddf465661826d63fe0f79e3f1bd6b903cf4d)
2013-01-15 17:22:47 -05:00
Zev Benjamin
45927e19eb
Rename subscribers list section to "Members"
...
(imported from commit a684200fa66b2e376588a0aa87fa8ee271eedf6d)
2013-01-15 17:02:39 -05:00
Zev Benjamin
0e2401199a
Show full names in stream subscriber lists
...
(imported from commit 6be00256da74db6af9a6dd14e70929679c19db52)
2013-01-15 17:02:39 -05:00
Zev Benjamin
cb8c67b325
Keep a dictionary of user email address to person object
...
(imported from commit 16d63fefff3bda33cfc2f90398539b5e2d9bb499)
2013-01-15 17:02:39 -05:00
Zev Benjamin
26f38065cd
Insert text for the subscriber lists into the DOM as text nodes
...
This effectively escapes the names.
(imported from commit 68cfdaba2376a8863baf7e7325c4d8a77273de7f)
2013-01-15 17:02:39 -05:00
Zev Benjamin
28a2832415
Use get_stream in more places to avoid case-sensitivity errors
...
(imported from commit 9b7109d4e23db4359751b0283025b7ff60e06836)
2013-01-15 17:02:39 -05:00
Zev Benjamin
4ffc6a2de1
When subscribing to streams, send back the canonical stream name
...
(imported from commit 7803409878cca4627447bc64735ad71f56701a5c)
2013-01-15 17:02:39 -05:00
Zev Benjamin
17e92ebe13
Sort the subscription member lists
...
(imported from commit 54457c2cbe971cd8f29f0d682890c18f9ca05bd5)
2013-01-15 17:02:39 -05:00
Zev Benjamin
1d4a34aeba
Clean up stream subscribe/unsubscribe button code
...
(imported from commit ac8fc7058534aaa3fdcb161c2aead4cc397980cf)
2013-01-15 17:02:39 -05:00
Zev Benjamin
044fc61be2
Restrict the get_public_streams query to non-MIT or superusers
...
(imported from commit ede1dff6176e6a39da126948ce307941e6dffaec)
2013-01-15 17:02:39 -05:00
Zev Benjamin
76b1e4778d
Expose get_public_streams to the JSON API
...
(imported from commit 2ef9e000e4cd9fcc075e66d3da9c4bce63d68a4d)
2013-01-15 17:02:39 -05:00
Zev Benjamin
97e7cae796
Rename subs.fetch -> subs.setup_page
...
(imported from commit 385ff00cc5ebaafe9127974471ed2d55f0cdf546)
2013-01-15 17:02:39 -05:00
Zev Benjamin
717513cc07
Only draw a color picker when it is shown
...
(imported from commit 3ad2f3dbc753a1e04429ac365aa1c9d244742cbc)
2013-01-15 17:02:39 -05:00
Zev Benjamin
3442ac05b8
Be more clever about whitespace in typeahead for adding subscribers
...
* Ignore beginning and ending whitespace when submitting the form
* Ignore beginning and ending whitespace when doing autocomplete
* Don't autocomplete on just whitespace
(imported from commit b3231e08f6797a38bafbcef2e694f4bae059c20f)
2013-01-15 17:02:39 -05:00
Zev Benjamin
cd60f18752
Add typeahead to 'add subscriber' input box
...
(imported from commit 49e9a75d3153e1ac97e924a1bdc971df46d6bc10)
2013-01-15 17:02:39 -05:00
Zev Benjamin
5ffc646972
Add control to subscriptions settings to add other users to streams
...
(imported from commit c013c41f288b438e7462f8024b6c1c6e817e06ee)
2013-01-15 17:02:39 -05:00
Zev Benjamin
83b2696b2f
Remove unnecessary form attributes
...
We're submitting the form via Ajax and specifying these attributes
there, instead.
(imported from commit fe5c196e682a0ffe1bcb3ad49e16d211e863de08)
2013-01-15 17:02:39 -05:00
Zev Benjamin
4191d2f024
Use a span instead of headings for subscription setting titles
...
(imported from commit 0453417affe440d411dc018c92c9a41b89b99cd9)
2013-01-15 17:02:39 -05:00
Zev Benjamin
2544cef6bb
Add the ability for users to subscribe others in their realm to streams
...
Right now we mitigate abuse by sending the principal user a Humbug
informing them that they've been subscribed. Longer term, we want
some sort of stream invitation system, instead.
(imported from commit bf1f1ee0c5d3803cead1ddd9a766ff02043b629e)
2013-01-15 17:02:39 -05:00
Zev Benjamin
526abfccc3
[manual] Add Humbug notification bot user
...
The production database will need to have this user created before
this commit is pushed
(imported from commit cc8356d8afa0f0747486b7b4c82337c60499d3fd)
2013-01-15 17:02:38 -05:00
Zev Benjamin
82ac1fb317
Don't render the subscribers list for the mit.edu realm
...
(imported from commit 0577cfd644b55982e8fa0e7bb18cca3f883f8c1f)
2013-01-15 17:02:38 -05:00
Zev Benjamin
67511e2ac6
Show the list of subscribers for each stream on the subscriptions page
...
(imported from commit 1d092f8ad36d48e1f83df185c2b4f2a9667d4943)
2013-01-15 17:02:38 -05:00
Zev Benjamin
45de8fd25b
Add a query to fetch the subscribers of a stream
...
(imported from commit 286bb42980619a3f8e575a4e2984ad1c4b3fe099)
2013-01-15 17:02:38 -05:00
Zev Benjamin
f5e25d2e64
Clear removed_streams when we repopulate the subscriptions table
...
(imported from commit e9f90425b097f54188e4085828a3fed4c4885954)
2013-01-15 17:02:38 -05:00
Zev Benjamin
a1b017eea6
Fetch subs when the subscription page is shown, not when the button is clicked
...
Fixes #643
(imported from commit c28103c6ec787d1cafa9c845d3b6a771f3c12c05)
2013-01-15 17:02:38 -05:00
Keegan McAllister
b5a0147e26
Log events to a file named after today's date
...
We need this so that we can safely expunge old events without interfering with
the running server. See #414 .
(imported from commit 4739e59e36ea69f877c158c13ee752bf6a2dacfe)
2013-01-15 14:37:36 -05:00
Zev Benjamin
3a127871f0
Move search element event handler binding to ui.js
...
This is hopefully a fix for #679
(imported from commit cd82f763d904fd5dbed366e56aca664a1b75c496)
2013-01-15 14:19:32 -05:00