Download the readout as a PDF report and an XLSX workbook - #85
Draft
aivanchenk wants to merge 2 commits into
Draft
Download the readout as a PDF report and an XLSX workbook#85aivanchenk wants to merge 2 commits into
aivanchenk wants to merge 2 commits into
Conversation
added 2 commits
August 26, 2026 22:16
The PDF's map preview was read back off the live canvas, which printed whatever the user happened to be looking at: a dark globe tilted off its axis lands in an A4 report as a black sphere on a white page. Render a dedicated offscreen map instead, always plan view, always the light basemap, always framed on the selected cell, at a fixed pixel ratio so the print resolution does not depend on the display. Collapse the PDF/CSV/XLSX menu into a single Download button. The two files answer different questions and are wanted together, so choosing between them was a step with no decision in it. CSV goes: the workbook carries the same rows with real date cells and provenance on its own sheet. Also: - Give both plots a height prop so the export stage renders them taller than the 220px sidebar, filling the page's content width. - Retry transient chunk fetches. One coordinate fans out into many requests and a single flaky one failed the whole series. - Move the facts block above the history slider and chart.
|
🚀 Vercel preview deployed Preview URL: https://earth-prints-5a3txtu99-anastasiia-s-projects10.vercel.app |
Collaborator
Author
|
@lazarusA need your feedback on pdf and excel files. How do scientists from your department will use it and what format do they prefer? Would you be able to share some examples? |
Member
|
in addition to excel files, it would be good also to provide
|
Collaborator
Author
|
@lazarusA should we give an option for users to choose how they'd like to download, or provide a single zip archive for all items? In my opinion zip would be better |
Member
|
indeed, let's not give many options, probably for now doing zip will be fine. We adapt later if feedback is not very positive. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #69.
Guide
Open the map, click any pixel, wait for the time series to finish loadin and click download. The button is disabled until the series is loaded, shows
Preparing…while the export runs, and surfaces a short message underneath if it fails.One click gives you two files, named off the same stem so they sort next to each other:
..._2025-12-31.pdf…_2025-12-31.xlsxKnown limitations
FingerprintPlot, deferred as an easy follow-up.svg2pdf.jswould do it, deliberately out of scope here.