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
Be able to add + remove labels from webcompat.com #194
Comments
Big +1 to this. Added to the initial form could be good, although maybe hidden behind an "advanced" button perhaps. |
See #196 (comment). I think the chosen multiselect would make for a nice UI to do this: http://harvesthq.github.io/chosen/. We'll need to test how it pans out on mobile though, it seems there are some issues (see harvesthq/chosen#1388). |
@miketaylr you're right. I'm thinking something like that https://dl.dropboxusercontent.com/u/54938109/chosen/index.html . |
According to the FAQs, Chosen is disabled on iPhone and Android anyway: https://harvesthq.github.io/chosen/#faqs |
Yes, on iOS script is disabled, so it's not good for webcompat, Because a simple |
I wonder how terrible I really like the idea of something like https://dl.dropboxusercontent.com/u/54938109/chosen/index.html for Desktop users at least. Perhaps we do something like that for larger non-mobile-ish viewports and then do a simpler version of github's label picker for mobile? Something without the filter wouldn't be too complicated to build. Maybe it's worth starting from that and deciding how it works on Desktop (and if the extra complexity/code of having two mechanisms is worth it). |
That StackOverflow page does say that it's mostly better in iOS 7.1. |
I think of having two mechanisms is a good idea if we have Maybe we can starting to think about the idea of @calexity now : #196 (comment) |
Agreed that detecting when to show native vs chosen will have its share of problems (and ultimately bugs).
Yeah, this kind of thing could be really cool and would give it more of an application feel possibly. I was thinking also of maybe building something like a "popover" (see http://www.pttrns.com/ipad/categories/14-popovers for a bunch of examples): |
Yes, very interesting. |
I like the popover idea @miketaylr - reminds me of how Gmail handles labels. |
Refactored things a bit to make proxying label changes to GitHub more modular: 438c17f. I've got the (uncommitted) backend changes to PUT/POST labels to GitHub in a branch as well. I think I want to pull the labels out of the issue body view and create a view for just labels--this way we can just re-render updates to labels independently of the issue body. And then I can start work on the label UI component, something similar to how Gmail does it I think. |
OK, progress update: Everything should be in place in terms of functionality (minus the bugs I don't know about yet). If you're logged in, you'll see either an "Add" or "Edit" button next to the labels. Open question: do we want to require people to be logged in to add/edit labels? Our bot is actually making the changes in the background on behalf of a user, so we could go either way. So we probably want a smaller button style here. :) That will open the "label editor", which is obviously unstyled here: Adding or removing a label will update the issue label view, but I don't hit the GitHub API until you click Save and Close. Note to self: check that something actually changed before firing off a POST. There's basic filtering in place, which works on a strict match from left to right. So "fi" will match "fire" and "figs", etc. I'm not set on any kind of styling right now, open to all suggestions + improvements. See 0330ad0 for relevant commits. |
wowowow. |
Looking very nice. Just need to do a bit of x-browser testing + tests before pushing to production. |
@miketaylr could you append label editor inside
|
@miketaylr i modified name of Class :
it's ok ? |
@magsout yep, that's great. |
💣 I went ahead and merged this to production. Thanks so much to @magsout for help with design + frontend stuff. Please file new bugs for any issues that we find. |
Right now labels are READYONLY, e.g., http://webcompat.com/issues/122
The solution needs to allow non-repo collabs to set/remove labels (we can use our bot proxy to interact with the API here).
The text was updated successfully, but these errors were encountered: