-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
metadata to display on question cards - design discussion #8731
Comments
OK, so let's just swap in the standard plots2/app/views/questions/_questions.html.erb Lines 5 to 12 in 5c23901
This has been marked as a good candidate for becoming a first-timers-only issue like these, meaning that it's simple, self-contained, and with some extra formatting, could be a great entry point for a new contributor. If you're familiar enough with this code, please consider reformatting or reposting it as a first-timers-only issue, and then ping @publiclab/reviewers to get it labelled. Or, if this is not your first time, try to solve it yourself! |
@jywarren like I observed the cards aren't of the same height which is a lot inconsistent in itself. It would be great to add related tags in case the user searches by tags but if the tags become more than 3 and break into a new line, then it'd be too cluttered so maybe we could reduce the tags to the 3 most related? Then only the number of comments and maybe the link icons really matter. Maybe we could remove the others? |
I could come up with a quick design of how I think the cards should look while incorporating gray and smaller meta text size and black colored author. I don't think adding more padding would totally solve the issue of inconsistent card heights. The length of the title is always a factor. Instead, it might be good to explicitly set a maximum number of characters for the title and maybe add a read more link to see the whole title? Not sure about that just suggesting |
|
Hi @karenefereyan I'm so sorry i missed this. Sometimes I don't see a comment for a few days as my main work day is Tuesdays. Thank you for your careful work on this! I think in discussion with @ebarry we settled on the default display (the very top screenshot) as suitable for questions as well. So I think that makes it relatively simple to move forward on! I do think your idea of trying to get the cards to be standard heights is good. But it's a pretty tough challenge - are there sites which achieve this given variations in title length? Thank you! |
I think we can break this into a few pieces and hopefully welcome some newcomers in in the process. I suggest:
@karenefereyan if you are still interested in taking any of these on, that'd be great! Or in creating a |
I thought as much. Its okay. I can understand how busy you must be |
Sure. I can do either. Maybe create an FTO out of it. I'll need help with that though because I've never created one before |
@karenefereyan Its quite simple to create an FTO issue, just check at the top of any issue already created, click on new issue (the green button at the top right corner of the page ) then select fto and follow the steps as describe on the template.its exactly same as creating a check-in ,just that different templates are used. |
I'm eating lunch right now but also happy to help out in the chatroom if you're looking into doing this! https://gitter.im/publiclab/publiclab |
I'll be out of power on my phone soon.I'll look into it tomorrow and contact you @jywarren and @tawahpeggy if I have issues. BTW @jywarren enjoy your lunch |
OK @karenefereyan and thank you @tawahpeggy -- i've completed the first item, and so now the second can be done as a stand-alone. Then 3. If you need help faster next time, please do reach out in the chatroom as I should get a notification faster then! Thanks, everybody! |
anytime @karenefereyan |
Uh oh - actually it looks like our question card formatting in https://publiclab.org/questions was affected by the changes here. I'm reopening just to try to resolve this: Before: Now: I think we need to fix the lazy loading on /questions, probably just by running this: $(function(){
$("img").lazyload();
}); |
Seems this one is resolved. Thanks all |
Just breaking out a discussion from #8479 (comment) on what to display on each card style. Right now, we show a pretty minimal card (re style guide https://publiclab.org/style-guide) for regular posts/notes:
This is driven by the following template: https://github.com/publiclab/plots2/blob/main/app/views/notes/_card.html.erb
Question cards look a little different, unfortunately:
Question cards are driven by a separate template, actually - we should try to make them more consistent, which would include:
Template here:
plots2/app/views/questions/_questions.html.erb
Lines 5 to 12 in 5c23901
Design questions
Note that questions have tags listed. I think this makes them already quite cluttered and that adding a count of comments might make them even a bit harder to read, but we could do it. Is there anywhere else we could reduce clutter to improve readability? Are we still committed to the topics listing on each card?
For reference, look at how posts are displayed on the dashboard. Do we like the amount of info on each item here?
Coding
In any case, instead of making the templates match, we should just start using the regular card template, and add a condition to cover questions:
plots2/app/views/notes/_card.html.erb
Lines 39 to 45 in 5c23901
The text was updated successfully, but these errors were encountered: