Commit Graph

2361 Commits

Author SHA1 Message Date
Scott Feeney a8c749f62b Use normalize_recipients() when adding message metadata
This change also adds comments to make it clear what the function does
and why it's used.

(imported from commit 68382abaf2d7c41c7de7d92cbf6e7583003aaf2a)
2013-07-26 14:44:30 -04:00
Scott Feeney d11a997dc3 Show space between multiple recipients (#1606)
Also adds a CasperJS test to verify multiple huddle recipients are
displayed properly.

(imported from commit 07f5f5ed30e360ac3f524d89e512bb1f20acaaa7)
2013-07-26 14:44:07 -04:00
Steve Howell 5b066c2289 Added comment to message_tour.js
(imported from commit 498ab9be3d499a1b8dbba97c051fbbd9a5f7290f)
2013-07-26 14:16:36 -04:00
Steve Howell 625003cbe1 Nudge pointer past visited msgs when coming home.
When you return to Home, we normally restore your last
position when in Home, which might have been before the
first unread message.  This is cumbersome for sidebar readers,
so now we keep track of messages that you visit while on a
tour away from Home, and when you return Home, we skip forward
any messages that were in the tour, landing on the last visited
message.  This all happens before rendering.

(imported from commit 9124a231d94f153e283e5ea95e40c50a58406275)
2013-07-26 14:03:55 -04:00
Steve Howell 41f744c3b8 Refactor how we mark a message range as read.
The goal here is to make it so that we can do other stuff with
the range of messages between two subsequent selections, besides
marking them as read.

(imported from commit f6eb07844fb2ccda195c9d4dfcdf1c15f3f40aff)
2013-07-26 13:58:01 -04:00
Steve Howell 6217c1a3be [third] Mouse-enable naturalSearch option in typeahead.
When hover over a typeahead menu item, the semantics have always been
to make it active, and now we also respect the naturalSearch option
there, which will set the text of the search box to the suggestion
immediately upon hover.

(imported from commit 02318d3d830e7e28d638efee0ef27023a73f52f7)
2013-07-26 12:00:30 -04:00
Steve Howell 7a3a3be7e5 [third] Fix sticky hover background color in typeaheads.
See https://github.com/twitter/bootstrap/issues/7392.  I seem to
have fixed it with just the CSS part of their suggested patch.

To repro the bug prior to this fix, enter search, hover over a
typeahead, and then hit the up arrow key.  You'll see two items
appear to be selected.

(imported from commit 383d60a606d7c19344a326208312a1555d060877)
2013-07-26 12:00:13 -04:00
Waseem Daher 647ae655b0 Revert "Don't allow content to overflow out of messageboxes."
This commit broke unread dots, since they're in the .messagebox
but absolutely positioned outside of it (so they got clipped.)

This reverts commit e0071851d2dc7d99c9acd93a1fc6fa1ce0c3b70e.

(imported from commit b3181b3a02cef905cc8f400f8c1cc3c92b5f0e15)
2013-07-26 10:51:18 -04:00
Zev Benjamin b478ccc347 Rename button to regenerate bot api keys
(imported from commit ee7c30d051e7532e4e8091c3bbc6575602ba360f)
2013-07-26 09:14:10 -04:00
Waseem Daher b277e6cc1b Start unread fade sooner.
The total duration of this animation is the exact same, but
it starts immediately - let's see if this feels any better.

(imported from commit de86c259a25adb64514613579476480bdac29cb2)
2013-07-26 09:05:32 -04:00
Steve Howell 91b05ffe88 Make sure stream:x foo suggests stream:x topic:foo
There was some misguided code that eliminated the suggestion when
the user typed out the full topic, and since then there is more
generalized protection against duplicate suggestions.

(imported from commit 857e74458d10995170d312b77d99d839706ae680)
2013-07-25 18:11:50 -04:00
Waseem Daher ed76d14e42 Don't call compose.start twice when on staging.
I'd encourage you all to review this diff thoroughly, since I am not
very familiar with this code. However, it seems to me that, prior to
this commit, if respond_to_cursor is true and page_params.staging is
true, compose.start gets called twice! (once by `respond_to_message`
and once by the "if (page_params.staging)" under the else, after it
returns.)

I eliminate the second call by sticking it inside the first else; now,
as far as I can tell, we call compose.start once and only once.

(imported from commit 319f51392541def358a138c104dd21722b4f8ba8)
2013-07-25 17:53:31 -04:00
Tim Abbott 34267b37b4 Use zulip.com for various links to the app and static content.
(imported from commit c40c994e98e767bb2714b4db655ac73fe92dfcd7)
2013-07-25 17:27:45 -04:00
Tim Abbott 3a1abc3ab0 Rename humbughq.com realm to zulip.com.
(imported from commit 6039719271be1e80fa7f80b9be851c8db7159f5e)
2013-07-25 17:19:18 -04:00
Tim Abbott f7be8a31ab [manual] Rename feedback bot to zulip.com domain.
Just before this is pushed to prod, we need to rename the Humbug feedback
bot in the database using:

./manage.py change_user_email feedback@humbughq.com feedback@zulip.com
/etc/init.d/memcached restart

and we also need to update and restart feedback-bot in its deployed
location.

No action is required on pushing this to staging, but in between when
this is pushed to staging and when it is pushed to prod (and that
transition performed), feedback will not work on staging.

(imported from commit 73fc36f680b978f3aebae5df1822918ae4d4e952)
2013-07-25 17:16:54 -04:00
Steve Howell e8fbe96a62 Suggest streams more aggressively in search.
Before we'd autocomplete d to [stream:design, stream:devel].
Now we also autocomplete stream:d to [stream:design, stream:devel].

(imported from commit d7ecbd032a3414828bf649698d741f0d6a6e3af2)
2013-07-25 16:45:27 -04:00
Waseem Daher 2ed1a8be6a Don't allow content to overflow out of messageboxes.
This helps mitigate the damage caused by hilarious vertical
names like "Puerco (((((())))))" with the vertical parentheses.

(imported from commit e0071851d2dc7d99c9acd93a1fc6fa1ce0c3b70e)
2013-07-25 16:11:57 -04:00
Waseem Daher 4551210b32 "no subject" -> "no topic"
(imported from commit e326e2a19c770599f3f8ca4bec13f93e93d6a1f7)
2013-07-25 16:11:57 -04:00
Steve Howell 6ae9f95de3 Allow users to edit a bot's full name.
(imported from commit fba8ea888d7b76b1ad5c44393ffd8f420f9fe464)
2013-07-25 13:05:38 -04:00
Steve Howell b13efe4ee3 Allow users to regenerate a bot's API key.
(imported from commit 6f91c6099e305d43730c022f0d7881eed5872fa8)
2013-07-25 13:01:06 -04:00
Steve Howell c15c7d7633 Fix whitespace in CSS code
(imported from commit 4b323781a0ef9ef63cd57ada3df8d50985b3f71c)
2013-07-25 12:27:21 -04:00
Steve Howell 3430bc8ff3 Remove unused parameter in get_topic_suggestions()
(imported from commit d32cf560376d2b96b1b974a27158aba5ac6401d3)
2013-07-25 12:17:14 -04:00
Steve Howell 6e0b6dfc24 Organize navigation events in hotkey.js
(imported from commit 2bff0eb8bf7f8f310a5823bc4a569a7b298608c9)
2013-07-24 23:39:35 -04:00
Steve Howell 432f9794cb Extract go_to_row() helper in navigate.js
(imported from commit a2e991c4df4df36a3f1df311a0cc6829eb1c3db2)
2013-07-24 23:39:35 -04:00
Steve Howell fad259d75d Move code from hotkey.js -> navigate.js.
Created up, down, page_up, page_down, to_home, and to_home pretty
mechanically from the old hotkey.code.

(imported from commit 5956b91c2e0122c6440f70db9b92f918c9b599aa)
2013-07-24 23:39:35 -04:00
Kevin Mehall eb6bc91c22 New Relic integration
(imported from commit a108f4c6e90d857263453036f6d5f09279302b7e)
2013-07-24 17:19:36 -04:00
Waseem Daher 04ad610263 Restore old mix-protection mechanism.
This is the moral equivalent of reverting
25ac8c557978a3867eba90d93857d9bd728149e2

(imported from commit dc9ac79c2bed46b836bf666d3718f3bcac11099e)
2013-07-24 17:09:36 -04:00
Waseem Daher 1303327e0c Fix settings dropdown on mobile devices.
Issue reported by user1@customer34.invalid

(imported from commit b3efa08ac7b4249652a6cd0376aa21217c0435fc)
2013-07-24 15:08:40 -04:00
Steve Howell 312452f174 Show 'subset' search suggestions last
(imported from commit 849e151cfeb56b288419e12621d122327e619023)
2013-07-24 13:39:21 -04:00
Steve Howell 782e2d43bf Reverse order of 'subset' search suggestions
(imported from commit 1e5f84e8ea3c5a1ec27eaeaada60db720ccd58cd)
2013-07-24 13:39:21 -04:00
Kevin Mehall f88571f482 Comments documenting the ordering requirements of MessageList._render steps.
(imported from commit 16a493a957e166ee529b9dd8d630cc1717e93456)
2013-07-24 11:48:39 -04:00
Kevin Mehall dfda1d3137 Fix collapse issue introduced by ca50035 while keeping the effect of its fix.
That commit intended to fix a bug where it jumps to the wrong scroll position
(offset by the difference in height from uncollapsed to collapsed) if you load
collapsed messages at the top, either by scrolling up or when it automatically
fetches more 10s after page load, because before, it updated the scroll
position before processing collapsing, which changes the height of messages.

Updating collapsing needs to happen before the viewport is adjusted, but also
needs to happen after the new messages get appended/prepended to the document
because they need to be attached to the document for getClientBoundingRect to
work.

(imported from commit 44d6a6135524e658084ffcf7d880ba898b577e6d)
2013-07-24 11:06:18 -04:00
Jessica McKellar f647596cbb Add a CSS class to unfaded messages.
We already have one for faded messages (which this commit simplifies),
but we also need one on unfaded messages to facilitate styling
experiments.

(imported from commit 41a6e2ef136ce73ce8c24de1e35199244ce56d37)
2013-07-23 21:45:07 -04:00
Kevin Mehall 5f3dcfd104 Make the edit form keep the text in the same place as the normal message.
Trac #1540

    * Make edit content box the same width as normal content
    * Scroll to compensate for the added padding and "Topic" field.
    * Restore the scroll position when exiting edit

It's off by 1px on Firefox 22, but Firefox is simply wrong.

(imported from commit 49154f51b538c648934a41a4a7a217198186ede2)
2013-07-23 18:09:05 -04:00
Tim Abbott 9dbbdb1cdf Avoid get_updates failing to update following bugged update_person events.
(imported from commit 7785277ab967a67135e1bd4aa226a0d64adccaba)
2013-07-23 14:26:33 -04:00
Steve Howell ffa178cf7a Suggest "widening" searches in search autocomplete.
This will allow you to always get Home from the search box,
as well as easily backing out narrows.

(imported from commit 68bcfc83ce0428645f4e734ae46f9589cb562a86)
2013-07-23 13:18:33 -04:00
Jeff Arnold 4b69094ffd For <= 1 message selections, convert emoji into text
<= 1 message selections previously were not being handled
by copy_handler at all

(imported from commit 031ab4ce6db4b1aae4ea202611d09066c87f0faa)
2013-07-23 12:29:52 -04:00
Jeff Arnold ee3806ef5b In the desktop app, paste emoji as text to work around webkit bug
See Trac #1060

(imported from commit 860f16c5a9db626a4fd2d55bcb0dd137e5196560)
2013-07-23 12:25:59 -04:00
Waseem Daher 6cd0b0468d Document Trello integration.
(imported from commit ac28965d1bd0de49a9902c4650e4f5d7835f65cc)
2013-07-23 11:50:31 -04:00
Kevin Mehall 1acc865d19 Don't save the pointer position in the reload after bankruptcy.
(imported from commit b09550d44c0264d7754c47cfd80f1a3639b04b5d)
2013-07-23 11:14:50 -04:00
Steve Howell ba35a7118c Reset search string in ALL cases when you blur the search box.
Until now, we would reset the search string when you aborted
a search, but only if you are in the home view.  Now, we reset
it always.  This makes the search box an accurate reflection of
your narrow.

(imported from commit bed6adce54a55648165c84118d430c44abb5949f)
2013-07-23 10:35:09 -04:00
Steve Howell 65101816d3 Use naturalSearch option for search typeaheads
(imported from commit 0e0b71fbcdb590d40c843ca310100f9fd72e758e)
2013-07-23 10:35:09 -04:00
Steve Howell dc85fa7cf2 Support naturalSearch option in typeahead.
The naturalSearch option immediately updates the search box with
the underlying value of a search suggestion when the user moves to
it.

(imported from commit ad5cb5c2591ef4f71a6d648c8839f288cc125cf7)
2013-07-23 10:35:09 -04:00
Waseem Daher 49619a85dc Give "faded out" messages transparent backgrounds.
This hopefully makes them look less active while still preserving
their readability.

(imported from commit 25ac8c557978a3867eba90d93857d9bd728149e2)
2013-07-22 18:05:40 -04:00
Steve Howell 35c3488bbe Suggest a max of 10 topics in search
(imported from commit 10a70d20edf4f0fe74a1597f46c50e4445cf3da3)
2013-07-22 18:01:27 -04:00
Steve Howell ce4393ef0f Put people-specific search suggestions first
(imported from commit 0daf24af2f91860556dedda9a21f476d1bb3c855)
2013-07-22 17:49:12 -04:00
Steve Howell 369bc02f45 Limit people in search suggestions
(imported from commit 655201100b3a9c39ffd053fd744938b5c5eb75dd)
2013-07-22 17:36:03 -04:00
Steve Howell 8c4982de82 Limit search suggestions to 30
(imported from commit f6c6e6dce11f39fc3fc69d85bd41fbadd78013a0)
2013-07-22 17:36:03 -04:00
Jeff Arnold e35cebd821 Include emoji as plain text in desktop notifications
(imported from commit 26c76ae3420c02b677bcacc4dd0a05797f4f8541)
2013-07-22 16:33:27 -04:00
Jeff Arnold 5190a9692a Hide text for the > icon so that copy paste captures it
Addresses Trac #1296

(imported from commit 650672b971f18b4e1bfb185987768b55504ee1e8)
2013-07-22 16:33:27 -04:00