-
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
new question card formatting in https://publiclab.org/questions caused some issues #10043
Comments
cc @Manasa2850 but I know you're busy now -- just whenever you are available! |
Hey @jywarren Just checked out this issue seems like it's not broken but maybe these questions don't have any images for them so it's showing this placeholder. For example - https://publiclab.org/questions?page=4 on navigating here the images take about 30 seconds but the ones with images load for example - https://publiclab.org/notes/iman/03-30-2021/why-the-color-of-infragram-picture-is-different-from-what-i-take-with-my-raspberry-pi-using-picamera-api I tried locally too but wasn't able to reproduce 😅 Not sure if this is what you meant by the issue though :p Maybe we can only show the images where they exist to not create confusion? |
Great idea @Tlazypanda ! I support this. |
Great, thanks @Tlazypanda - let's just remove them then! |
Ah wait - so, i realize that we do need to be careful that the removal only affects /questions/ - as the way we manage missing images in /notes/ is distinct: see i.e. https://publiclab.org/tag/helium but that should be easy enough with a conditional!!! |
@jywarren @ebarry @Tlazypanda I looked through this PR #9922 and the issue is that a question has a type of plots2/app/views/notes/_card.html.erb Lines 48 to 58 in 7c49c77
Since you want these changes to affect only '/questions' I think it would be better to just return the questions template back to https://github.com/publiclab/plots2/blob/main/app/views/questions/_questions.html.erb#L5-L12. |
Wow, great catch here too @TildaDares. And I think i agree on the solution. Thanks! |
So if we could just switch back to displaying the question template that would seem to work, although please do confirm it ends up looking like the "before" image above. However if it doesn't, we could amend the conditional by using instead of Lines 188 to 190 in 9682cb8
|
Resolved in #10359 |
Uh oh - actually it looks like our question card formatting affecting https://publiclab.org/questions was affected by the changes in #8731. I'm opening this just to try to resolve it:
Before:
Now:
I think we need to fix the lazy loading on /questions, probably just by running this:
(see https://github.com/publiclab/plots2/pull/8043/files#diff-10d79f07bd4ae39a54ddd901d05832f6ea45f6ec427932edd966bed0b83e6714R20)
Originally posted by @jywarren in #8731 (comment)
The text was updated successfully, but these errors were encountered: