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

report(report-ui-features): Disable auto expansion of print option via report ui #3578

Merged
merged 4 commits into from
Nov 10, 2017

Conversation

karanjthakkar
Copy link
Contributor

Fixes #2782

@karanjthakkar karanjthakkar changed the title Disable auto expansion of print option via report ui report(report-ui-features): Disable auto expansion of print option via report ui Oct 16, 2017
Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

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

@karanjthakkar looks like this is still in progress correct? right now Print and Print Expanded will do the same thing whereas we want Print Expanded to preserve existing functionality and Print to have the version without expansion

i.e. a new block here

case 'print':
this.expandAllDetails();
this.closeExportDropdown();
self.print();
break;

@karanjthakkar
Copy link
Contributor Author

@patrickhulce From what I understand, the code you outlined is the one that runs when you click on the dropdown in the top right corner. For this we want to preserve the expanded functionality so I've just modified the text for the dropdown option. There will no longer be a print option in the dropdown. The user can do a normal print (which does not auto expand) using Ctrl + P or the Print option in File menu.

@patrickhulce
Copy link
Collaborator

Oh oops I misread/didn't notice you were removing the print option entirely from the dropdown! That's fine with me, but I'll defer to report owners if we should have both "Print" and "Print Expanded" in the dropdown, in that case, my comment becomes relevant again :)

to @paulirish and @vinamratasingal

@vinamratasingal-zz
Copy link

To make sure I understand what's going on: we are changing the default print option to "print expanded" and then also ensuring that when a user does the system print, that they only print the summary view (i.e. 2 page report) and not the 28 page report, yes?

If the above is true, I would love to see in the share menu both a "print summary view" (or "print current view") and "print expanded view." What additional information gets printed out in the expanded view @patrickhulce ?

@patrickhulce
Copy link
Collaborator

Expanded view just expands all the disclosure triangle sections in the report for you which is what balloons the size.

Sounds like there's desire to have both "Print" (same as triggering system print) and "Print Expanded" (the current logic for the print dropdown with just the text change) options in the dropdown, does that make sense to you too @karanjthakkar?

@karanjthakkar
Copy link
Contributor Author

If I understand correctly Print, Print Summary and Print Expanded are three different options:

  1. Print: Will defer to the system print option. May or may not be summary view. Depends on whether the user has expanded any triangles on their own
  2. Print Summary: Manually collapse all triangles and then print
  3. Print Expanded: Manually expand all triangles and then print

In the old implementation, Print was actually printing the expanded report so I just updated the text to Print Expanded. Do we also want to keep the old Print option and make it do what Pt 1. says?

@patrickhulce
Copy link
Collaborator

That's exactly what I'm thinking too @karanjthakkar, let's have pt 1 and pt 3 as options in the dropdown and punt on pt 2 for now 👍

@karanjthakkar
Copy link
Contributor Author

@patrickhulce done!

@karanjthakkar
Copy link
Contributor Author

Bump!

@vinamratasingal-zz
Copy link

Hmm so I'm confused. I thought we had agreed to have in the menu two options: print summary and print expanded. The print option I referreed to just changing the system print (so if a user goes to file --> print) it prints the summary view if the user hasn't expanded any arrows. Is that accurate? So in the report itself, two new options should be present, print expanded and print summary.

It would be helpful Karan if you could attach a screenshot of the new report UI changes.

@patrickhulce
Copy link
Collaborator

wait @vinamratasingal you were planning on having 3 distinct print options in the dropdown? Did you want all the options @karanjthakkar described?

I took

I would love to see in the share menu both a "print summary view" (or "print current view") and "print expanded view."

To mean that you were onboard with having a "Print" which prints the current view as is and a "Print Expanded" which explodes to the full report (current functionality)

@vinamratasingal-zz
Copy link

vinamratasingal-zz commented Oct 27, 2017

Er let me clarify. I would like 2 options in the UI: Print Summary and Print Expanded. That's it.

With Print, it's just changing what the system print should do. System print should map to printing the current view of the page (which I believe it's already doing, so no need to change).

@karanjthakkar
Copy link
Contributor Author

So I removed the Print... option from the dropdown and added a summary option instead. Here are some screenshots of how it looks like:

  • Dropdown screenshot

screen shot 2017-10-30 at 11 15 42 am

  • Print Summary screenshot

screen shot 2017-10-30 at 11 15 50 am

  • Print Expanded screenshot

screen shot 2017-10-30 at 11 15 55 am

Is that along the lines of what you were expecting, @vinamratasingal?

@vinamratasingal-zz
Copy link

vinamratasingal-zz commented Oct 30, 2017

Yup, this looks great, thanks Karan! Not sure how to give you the approval but LGTM from my end.

Please wait for Paul/Patrick to LGTM before merging, thanks :)

Copy link

@vinamratasingal-zz vinamratasingal-zz left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

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

thanks for taking care of this @karanjthakkar!

Copy link
Member

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

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

This got approval, so landing this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants