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
[Outreachy] All Posts Design #8848
Conversation
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.
Code wise everything looks perfect :)
Design wise maybe the dropdown in mobile view leaves a white right margin which can be filled similar to how we see in social media apps.
Thanks @sagarpreet-chadha! Just so I know I've understood, your suggestion is to have a right margin from the dropdown? By maybe pushing the dropdown to the left that will leave some white space on the right? |
Hi, this is looking great. One thing we do on the /tag/outreachy - style pages is to use a Bootstrap style to hide the tab text when on narrower screens: plots2/app/views/tag/show/_nav_tabs.html.erb Lines 6 to 14 in ff3417a
Maybe we can do the same here to get the buttons to line up on one line even on narrow screens? Thanks @RuthNjeri ! This is awesome! Should we be looking to merge anything else before this from your project? Great work! |
app/views/notes/index.html.erb
Outdated
<li class="nav-item"> | ||
<a class="nav-link <% if params[:action] == "recent" %> active <% end %>" href="/notes/recent"> <i class="fa fa-clock-o"></i><span class="hidden-sm hidden-xs"> <%= translation('notes.index.recent') %></span></a> | ||
<a class="nav-link <% if params[:controller] == "notes" %> active <% end %>" href="/notes/" target="_blank"> <i class="fa fa-file"></i><span class="hidden-sm hidden-xs"> <%= translation('notes.index.research_notes') %></span></a> |
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.
Should these be target blank? Perhaps we could have them be regular links? but i'm very open to ideas if you'd like to share your reasoning! Thanks!
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.
Good catch, the research_notes
link should not be target blank.. but I think for the rest of the links it makes sense for them to be since once you click on either question, wikis, or comments
there's no way of going back to the notes section from those pages... unless you go back to the dashboard then click the 'all posts' link which is an extra step for the user in loading and reloading the pages... if this is not a problem, I can remove the target blank from the rest of the links too.
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.
I think we could go with normal links for all, but i see your point too. Maybe we can brainstorm a bit on the UI design for this in follow-up (like, could we put a compact way to navigate back on the other pages? not sure.); i think your solution is good too, but we needn't let this hold us up. Thanks for thinking carefully and being flexible 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.
Alright, I'll remove the target blank and we can follow it up more in the future..
Awesome work, @RuthNjeri - this is very exciting and we're almost done with this section! |
Ah, and it looks like one of the tests changed conflicted with a change from @noi5e -- the notes_controller_test, but I hope it'll be an easy one to resolve. Please reach out if it causes you any trouble though! 🙌 |
Thanks! This PR would need to be merged first, but due to this feedback I'll have to update it before merging. I'll let you know once it's ready to be merged. |
Codecov Report
@@ Coverage Diff @@
## main #8848 +/- ##
=======================================
Coverage ? 81.85%
=======================================
Files ? 100
Lines ? 5934
Branches ? 0
=======================================
Hits ? 4857
Misses ? 1077
Partials ? 0 |
Hi @sagarpreet-chadha I added some responsive styling on the navbar and the sort dropdown, let me know if it looks much better.. |
I think this is good for now! I guess I wonder if a follow-up could show
all the buttons on one line, which may be a different bootstrap style, but
it's not essential for this pr unless you want to.
What's left to complete here before we merge? 🎉🎉🎉
…On Thu, Dec 17, 2020, 9:36 AM Ruth ***@***.***> wrote:
Hi @sagarpreet-chadha <https://github.com/sagarpreet-chadha> I added some
responsive styling on the navbar and the sort dropdown, let me know if it
looks much better..
[image: Screenshot 2020-12-17 at 17 26 54]
<https://user-images.githubusercontent.com/7622875/102501224-3e519600-408e-11eb-920e-1666a6b9b274.png>
[image: Screenshot 2020-12-17 at 17 27 35]
<https://user-images.githubusercontent.com/7622875/102501231-414c8680-408e-11eb-8623-5fdb5250bcf2.png>
[image: Screenshot 2020-12-17 at 17 27 58]
<https://user-images.githubusercontent.com/7622875/102501234-41e51d00-408e-11eb-90af-9661899efbc5.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8848 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAF6J2ZSEH2Q5CHBNJSMH3SVIJNJANCNFSM4U3BWTVA>
.
|
Hi @jywarren I tried the inline style but on the mobile responsiveness for the Galaxy Fold it was overlapping with the Sort Dropdown..I can look at it again tomorrow and let you know... I'll fix the conflicting files right now... |
Ah ok and sure, that seems like good reason not to do more on the
tabs/buttons in this pr as well! Thanks for being so thorough!!!
…On Thu, Dec 17, 2020, 2:42 PM codeclimate[bot] ***@***.***> wrote:
Code Climate has analyzed commit cb0b69d
<cb0b69d>
and detected *0 issues* on this pull request.
View more on Code Climate
<https://codeclimate.com/github/publiclab/plots2/pull/8848>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8848 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAF6J4X5INMVDOPPBHCCWTSVJNKFANCNFSM4U3BWTVA>
.
|
This is great. I guess that means we are good to go to merge now? Thanks Ruth! Just ping me in the chatroom if you are ready to go and we can wrap this one up! |
Code Climate has analyzed commit d057e97 and detected 0 issues on this pull request. View more on Code Climate. |
Hi @jywarren, I've added a responsive design for the inline issue I had with the Galaxy Fold.. Once the tests pass, it should be good to go 🚀 Galaxy Fold Before |
Fantastic!!!! Hooray!!! |
🎉 🎉 🎉 |
* all posts route * add to do item * notes controller * remove previous code and inline comments * remove inline comments * reuse published_notes for popular, recent, liked * implements review feedback * fix order and increase limit * fixed tests * all posts design * revert pagination code * revert pagy code in wiki * remove target blank from research note link * optimize query and add test for hidden response id * update styling * fix tests * styling * remove target blank * add columns in the hidden_response select * all posts route * add to do item * notes controller * remove previous code and inline comments * remove inline comments * reuse published_notes for popular, recent, liked * implements review feedback * fix order and increase limit * fixed tests * revert pagy code in wiki * optimize query and add test for hidden response id * update styling * fix tests * add columns in the hidden_response select * all_posts_route merge * fix failing test * revise node query * all posts route * add to do item * notes controller * remove previous code and inline comments * remove inline comments * reuse published_notes for popular, recent, liked * implements review feedback * fix order and increase limit * fixed tests * revert pagy code in wiki * optimize query and add test for hidden response id * update styling * fix tests * add columns in the hidden_response select * fix failing test * revise node query * add a revision for the hidden note test node * remove trailing whitespace * remove sidebar test * make nav bar links responsive * make navbar responsive * cleanup and styling * nav pills responsive design galaxy fold
* all posts route * add to do item * notes controller * remove previous code and inline comments * remove inline comments * reuse published_notes for popular, recent, liked * implements review feedback * fix order and increase limit * fixed tests * all posts design * revert pagination code * revert pagy code in wiki * remove target blank from research note link * optimize query and add test for hidden response id * update styling * fix tests * styling * remove target blank * add columns in the hidden_response select * all posts route * add to do item * notes controller * remove previous code and inline comments * remove inline comments * reuse published_notes for popular, recent, liked * implements review feedback * fix order and increase limit * fixed tests * revert pagy code in wiki * optimize query and add test for hidden response id * update styling * fix tests * add columns in the hidden_response select * all_posts_route merge * fix failing test * revise node query * all posts route * add to do item * notes controller * remove previous code and inline comments * remove inline comments * reuse published_notes for popular, recent, liked * implements review feedback * fix order and increase limit * fixed tests * revert pagy code in wiki * optimize query and add test for hidden response id * update styling * fix tests * add columns in the hidden_response select * fix failing test * revise node query * add a revision for the hidden note test node * remove trailing whitespace * remove sidebar test * make nav bar links responsive * make navbar responsive * cleanup and styling * nav pills responsive design galaxy fold
* all posts route * add to do item * notes controller * remove previous code and inline comments * remove inline comments * reuse published_notes for popular, recent, liked * implements review feedback * fix order and increase limit * fixed tests * all posts design * revert pagination code * revert pagy code in wiki * remove target blank from research note link * optimize query and add test for hidden response id * update styling * fix tests * styling * remove target blank * add columns in the hidden_response select * all posts route * add to do item * notes controller * remove previous code and inline comments * remove inline comments * reuse published_notes for popular, recent, liked * implements review feedback * fix order and increase limit * fixed tests * revert pagy code in wiki * optimize query and add test for hidden response id * update styling * fix tests * add columns in the hidden_response select * all_posts_route merge * fix failing test * revise node query * all posts route * add to do item * notes controller * remove previous code and inline comments * remove inline comments * reuse published_notes for popular, recent, liked * implements review feedback * fix order and increase limit * fixed tests * revert pagy code in wiki * optimize query and add test for hidden response id * update styling * fix tests * add columns in the hidden_response select * fix failing test * revise node query * add a revision for the hidden note test node * remove trailing whitespace * remove sidebar test * make nav bar links responsive * make navbar responsive * cleanup and styling * nav pills responsive design galaxy fold
* all posts route * add to do item * notes controller * remove previous code and inline comments * remove inline comments * reuse published_notes for popular, recent, liked * implements review feedback * fix order and increase limit * fixed tests * all posts design * revert pagination code * revert pagy code in wiki * remove target blank from research note link * optimize query and add test for hidden response id * update styling * fix tests * styling * remove target blank * add columns in the hidden_response select * all posts route * add to do item * notes controller * remove previous code and inline comments * remove inline comments * reuse published_notes for popular, recent, liked * implements review feedback * fix order and increase limit * fixed tests * revert pagy code in wiki * optimize query and add test for hidden response id * update styling * fix tests * add columns in the hidden_response select * all_posts_route merge * fix failing test * revise node query * all posts route * add to do item * notes controller * remove previous code and inline comments * remove inline comments * reuse published_notes for popular, recent, liked * implements review feedback * fix order and increase limit * fixed tests * revert pagy code in wiki * optimize query and add test for hidden response id * update styling * fix tests * add columns in the hidden_response select * fix failing test * revise node query * add a revision for the hidden note test node * remove trailing whitespace * remove sidebar test * make nav bar links responsive * make navbar responsive * cleanup and styling * nav pills responsive design galaxy fold
Fixes #8829 and #8830
rake test
@publiclab/reviewers
for help, in a comment below