-
Notifications
You must be signed in to change notification settings - Fork 329
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 directly from pages, rather than via PrintPage #2742
Comments
I use the There are possibly other uses for the Keep it. |
My main concern was to do with server side rendering, as I believe the I'd suggest that we take a staged approach, starting by implementing printing directly from the Edit and Share Pages, then monitoring the As mentioned in the Gitter chat, it's also an opportunity to re-write this particular NavItem as a React Function Component, rather than a Class Component. If we're looking at transitioning to Function Components, this would be a good place to start. |
VisualPing only scrolls the top-most frame. This works with the IIRC, Removing the server-side rendering wouldn't upset VisualPing because it does run the |
I'm not sure I see the problem this is trying to solve. Can you elaborate? As for SSR, we can change that behavior without fully removing /print. As @ericscheid points out, /print is being used for other links. For instance it's what Google is using to track several of our reported issues on Chrome. |
Ah, yes .. links to |
This is also slightly related to #2740. The fact that |
Thankfully (stupidly) the page also renders on client side by inclusion of the |
Wow, I don't remember this issue at all, but I guess I was there. Now that I better understand the initial request, I may have changed my mind on this. Looks like the main concern was keeping existing It looks like visualping also supports actions inside iframes now too https://help.visualping.io/en/articles/5948932-how-do-i-use-action-tools#h_08c167fc99 so monitoring should work on At this point I am in favor of this change. Remove the need for a separate |
That's the support for actions inside iframes (clicking buttons, selecting things etc). The image they capture/monitor would still be of the whole page, and thus constrained to the visible size of the iframe. Monitoring the We could ask them to support targeting an iframe. |
Fixed by #3491 |
Your idea:
I was investigating how one might call the print function from within an iFrame, and after some experimentation, I discovered that the following command works to open a print dialogue:
However, the print preview shows as result quite unlike the desired output.
In order to print the full Brew, the following CSS needs to be added:
As this makes printing from the New/Edit/Share pages possible, there is potentially no longer a requirement for a separate PrintPage.
Implementation Tasks:
navbar/print.navitem.jsx
to call the print function directly instead of linking to/print
@media print
CSS to BrewRenderer styling/print
routeThe text was updated successfully, but these errors were encountered: