Skip to content

Add file_size to document details for PDF downloads [WHIT-2598]#2394

Merged
GDSNewt merged 1 commit into
mainfrom
surface-filesize-in-documents-details
Nov 12, 2025
Merged

Add file_size to document details for PDF downloads [WHIT-2598]#2394
GDSNewt merged 1 commit into
mainfrom
surface-filesize-in-documents-details

Conversation

@GDSNewt
Copy link
Copy Markdown
Contributor

@GDSNewt GDSNewt commented Nov 5, 2025

This change includes the file_size field in the document details sent to the Publishing API, enabling the frontend to display human-readable file sizes for downloadable PDF maps.

Screenshot 2025-11-11 at 11 31 11

Jira

Corresponding frontend change: alphagov/frontend#5109

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Comment thread app/presenters/edition_presenter.rb Outdated
@GDSNewt GDSNewt force-pushed the surface-filesize-in-documents-details branch 5 times, most recently from 0ba00a6 to 5c60bd6 Compare November 11, 2025 16:26
This change includes the file_size field in the document details
sent to the Publishing API, enabling the frontend to display
human-readable file sizes for downloadable PDF maps.
@GDSNewt GDSNewt force-pushed the surface-filesize-in-documents-details branch from 5c60bd6 to c285ea5 Compare November 11, 2025 16:51
@GDSNewt GDSNewt merged commit 9c067ab into main Nov 12, 2025
11 checks passed
@GDSNewt GDSNewt deleted the surface-filesize-in-documents-details branch November 12, 2025 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants