equal-access icon indicating copy to clipboard operation
equal-access copied to clipboard

[Extension] Don't show full data:text/html content on generated HTML report page

Open tdjsnelling opened this issue 4 years ago • 3 comments

Summary

When passing HTML into getCompliance, the full data:text/html... content gets displayed on the generated report page.

This pushes the actual results table waaaay down the page — see screenshot (note the scrollbar):

Screenshot 2021-02-24 at 17 36 41

My suggestion would be to instead show just the label value passed to getCompliance as these are required and unique. Or if the full HTML content must be shown, moving it below the table of results.

tdjsnelling avatar Feb 24 '21 17:02 tdjsnelling

@tdjsnelling I agree. We need a general solution, but which tool are you using? Browser, Node, Cypress, Karma? For the browser, we don't have a label, but we should at least be able to snip the length somehow.

tombrunet avatar Feb 24 '21 18:02 tombrunet

@tdjsnelling I agree. We need a general solution, but which tool are you using? Browser, Node, Cypress, Karma? For the browser, we don't have a label, but we should at least be able to snip the length somehow.

Sorry, this is with Node

tdjsnelling avatar Feb 24 '21 21:02 tdjsnelling

Easier to reproduce by:

  • Load: https://altoromutual.com/?xyz=jdjklsfhsdakjlfhjkdsahfkjsdhafkjhdslkjfhdsjkfhkjdsahfkjasdhkfjhdsakjlfhkjlsadhfkjadshfkjhsdklfhkjasdhfkjdsahfkjasdhfkjhdskjfhasdkljfhkjadshfkjdsahfklsdhfkjlhsadkjfhkadsjfhkjadshfkjdsahfkljadshfkjhasdkjfhkjadshfjkdsahfkjlhasdkjlfhkjasdhfkjlsadhfjklahdsklfjhskjdahfjkashdfkjsdahfkjhsdakjfhdjksafhkjadlshfkjladshfkjlhadskjlfhklasjdhfkjldsahfjkashdfjklhdasjkfhsadkjlhfkjsadhfkjdaslhfljadskjlafjkdashfkjdashlf
  • Save report and look at the HTML saved report.

You'll see the URL go across the page under the report. We need some sort of ellipsis with popup / copy.

tombrunet avatar Dec 16 '21 20:12 tombrunet