-
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
Print specific template for public lab content #8128
Comments
Hey @jywarren @cesswairimu pulling all printability related discussions here from #7883 😅 As we had discussed once can you share some content from the publiclab team that they had trouble printing 😅 so I can get an idea of what all content I have to deal with and how I can accordingly modify my js script. Thanks a ton!! 🎉 Also for now I have just added it as another option in the sidebar along with the already existing print options so where should we place this now and what should this option be called? 😅 Thanks ✌️ Edit: The comment in the pdf is not the comment getting printed it is actually an image that I had added so sorry for any confusion caused 😅 |
@ebarry Since you have been working alongside the public lab team your insights and feedback much appreciated on this 🙏 🚀 The pdf right now is just a work in progress so I have just implemented some basic features so it doesn't look that good right now 😂 😅 |
@jywarren @cesswairimu @ebarry Updated print design 😅 Please have a look and provide feedback. Thanks ✌️ |
super! This looks really really nice!!!!!!!!! Overall the flow and balance of headings looks great! Couple observations:
|
Hey @jywarren @cesswairimu @ebarry while working on the wiki side of it I noticed that we are using iframe for showing videos 😅 since it is not possible to manipulate iframes from css/js due to CORS and other issues I was thinking of setting the display to none for that 😅 I can get the src and add it to the top of the doc but not at the place where the frame is since manipulation is not allowed (tried with insertBefore/append/contentWindow.document.title/css::after/before but getting blocked by CORS) 😅 Let me know how I should proceed with this? Also noticed buttons like Share research note and alerts, I suppose we can add some sort of styling to differentiate them in the print doc or do you think we should display them? Not sure about this 😅 |
Hey @ebarry Thanks so much for looking into this and for being honest if anything looks off 🎉 (i am not a design person as you would have figured 😂 )and I have added some more queries that I have with this above can you please answer them too 😅
Also here I have tried to avoid colors for the most part and kept text black for ink efficiency that works right? 😅 or should I make it more appealing? |
Super -- when showing the profile pic of the author followed by the name, please show all authors like this (both profile pic and name) even if it takes more than one line. Attribution is very important! |
@ebarry Ohh cool gotcha!! 🎉 |
Hi! For interactive content that doesn't make sense in print, like YouTube, perhaps we could add a "fallback" content inside that says And, i think i remember you saying you'd be trying to generate these PDFs from a Rails template; how did you make them? Would you mind sharing a PR link (or sorry if I missed it and you have already). Thanks! This is very exciting! |
Hey @jywarren Actually at that time I was thinking of using wkhtmltopdf gem for that but as you had pointed out that we won't be requiring a lot of its functionalities and its better to have a home grown tool so I wrote a javascript file and created a dom structure from it only keeping the essential and scraping of the rest 😅 I have created a wip pr now as I get more and more idea about the styling and how to display different things in this I will keep adding commits ✌️ can you please review #8149 ? since I have just started on this have some refactoring and code cleaning to do 😅 |
Hey @ebarry @jywarren regarding the wiki layout should we display the date created (asking since it is not there on the original wiki template that we use) also sharing screenshots for
can you please review these and let me know if any changes are required? Thanks you ❤️ |
Hey @ebarry @jywarren can you kindly review the above changes if they are alright? 😅
Thanks a ton 💯 |
|
Thanks @ebarry ❤️ also can you review my above message as well where I have shared the modified design? Thanks ✌️ |
From your designs above, i see there are some graphic design choices like:
These all look great! |
You can also jump on https://pad.publiclab.org/p/opencall https://zoom.us/j/934187763 right now to talk to @steviepubliclab |
Hey @ebarry I am sorry I totally missed this since it was quite late in India at that time and fell asleep 😴 I would love to know if there's a next call I can jump on ✌️ To answer your question about the images they will be displayed the same way they are on the wiki 😅 Muchas gracias for the review ❤️ |
Great! There is an open call every Tuesday at 3pm ET / 12:30AM midnight for India time -- which is not great - sorry! https://pad.publiclab.org/p/opencall |
Hey Liz! @ebarry @jywarren Thanks so much for the invite but I am afraid it's a bit too late and I have some college work in the morning so I won't be able to join 😅 Can you please review the following changes? Thanks ❤️ As for these pages here are some changes I have made to make the images printing better: - And as per the discussion on wiki to add the no. of revisions and the created at date here is the changes made:- |
Hey @ebarry Can you please review? Thanks ✌️ Please let me know how I can improve 🙌 |
Please describe the desired behavior.
Currently the publiclab website uses a set of css hiding strategies to only print important content from a note or wiki. We need to replace this with print specific template for public lab content.
This print specific template can make use of js manipulation to only pull important part of content from the note and add css styling accordingly.
The text was updated successfully, but these errors were encountered: