plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

[Planning] New Dashboard Implementation Project (Outreachy)

Open cesswairimu opened this issue 6 years ago • 58 comments

This is an edit update made by @RuthNjeri:

Hi👋🏾 , I'll be working on the new dashboard design implementation. Components from the /tags page will be reused for the new design. Feel free to share any feedback, comments, or concerns. The text below is highly based on my Outreachy proposal with some updates.

Break Down

All Posts Page

  • [X] Optimize the notes page that will display 'All posts' https://github.com/publiclab/plots2/issues/8828
  • [X] Write functional and unit tests for the notes page https://github.com/publiclab/plots2/issues/8828
  • [x] Implement the design for the 'All Posts' page (/notes)..refer to these notes. https://github.com/publiclab/plots2/issues/8829
  • [x] Implement/Ensure mobile responsiveness in the 'All Posts' page https://github.com/publiclab/plots2/issues/8830
  • [X] Implement/Ensure mobile responsiveness in the Research notes section https://github.com/publiclab/plots2/issues/8830

These will be addressed individually during each page redesign

  • [X] Implement/Ensure mobile responsiveness in the Questions section https://github.com/publiclab/plots2/issues/8830
  • [X] Implement/Ensure mobile responsiveness in the Wiki pages section https://github.com/publiclab/plots2/issues/8830
  • [X] Implement/Ensure mobile responsiveness in the Comment section https://github.com/publiclab/plots2/issues/8830

Dashboard Page

  • [x] Create the new 'Dashboard' URL /dashboard2 https://github.com/publiclab/plots2/issues/8831
  • [x] Implement the new Dashboard design..refer to these notes https://github.com/publiclab/plots2/issues/8832
  • [x] Ensure that the dashboard page is mobile responsive by also collapsing the Follow more topics sidebar https://github.com/publiclab/plots2/issues/8833
  • [x] Display the Blog topic pinned at the top of the dashboard topics list https://github.com/publiclab/plots2/issues/8834
  • [x] Ensure that the Blog topic card does not have an X to dismiss it https://github.com/publiclab/plots2/issues/8834
  • [x] Allow user to subscribe to blog updates via the blog topic card by email https://github.com/publiclab/plots2/issues/8835
  • [x] Display a list of topics a user has subscribed to excluding the blog..refer to this for more insight. https://github.com/publiclab/plots2/issues/8837
  • [x] Add a link to the 'All Posts' page on the Dashboard page https://github.com/publiclab/plots2/issues/8837
  • [x] Add trending topics at the bottom of the page https://github.com/publiclab/plots2/issues/8841
  • [x] Ensure that the topic cards are aligned to resolve odd line folding..refer to this for more information. https://github.com/publiclab/plots2/issues/8953
  • [x] Display Welcome text and suggestion for a new user on the Dashboard. https://github.com/publiclab/plots2/issues/8954
  • [x] Small style adjustments for new dashboard https://github.com/publiclab/plots2/issues/8999
  • [x] Ensure that the Topic Cards do not double display notes by using shown_nids in the TopicCard view https://github.com/publiclab/plots2/issues/8997
  • [x] Replace Tag.count with the method that calculated the total number of notes in a post https://github.com/publiclab/plots2/issues/8997
  • [x] Add Featured Topics On The Dashboard https://github.com/publiclab/plots2/issues/8956
  • [x] Ensure Follow Text at the top and bottom of the page links to /subscriptions https://github.com/publiclab/plots2/issues/8965
  • [x] Removing already subscribed topics in the trending section https://github.com/publiclab/plots2/issues/8957
  • [x] Add number of wikis to the topic card https://github.com/publiclab/plots2/issues/8992
  • [x] FTO: Add a link that leads to the feature page for admins https://github.com/publiclab/plots2/issues/8839 https://github.com/publiclab/plots2/pull/9031#issuecomment-762425003
  • [x] Add mobile responsiveness to the section Follow Text at the bottom of the page https://github.com/publiclab/plots2/issues/9039
  • [x] Implement a typeahead search on the 'Follow more topics section' https://github.com/publiclab/plots2/issues/8838
  • [x] Remove empty topics from the dashboard https://github.com/publiclab/plots2/issues/8964
  • [x] Ensure the @tag_subscriptions doesn't make the trending function fail if it is empty. https://github.com/publiclab/plots2/issues/9034
  • [x] Ensure that the 'Add location' button is working as expected. This may require issue https://github.com/publiclab/plots2/issues/8566 to be fixed first. https://github.com/publiclab/plots2/issues/8840
  • [x] Filter out Power Tags https://github.com/publiclab/plots2/issues/9125
  • [x] Sidebar Styling https://github.com/publiclab/plots2/issues/9166
  • [x] Update Tag model timestamp if an activity is created or modified https://github.com/publiclab/plots2/issues/9160
  • [x] Add a new comment bullet on a topic card if a new comment exists https://github.com/publiclab/plots2/issues/9203
  • [x] When a wiki is added or edited or when a comment is added, bump up the topic card. Only display the name of the wiki in the list and not any kind of individual edit tracking. https://github.com/publiclab/plots2/issues/8966
  • [x] Ensure that the nearby location button is displayed once a user enters their location with a button to view on a map https://github.com/publiclab/plots2/issues/9159
  • [x] Trending Issues not loaded https://github.com/publiclab/plots2/issues/9168
  • [x] Change TopCenter notification to TopRight https://github.com/publiclab/plots2/issues/9129
  • [x] List final pending processes for the switch to v2/dashboard in the future
  • [x] Prepare for the final presentation of Dashboard work.

Tests will be written for the tasks above where applicable, depending on the code written and feedback given.

Notes

  • The links within the cards do not switch colour when the cursor hovers on them. Should this change?
  • Confirm that the profile/name page does not have the odd line folding on the cards
  • Some views use the old dashboard translation. This should be noted before deleting the dashboard section in the en.yml file -̶ ̶A̶ ̶l̶i̶n̶k̶ ̶t̶o̶ ̶t̶h̶e̶ ̶s̶u̶b̶s̶c̶r̶i̶p̶t̶i̶o̶n̶s̶ ̶p̶a̶g̶e̶ ̶a̶t̶ ̶t̶h̶e̶ ̶t̶o̶p̶,̶ ̶t̶o̶ ̶i̶n̶f̶o̶r̶m̶ ̶t̶h̶e̶ ̶u̶s̶e̶r̶ ̶t̶h̶a̶t̶ ̶t̶h̶e̶y̶ ̶c̶a̶n̶ ̶c̶o̶n̶f̶i̶g̶u̶r̶e̶ ̶t̶h̶e̶i̶r̶ ̶f̶e̶e̶d̶?̶

Additional Tasks If Time Allows

Below tasks have been moved to: https://github.com/publiclab/plots2/issues/9277

  • [x] Ways to integrate a bit more imagery on the new dashboard https://github.com/publiclab/plots2/issues/8967
  • [x] Removing the old Dashboard once the new Dashboard has been approved (possible FTO issue) https://github.com/publiclab/plots2/issues/8843
  • [x] Remove old Dashboard tests (possible FTO issue)https://github.com/publiclab/plots2/issues/8842
  • [x] Enable a user to follow/unfollow a topic asynchronously if it hasn't been implemented #8955

Translations

All Posts Page

  • [x] Banner section (possible FTO issue) Update: There's no banner section
  • [X] Research notes section (possible FTO issue) Update: This has been done on the navbar section and sort dropdown
  • [X] Wiki pages section (possible FTO issue) Update: Wiki page contains translations
  • [X] Notifications within the template Update: There are no notifications
  • [x] Questions section (possible FTO issue) Issues: https://github.com/publiclab/plots2/issues/9033 https://github.com/publiclab/plots2/issues/9040
  • [x] Comment section (possible FTO issue) Issues: https://github.com/publiclab/plots2/issues/9090 https://github.com/publiclab/plots2/issues/9091 https://github.com/publiclab/plots2/issues/9093

Dashboard Page

  • [x] Follow more topics section
  • [x] Location section
  • [x] Blog Section
  • [x] Topics Section
  • [x] Notifications within the template

Accessibility

  • [x] Add keyboard navigation using tab index for keyboard navigation on the pages https://github.com/publiclab/plots2/issues/9172
  • [x] Ensure that aria roles are added to the necessary tags such as buttons and dropdowns https://github.com/publiclab/plots2/issues/9170 https://github.com/publiclab/plots2/issues/9171
  • [x] Ensure that the semantic structure of the pages are maintained; using element tags to describe the content

Relevant Links

  1. Original Project Description
  2. Outreachy Proposal Plan
  3. Outreachy Blogs

Designs

For a comprehensive look at the designs, have a look at this post

Dashboard

Screenshot 2020-12-02 at 19 51 22

All Posts Page

Screenshot 2020-12-02 at 19 31 47

cesswairimu avatar Oct 09 '20 17:10 cesswairimu

Hello, I'm an outreachy applicant, new to FOSS and I'm interested in some of these tasks...

stacytonui avatar Oct 09 '20 17:10 stacytonui

Hello @stacytonui, this is a list of tasks for the main project that will be worked on during the internship period. Some of these features are still in discussion. I would suggest you browse through other issues. Please do let me know if you can't find anything I will help you find smth. Thanks

cesswairimu avatar Oct 09 '20 18:10 cesswairimu

Our newly designed Dashboard has been refined for months, and we are now ready to code it up and implement it on the Public Lab site.

Hi @cesswairimu I am yet to understand those tasks completely because I am still trying to acquaint myself with the codebase and the entire interface. I assume by now a complete draft of the design has been put together. I am requesting if you do have the design, make it accessible . TBH I am really struggling with the wall of text. A combination of visual and text will go a long way at onboarding us newcomers. I am yet to read introducing a draft style guide for public lab in its entirety.

nibble0101 avatar Oct 09 '20 18:10 nibble0101

Hi @nibble0101 , feel free to ask any questions you might have about the project after you checkout the code base. As per designs we encourage the interns to come up with the design during the proposal drafting part on the PL website. During the implementation the mentors will discuss with the interns on different ways to improve on the designs had during the proposals. You can checkout some previous proposals here to get some ideas here https://publiclab.org/notes/liz/03-09-2020/call-for-outreachy-2020-proposals#Proposals

cesswairimu avatar Oct 09 '20 18:10 cesswairimu

@cesswairimu Thanks for the clarification and I'd really appreciate help finding an unassigned issue.

stacytonui avatar Oct 09 '20 20:10 stacytonui

@stacytonui cool, finding one for you in a few

cesswairimu avatar Oct 09 '20 20:10 cesswairimu

@stacytonui here you go https://github.com/publiclab/plots2/issues/8518

cesswairimu avatar Oct 09 '20 20:10 cesswairimu

Hello. I am an Outreachy Applicant and want to contribute in Javascript and Bootstrap. I am also interested in working on Reactjs as mentioned in the project description on Outreachy page. (hope i have not done anything wrong posting this here.)

Asu1996 avatar Oct 10 '20 13:10 Asu1996

Hi @Asu1996 , here is the js project https://github.com/publiclab/PublicLab.Editor . planning issue for that is here

cesswairimu avatar Oct 12 '20 11:10 cesswairimu

Hi, @cesswairimu can one use this as a reference in drafting the proposal?

RuthNjeri avatar Oct 22 '20 13:10 RuthNjeri

@RuthNjeri yeah, def

cesswairimu avatar Oct 22 '20 13:10 cesswairimu

Hello, @cesswairimu I have a question, while drafting the proposal I should come up with a design that I think will work for the project then work on my suggested changes during the internship? Meaning I am free to try out something so long as it doesn't affect the code, right?

IjayAbby avatar Oct 25 '20 18:10 IjayAbby

hello @IjayAbby , yeah exactly

cesswairimu avatar Oct 26 '20 07:10 cesswairimu

Hello @cesswairimu kindly provide me feedback on my proposal link at https://publiclab.org/notes/inyangasi4/10-30-2020/outreachy-proposal-public-lab-new-dashboard-implementation-project.

IjayAbby avatar Oct 31 '20 08:10 IjayAbby

Hi! Just adding this UI flow issue which I believe will still be important on the new version of the Dashboard! Thanks!!!

UI flow issue for adding location from dashboard: https://github.com/publiclab/plots2/issues/8566

jywarren avatar Dec 01 '20 17:12 jywarren

Hi, @publiclab/comment-maintainers (not sure if I have used the right tag, adding @jywarren, @cesswairimu, @sagarpreet-chadha just incase ) I have updated the planning of the tasks needed, please provide feedback especially on the Seeking Clarity / Approval section. Thank you..

RuthNjeri avatar Dec 02 '20 19:12 RuthNjeri

Hi 👋🏾 In the dashboard activity partial, we pass in the activity and notes... I'm curious as to why we paginate the notes and not the activity... Screenshot 2020-12-03 at 21 47 52

A̶l̶s̶o̶,̶ ̶m̶y̶ ̶c̶u̶r̶r̶e̶n̶t̶ ̶u̶n̶d̶e̶r̶s̶t̶a̶n̶d̶i̶n̶g̶ ̶a̶s̶ ̶t̶o̶ ̶w̶h̶a̶t̶ ̶a̶l̶l̶ ̶p̶o̶s̶t̶s̶ ̶m̶e̶a̶n̶ ̶i̶s̶ ̶t̶h̶e̶ ̶a̶c̶t̶i̶v̶i̶t̶y̶ ̶s̶e̶c̶t̶i̶o̶n̶ ̶o̶f̶ ̶t̶h̶e̶ ̶d̶a̶s̶h̶b̶o̶a̶r̶d̶,̶ ̶w̶i̶l̶l̶ ̶c̶r̶e̶a̶t̶e̶ ̶a̶ ̶P̶R̶ ̶s̶o̶o̶n̶,̶ ̶p̶l̶e̶a̶s̶e̶ ̶c̶o̶r̶r̶e̶c̶t̶ ̶m̶e̶ ̶i̶f̶ ̶I̶ ̶a̶m̶ ̶m̶i̶s̶t̶a̶k̶e̶n̶.̶.̶.̶t̶h̶a̶n̶k̶s̶ Or maybe all posts mean every Research note, Question, Wiki and, Comments created ordered according to most recent.. activity has a limit..

RuthNjeri avatar Dec 03 '20 18:12 RuthNjeri

@RuthNjeri to have pagination in View, we either have to use notes or activity, but it seems activity is super set of notes: https://github.com/publiclab/plots2/blob/cbb807ba8e2302f09dafc0060475aa118e34c2c6/app/controllers/home_controller.rb#L139

So it makes more sense to use activity, but I think I am missing something.

Also noting the PR you are currently working on: https://github.com/publiclab/plots2/pull/8800#pullrequestreview-545436066

Meanwhile I will ask @jywarren or @ebarry to comment on approval/need clarity part 😄

sagarpreet-chadha avatar Dec 06 '20 07:12 sagarpreet-chadha

Ah, i think the issue was that since in this context "activity" is all types, as Sagarpreet says -- not to be confused (as i was for a sec) with the "Activities" type of note, which is like a note whose content is a kind of activity guide for people (a tutorial, i guess).

The issue is that because we are mixing the Rails "Comment" and "Node" types, we can't paginate a mixed set, as far as I know -- it pulls from 2 database tables. Maybe there's some magical SQL query... but in any case the new Dashboard won't need this at all -- it will have logic much closer to this, in the TagController index view:

https://github.com/publiclab/plots2/blob/cbb807ba8e2302f09dafc0060475aa118e34c2c6/app/controllers/tag_controller.rb#L53-L59

That runs this page, where you can see the kind of "per topic forums" the new Dashboard will have: https://publiclab.org/tags

image

jywarren avatar Dec 06 '20 15:12 jywarren

Hi, on the other clarifications, let me go through them one by one:

  • the sort by functionality in the 'All Posts' page is not needed -- i think by recency makes sense here, since it's supposed to be the "firehose" of all content. I don't think it's critical to have other sortings, although it might be interesting. But in general, i think we want to push people into the topics themselves, so using https://publiclab.org/tag/outreachy instead of viewing all topics together. This will increase the sense that these are individual communities or groups. I'm open to more sortings on the "All topics/All posts" page, but in general we're trying to reduce complexity where it doesn't serve our big goals, so maybe we can stick to just recency sorting for the time being. Thanks!!!
  • odd line folding -- sorry! This def needs more details. Take a look at the screenshot in my last comment of a listing of topics on the /tags page, whose template partials will be reused in the dashboard:

See how the top item in the top box -- Impacted Communities -- gets forced onto a new line, and the thumbnail image for its author (here grey) is left on its own above? That's the folding. I'm not actually sure what causes it but i wonder if the layout/css of that section is unnecessarily complex? Couldn't the thumbnail just be inline, or float: left, and the text just inp tags with careful margin/padding?

  • For the translation tasks, my assumption is that the translations will initially be for the en.yml files - yes - and it may bear looking at the Translations README file, which i think is linked from the main README. You could do translation last, if you prefer?

Thank you, @RuthNjeri and @Sagarpreet ! I hope this is helpful!!!

jywarren avatar Dec 06 '20 15:12 jywarren