• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zulip / zulip-mobile / 8111
65%

Build:
DEFAULT BRANCH: master
Ran 25 Jan 2019 01:55AM UTC
Jobs 1
Files 364
Run time 34s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
8111

push

travis-ci

gnprice
compose box: Narrow the scope of the debounce-focus hack.

We pay attention to whether the message *or* topic input is focused,
and we have a bit of a hack to deal with the fact that when the user
moves focus from one to the other the `blur` event comes before
`focus`: on blur, we wait 200ms before doing anything about it, to
give time for a `focus` to show up on the other input.

But currently this hack has some collateral damage:

 * Because autocomplete popups also consult `is*Focused` to decide
   whether they should be visible, the hack causes them to lag when
   the user moves focus to the message list, or between inputs.

 * Because this logic is a little subtle and is not at all made clear
   in the code, we've wound up with changes to `isMenuExpanded` being
   delayed by the same 200ms.  This causes the closing of the menu to
   lag when the user moves focus to the message list.

Fix these by letting `isMessageFocused` and `isTopicFocused` promptly
reflect the truth of whether the message and topic inputs,
respectively, really are focused.  Make a separate state property for
the debounced "or" of them, and limit the delay to just updating that
one property.

1409 of 2929 branches covered (48.11%)

Branch coverage included in aggregate %.

4844 of 6591 relevant lines covered (73.49%)

16.67 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8111.1 (COVERALLS_REPO_TOKEN=4eYQDtWoBJlDz2QkxoQ2UcnmJFcOB7zkv) 25 Jan 2019 01:55AM UTC 0
65.68
Travis Job 8111.1
Source Files on build 8111
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #8111
  • 676b502d on github
  • Prev Build on master (#8110)
  • Next Build on master (#8113)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc