Skip to content
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

Add More Imagery to Dashboard #9708

Merged
merged 7 commits into from
Oct 15, 2021

Conversation

RuthNjeri
Copy link
Contributor

@RuthNjeri RuthNjeri commented May 31, 2021

Fixes #8967

Change the topic cards view in /v2/dashboard to design suggested by @ebarry

Design

Screenshot 2021-05-31 at 13 38 46

Before

Screenshot 2021-05-31 at 13 41 20

After

Screenshot 2021-05-31 at 13 26 24
Screenshot 2021-05-31 at 13 25 30
Screenshot 2021-05-31 at 13 26 06

Thanks!

@gitpod-io
Copy link

gitpod-io bot commented May 31, 2021

@RuthNjeri RuthNjeri changed the title Add More Imagery to Dashboard [WIP]Add More Imagery to Dashboard May 31, 2021
@codecov
Copy link

codecov bot commented May 31, 2021

Codecov Report

Merging #9708 (dabd0b4) into main (9682cb8) will decrease coverage by 0.04%.
The diff coverage is n/a.

❗ Current head dabd0b4 differs from pull request most recent head 69ce150. Consider uploading reports for the commit 69ce150 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main    #9708      +/-   ##
==========================================
- Coverage   82.11%   82.07%   -0.05%     
==========================================
  Files          98       98              
  Lines        5982     5940      -42     
==========================================
- Hits         4912     4875      -37     
+ Misses       1070     1065       -5     
Impacted Files Coverage Δ
app/services/execute_search.rb 88.88% <0.00%> (-5.56%) ⬇️
app/api/srch/search.rb 66.87% <0.00%> (-3.83%) ⬇️
app/controllers/images_controller.rb 70.27% <0.00%> (-2.23%) ⬇️
app/helpers/application_helper.rb 85.71% <0.00%> (-1.92%) ⬇️
app/models/concerns/comments_shared.rb 90.47% <0.00%> (-1.53%) ⬇️
app/models/drupal_file.rb 36.84% <0.00%> (-1.26%) ⬇️
app/controllers/tag_controller.rb 79.81% <0.00%> (-0.97%) ⬇️
app/controllers/notes_controller.rb 84.46% <0.00%> (-0.63%) ⬇️
app/models/user.rb 86.02% <0.00%> (-0.10%) ⬇️
app/channels/room_channel.rb 71.42% <0.00%> (ø)
... and 7 more

@RuthNjeri RuthNjeri marked this pull request as draft May 31, 2021 10:38
@RuthNjeri RuthNjeri changed the title [WIP]Add More Imagery to Dashboard Add More Imagery to Dashboard May 31, 2021
@RuthNjeri RuthNjeri marked this pull request as ready for review May 31, 2021 10:42
@RuthNjeri
Copy link
Contributor Author

Unstable site https://unstable.publiclab.org/v2/dashboard

@RuthNjeri RuthNjeri marked this pull request as draft May 31, 2021 10:57
@RuthNjeri RuthNjeri marked this pull request as ready for review May 31, 2021 12:48
@jywarren
Copy link
Member

jywarren commented Jun 1, 2021

Wow Ruth this is so cool!

I'm thinking the CSS margins/padding/font size may need a little refinement, so i gave it a try; what do you think:

.card-view .card-body p {
    margin-bottom: 10px;
}

.card-view .card-body h5 {
    font-size: 1.2em;
}
.card-view .card-body {
    font-size: 0.85em;
    /* padding-bottom: 4px; */
    /* padding-top: 6px; */
}

image

I also see it kind of hitting the right side of the card. We could add padding, but would it work better to use the container grid system in Bootstrap? But you probably know better.

@jywarren
Copy link
Member

jywarren commented Jun 1, 2021

Like this seems to solve it... so maybe that's the most efficient fix?

.node-list {
    display: grid;
    margin-right: 12px;
}

image

@jywarren
Copy link
Member

jywarren commented Jun 1, 2021

Is it possible to get the cards to not overlap each other horizontally, as well?

@jywarren
Copy link
Member

jywarren commented Jun 1, 2021

Thanks for this @RuthNjeri it's so cool!!

@jywarren
Copy link
Member

jywarren commented Jun 1, 2021

Ah, i see width is fixed at:

<div class="card h-100" style="width: 14rem;">

dropping it to 13rem worked OK:

image

@jywarren
Copy link
Member

jywarren commented Jun 1, 2021

I think this is so close - we can do a few things -- collect input from staff, OR maybe we can just make this toggle-able -- what do you think? Let me ask staff if they think this should be something that can be toggled, vs. just liking this as-is and going for it!

@RuthNjeri
Copy link
Contributor Author

Hi @jywarren 👋🏾

Thanks! Yeah, we could wait to hear what the staff says and proceed from there, thanks.

@ebarry
Copy link
Member

ebarry commented Jun 15, 2021

I just have to write in here to say THIS IS AWESOME

@RuthNjeri
Copy link
Contributor Author

Thanks @ebarry ❤️

@jywarren I looked at the additional styling you recommended, they look great. I have added them to the topicCard partial and I like how it looks...
Screenshot 2021-06-20 at 12 20 51

I have also pushed the changes to the unstable branch, it should be visible in a few

@RuthNjeri
Copy link
Contributor Author

@jywarren
Copy link
Member

Sorry, Sebastian pushed to unstable so I wasn't able to see. I'll try in gitpod!

@jywarren
Copy link
Member

Main thing is I want to ensure it loads one-above-the-other nicely on smaller screens!

@jywarren
Copy link
Member

I think this is /almost/ there. I did find a couple break points at which the wrapping gets a little... weird. 😭

1010px wide:

image

931px wide (notice spacing between the posts is now missing):

image

655px - we'd like them to become full width to fill available space once it's this narrow:

image

@RuthNjeri i wonder if a) we should revert to the Bootstrap grid to fix this? I'm more familiar with it than grid sizing. and b) if you're interested in getting support from perhaps Manasa or Sushmita who are looking for adjacent projects to get into? Either way is fine, just an idea!

@RuthNjeri
Copy link
Contributor Author

Hi, @jywarren I would be happy to receive support on this from Manasa or Sushmita. I think it's also best to add more people working on the v2/dashboard that way, I am not the only one with the knowledge of the updates on the dashboard aside from you and Liz.

Copy link
Collaborator

@Tlazypanda Tlazypanda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @RuthNjeri this is looking awesome 🎉 💯

Looping in @17sushmita and @Manasa2850 if you folks have any time aside from your projects would really appreciate you to look into this. A good way would be to pull from @RuthNjeri branch and add your changes on top of it. Thank you all!! ❤️ cc @jywarren

@jywarren
Copy link
Member

jywarren commented Aug 3, 2021

@Manasa2850 was this a project you were interested in taking up, do you think? No pressure but it's available and is one of the last remaining changes to the new dashboard we're working on. Thanks!

@Tlazypanda
Copy link
Collaborator

Tlazypanda commented Aug 10, 2021

Hey @17sushmita @Manasa2850 if you are interested please have a look ✌️

@jywarren
Copy link
Member

OK! I rebased, made some small changes, and tested at different widths, and I think we are OK here, fingers 🤞

@jywarren
Copy link
Member

image

@codeclimate
Copy link

codeclimate bot commented Oct 15, 2021

Code Climate has analyzed commit 41bcba1 and detected 0 issues on this pull request.

View more on Code Climate.

@jywarren jywarren merged commit c4c6771 into publiclab:main Oct 15, 2021
billymoroney1 pushed a commit to billymoroney1/plots2 that referenced this pull request Dec 28, 2021
* add more imagery to dashboard

* fixed image size height

* fix image block

* add more card styling

* fixed padding

* timeframe fix

Co-authored-by: jywarren <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ways To Integrate a Bit More Imagery On The Dashboard
4 participants