Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
a6aefb0
feat: initial bemestingsplan generating
SvenVw Jan 13, 2026
13e5127
refactor: improve design of bemestingsplan pdf
SvenVw Jan 14, 2026
6779958
feat: add button to download the bemestingsplan
SvenVw Jan 14, 2026
5f269a4
feat: add gewasoverzicht and meststoffenoverzicht to pdf
SvenVw Jan 14, 2026
c0804ff
fix: page numbers and units
SvenVw Jan 14, 2026
678abc6
Merge branch 'development' into FD413
SvenVw Jan 20, 2026
32e3943
feat: add seperate section for bufferstrips and more nutrients for fi…
SvenVw Jan 20, 2026
3d96f25
refactor: improve code for pdf
SvenVw Jan 21, 2026
8bf704b
feat: add area percentage for crops as well to pdf
SvenVw Jan 21, 2026
67e4cb1
fix: use correct nitrogen term
SvenVw Jan 21, 2026
2c3c8bc
Merge branch 'development' into FD413
SvenVw Jan 23, 2026
1e433e9
refactor: show area with 1 decimal instead of 2
SvenVw Jan 23, 2026
96877cd
fix: show value for a_ph_cc
SvenVw Jan 23, 2026
9b3af61
fix: improve main cultivation
SvenVw Jan 23, 2026
30788a6
fix: align values right in the cell and show nutrient advice values a…
SvenVw Jan 23, 2026
428124a
fix: show area
SvenVw Jan 26, 2026
014bbd4
fix: show all columns correctly at Benodigde meststoffen
SvenVw Jan 26, 2026
62f613c
fix: align header of Bufferstroken
SvenVw Jan 26, 2026
80d1f81
fix: link to correct page
SvenVw Jan 26, 2026
cf24d43
fix: page number
SvenVw Jan 26, 2026
94fc2c5
chore: add changeset
SvenVw Jan 26, 2026
42590d4
Update fdm-app/app/components/blocks/pdf/bemestingsplan/Bemestingspla…
SvenVw Jan 26, 2026
c9e2405
fix: index based mapping
SvenVw Jan 27, 2026
7290848
fix: use safe name for file
SvenVw Jan 27, 2026
78dfa17
fix: path for dockerfile
SvenVw Jan 27, 2026
f292dc9
fix: do not show footer on cover image
SvenVw Jan 27, 2026
550981f
fix: type
SvenVw Jan 27, 2026
1dab586
fix: include cover image
SvenVw Jan 27, 2026
047cdec
fix: remove duplicate footer
SvenVw Jan 27, 2026
c51e54a
fix: types
SvenVw Jan 27, 2026
01437af
Update fdm-app/app/routes/farm.$b_id_farm.$calendar.bemestingsplan[.]…
SvenVw Jan 27, 2026
15509d7
Update fdm-app/app/routes/farm.$b_id_farm.$calendar.bemestingsplan[.]…
SvenVw Jan 27, 2026
a9b466d
Merge branch 'development' into FD413
SvenVw Jan 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/icy-kings-enjoy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@svenvw/fdm-app": minor
---

Adds that the user can download a pdf, "Bemestingsplan", for a farm that gives on farm-level an overview of norms, advices, used fertilizers and on field-level,the norms, advices, soil status and planned fertilizer applications.
14 changes: 14 additions & 0 deletions fdm-app/app/components/blocks/pdf/PdfBadge.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Text, View } from "@react-pdf/renderer"
import { pdfStyles } from "./bemestingsplan/styles"

export const PdfBadge = ({
children,
style,
}: {
children: string
style?: any
}) => (
<View style={[pdfStyles.badge, style]}>
<Text>{children}</Text>
</View>
)
10 changes: 10 additions & 0 deletions fdm-app/app/components/blocks/pdf/PdfCard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { View } from "@react-pdf/renderer"
import { pdfStyles } from "./bemestingsplan/styles"

export const PdfCard = ({
children,
style,
}: {
children: React.ReactNode
style?: any
}) => <View style={[pdfStyles.card, style]}>{children}</View>
44 changes: 44 additions & 0 deletions fdm-app/app/components/blocks/pdf/PdfTable.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import { Text, View } from "@react-pdf/renderer"
import { pdfStyles } from "./bemestingsplan/styles"

export const PdfTable = ({
children,
style,
}: {
children: React.ReactNode
style?: any
}) => <View style={[pdfStyles.table, style]}>{children}</View>

export const PdfTableHeader = ({
children,
style,
}: {
children: React.ReactNode
style?: any
}) => <View style={[pdfStyles.tableHeader, style]}>{children}</View>

export const PdfTableRow = ({
children,
style,
}: {
children: React.ReactNode
style?: any
}) => <View style={[pdfStyles.tableRow, style]}>{children}</View>

export const PdfTableCell = ({
children,
style,
weight = 1,
}: {
children: React.ReactNode
style?: any
weight?: number
}) => (
<View style={[pdfStyles.tableCell, { flex: weight }, style]}>
{typeof children === "string" || typeof children === "number" ? (
<Text>{children}</Text>
) : (
children
)}
</View>
)
Loading