-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make default_streams web controllable #817
Make default_streams web controllable #817
Conversation
Automated message from Dropbox CLA bot @hackerkid, it looks like you've already signed the Dropbox CLA. Thanks! |
@timabbott Please review |
Playing around with creating a new stream and then trying to add it as a default stream in Chrome, one gets an ugly overlap of the browser's native autocomplete with the default streams autocomplete. We should probably just disable browser autocomplete in this text box. |
streams = do_get_streams(user_profile, include_public=include_public, | ||
include_subscribed=include_subscribed, | ||
include_all_active=include_all_active, | ||
include_default=include_default) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whitespace looks wrong here
Otherwise the UI looks pretty good; thanks for building this @hackerkid! Can you add some Casper frontend tests for the admin UI for this feature? |
@timabbott Yeah. Sure. Working on it. |
37939c1
to
cbe10bd
Compare
@timabbott Added the tests. Please review. |
fb9c1b7
to
88163b8
Compare
@timabbott Fixed the merge conflicts. |
a35a92a
to
636a8ce
Compare
@hackerkid can your rebase to resolve the merge conflicts? Looks like just a small conflict with something else I merged yesterday. Also, I notice that this adds a ton of tab-based whitespace, which we don't allow in the Zulip codebase (and triggers linter errors); you'll want to fix those (and configure your editor to not introduce them!). (Oh, looks like you fixed those in later commits -- can you squash the fixes into the commits that introduced the bugs? In this case I think you can probably just squash everything into a single commit). I'll take a look at the code as well, so you can fix all the issues in one batch. |
casper.click('#settings-dropdown'); | ||
casper.click('a[href^="#administration"]'); | ||
var stream_name = "Scotland"; | ||
get_suggestions("O"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you pass "0" here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@timabbott It matches with all the stream names which has the 'O' as a substring (Rome, Scotland, Verona etc). I used 'O' to make sure that it works even if there are multiple suggestions.Capital 'O' is used instead of small 'o' to make sure that the suggestions are not case sensitive. I can change into Scotland if you want.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh, OK, got it-- I misread it as a zero. Can you just add a comment with that explanation of the reasoning on the line above this?
@hackerkid thanks for working on this, it's looking really good; I posted a bunch of comments on little optimizations to make this match the Zulip Python style, cleaner and more performant, but I'm excited about the progress on this! |
f127206
to
887298c
Compare
@timabbott Made the changes as you suggested. Please check. |
Cool, this is looking pretty good! I played around with this and found one more bug:
|
Also, the first of the two commits should include the hunk that deletes |
37e1d6f
to
a64de6d
Compare
@timabbott Fixed both the issues. Please check. |
@hackerkid this looks great! I merged the first commit, and I think there's just one thing this still needs:
Once that's done (and issues are resolved), we can merge this! I'm super excited about this feature. |
b7a15ea
to
d5344c0
Compare
@timabbott I have added a test for |
Test looks great! But I noticed a few more improvements we can make to the templates:
(Sorry I didn't catch these in the last round of review!) |
Also, a small note, you should add |
@timabbott Sure. Will do that. |
d8e742c
to
b85bc65
Compare
@timabbott Fixed the issues. Please check. |
Can you rebase on top of master so the Travis CI tests will rerun post-rebase? |
b85bc65
to
8345eca
Compare
@timabbott Done 👍 |
8345eca
to
d9b373e
Compare
d9b373e
to
28b2682
Compare
Awesome, thanks @hackerkid, I've merged this. I'm very excited -- this feature is a key part of the Zulip 2016 roadmap :) |
@timabbott I am also excited to see this getting merged. 😄 |
Fixes: #665