Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
289 commits
Select commit Hold shift + click to select a range
ebecab3
Update .changeset/wide-apes-hear.md
SvenVw Oct 14, 2025
3933c04
Update fdm-core/src/db/schema.ts
SvenVw Oct 14, 2025
1d0972c
chore: update minor dependencies
SvenVw Oct 14, 2025
3d11228
Merge pull request #298 from SvenVw/FDM296
SvenVw Oct 14, 2025
7ab768f
Merge remote-tracking branch 'origin/development' into chore/20251014
SvenVw Oct 14, 2025
3432236
chore: updare major vesions of dependencies
SvenVw Oct 14, 2025
195b0fe
chore: fix lockfile
SvenVw Oct 14, 2025
78e376a
refactor: move vite-node to devDependency and fix docusaures/faster
SvenVw Oct 15, 2025
5f8b4a0
Merge pull request #299 from SvenVw/chore/20251014
SvenVw Oct 15, 2025
12ffad0
Merge branch 'development' into FDM284
SvenVw Oct 15, 2025
c939de9
feat: Add the table `intending_grazing` to store if the farm is plann…
SvenVw Oct 15, 2025
a00a331
feat: Add the functions `setGrazingIntention`, `removeGrazingIntentio…
SvenVw Oct 15, 2025
caec86e
chore: add db migration
SvenVw Oct 15, 2025
b5adfde
test: fix
SvenVw Oct 15, 2025
14ab281
fix: reference to farm table
SvenVw Oct 15, 2025
97c487f
feat: at removeFarm delete the associated derogations, organic certif…
SvenVw Oct 15, 2025
80aa92e
fix: key on intending_grazing table
SvenVw Oct 15, 2025
05048a4
test: fix setup for organic certifications
SvenVw Oct 15, 2025
726ae00
Fix: differentiate stikstofgebruiksnorm for grassland based on "bewei…
SvenVw Oct 15, 2025
d7ecb61
test: update for grazing intention
SvenVw Oct 15, 2025
81497dd
feat: add table 11
SvenVw Oct 15, 2025
6f5d0b4
feat: implement the function to calculate the filling for dierlijke m…
SvenVw Oct 16, 2025
a38d207
chore: remove migration to merge dev branch
SvenVw Oct 16, 2025
d2c501d
Merge remote-tracking branch 'origin/development' into FDM290
SvenVw Oct 16, 2025
d30a616
chore: add db migration
SvenVw Oct 16, 2025
96e4778
Merge pull request #293 from SvenVw/FDM290
SvenVw Oct 16, 2025
4faf9f6
Merge branch 'development' into FDM294
SvenVw Oct 16, 2025
60e5933
feat: implement filling calculation of fosfaatgebruiksnorm
SvenVw Oct 16, 2025
12ff3a0
docs: fix comment
SvenVw Oct 17, 2025
8e6637c
Merge pull request #295 from SvenVw/FDM294
SvenVw Oct 17, 2025
e41b189
fix: broken lockfile
SvenVw Oct 17, 2025
75d5733
feat: implement function to determine the filling of stikstofgebruiks…
SvenVw Oct 17, 2025
a9daa3e
chore: ignore coverage folder at fdm-calculator
SvenVw Oct 17, 2025
3cf2845
fix: remove capping
SvenVw Oct 17, 2025
87a7cc7
test: fixes
SvenVw Oct 17, 2025
05f933b
fix: type
SvenVw Oct 17, 2025
a960b16
feat: include the nitrogen filling functions
SvenVw Oct 17, 2025
62a45db
feat: add function to collect input data for norm filling calculation
SvenVw Oct 17, 2025
c09c94e
chore: cleanup
SvenVw Oct 17, 2025
7b44f22
chore: restructure files
SvenVw Oct 17, 2025
b5640fe
chore: remove db migration for easier git merge
SvenVw Oct 17, 2025
2297498
Merge branch 'development' into FDM284
SvenVw Oct 17, 2025
6ad6146
chore: create db migration
SvenVw Oct 17, 2025
e7553bb
Add calculation caching functionality to fdm-core
BoraIneviNMI Oct 17, 2025
6cdbb93
feat: add function to aggregate norm filling to farm level
SvenVw Oct 17, 2025
82ade13
Merge branch 'development' into FDM297
BoraIneviNMI Oct 19, 2025
136c094
Add caching to norm calculations
BoraIneviNMI Oct 19, 2025
df994c3
Add caching to nitrogen balance calculations
BoraIneviNMI Oct 19, 2025
1a76b1c
Add caching to the NMI API nutrient advice integration
BoraIneviNMI Oct 19, 2025
776160e
Add changeset
BoraIneviNMI Oct 19, 2025
06259b9
Resolve some nitpicks
BoraIneviNMI Oct 19, 2025
638c492
fix: type
SvenVw Oct 20, 2025
eb03155
chore: remove outdated comment
SvenVw Oct 20, 2025
472ae45
feat: make aggregateNormFillingsToFarmLevel available
SvenVw Oct 20, 2025
8b2bf8c
chore: add changeset
SvenVw Oct 20, 2025
ed417fa
feat: make isValidTracesNumber and isValidSkalNumber available
SvenVw Oct 20, 2025
675b8f0
chore: add and update shadcn components
SvenVw Oct 20, 2025
2c9aafa
feat: Add new page at farm details to add whether the farm has an org…
SvenVw Oct 20, 2025
c1ebe6d
feat: Add new page at farm details to state whether the farmer has do…
SvenVw Oct 20, 2025
f7a2bd2
refactor: improve design for derogation
SvenVw Oct 20, 2025
3fc0993
feat: if p_type_rvo is present overwrite p_type
SvenVw Oct 20, 2025
bf8b0ff
feat: show in the fertilizer table the RVO mestcode
SvenVw Oct 20, 2025
9dfde4c
feat: Replace Meststoftype with Mestcode (RVO) at fertilizer forms
SvenVw Oct 20, 2025
da64906
fix: link in header of fertilizers
SvenVw Oct 20, 2025
af2721f
chore: add lucide lab icons
SvenVw Oct 20, 2025
e1efe2b
refactor: rename to beweiding
SvenVw Oct 20, 2025
f392d1a
feat: add links to organic certifications and grazing intention
SvenVw Oct 20, 2025
e42c59a
refactor: use same order for farm options
SvenVw Oct 20, 2025
0569597
chore(deps): bump vite in the npm_and_yarn group across 1 directory
dependabot[bot] Oct 21, 2025
7c42bf5
Merge pull request #301 from SvenVw/dependabot/npm_and_yarn/npm_and_y…
SvenVw Oct 21, 2025
ad31eed
Merge remote-tracking branch 'origin/development' into FDM284
SvenVw Oct 21, 2025
46c4dc1
fix: adapt the code so it can build by removing server code from client
SvenVw Oct 21, 2025
a258a14
fix: various issues during testing
SvenVw Oct 21, 2025
276f35a
feat: Show to the farm norms page the filling of the norms as well
SvenVw Oct 21, 2025
73be0f3
feat: Add page to show on field level the norm values and fillings. I…
SvenVw Oct 21, 2025
9873f95
refactor: improve and make design more consistent for norms
SvenVw Oct 21, 2025
1bf63cb
chore: improve imports
SvenVw Oct 21, 2025
d5e7af5
feat: include field options in the header
SvenVw Oct 21, 2025
0c5bd25
tests: small fix
SvenVw Oct 21, 2025
5136d5a
test: fix mock
SvenVw Oct 21, 2025
0d49209
refactor: improve description
SvenVw Oct 21, 2025
100f5cb
fix: backticks
SvenVw Oct 22, 2025
b35608c
refactor: use consistent naming
SvenVw Oct 22, 2025
b894bcb
fix: typo
SvenVw Oct 22, 2025
891a64c
fix: import
SvenVw Oct 22, 2025
6190629
fix: improve organic certification validation
SvenVw Oct 22, 2025
796a260
fix: guard against undefined
SvenVw Oct 22, 2025
dcd205d
fix: tailwind class
SvenVw Oct 22, 2025
14ba21c
fix: guard against undefined options
SvenVw Oct 22, 2025
24d2220
fix: validate inputs for grazing intention
SvenVw Oct 22, 2025
ba4e3ea
fix: imports
SvenVw Oct 22, 2025
6b70822
fix: typo
SvenVw Oct 22, 2025
de3eb17
test: fix mocked object
SvenVw Oct 22, 2025
8d22564
test: fix async rejection assertion
SvenVw Oct 22, 2025
85c5487
fix: import
SvenVw Oct 22, 2025
cf2de92
fix: Enforce one farm per organic certification and derogation
SvenVw Oct 22, 2025
9a010c2
refactor: remove duplicate key
SvenVw Oct 22, 2025
7afd96e
fix: guard against missing value
SvenVw Oct 22, 2025
acedfaf
refactor: use consistent error message
SvenVw Oct 22, 2025
452f01a
fix: include last day of the year
SvenVw Oct 22, 2025
b581f39
fix: type
SvenVw Oct 22, 2025
1754ff5
test: fix
SvenVw Oct 22, 2025
1d178e6
fix: guard against undefined
SvenVw Oct 22, 2025
82d7d2b
chore: remove db migration for git merge
SvenVw Oct 22, 2025
f126437
Merge branch 'FDM284' into FDM297
SvenVw Oct 22, 2025
cde2813
refactor: improve schema for fdm-calculator
SvenVw Oct 22, 2025
187f5bf
refactor: improve calculator caching functions
SvenVw Oct 22, 2025
076280b
docs: add typedocs and inline comment to cache calculator
SvenVw Oct 22, 2025
29a4105
chore: generate db migration
SvenVw Oct 22, 2025
5683be7
test: improve the tests for calculator cache
SvenVw Oct 22, 2025
e2be107
reafactor: use consistent naming for norms functions
SvenVw Oct 22, 2025
35a2d9d
Merge branch 'FDM284' into FDM297
SvenVw Oct 22, 2025
2632e13
fix: use function correctly
SvenVw Oct 22, 2025
b1eeaee
refactor: implement the caching for the norms functions
SvenVw Oct 22, 2025
b9b95b0
test: fixes
SvenVw Oct 22, 2025
00922e9
refactor: revert nutrient advice caching as it needs to be moved to f…
SvenVw Oct 22, 2025
91d4103
docs: improve changesets
SvenVw Oct 22, 2025
a74a6e8
feat: add `getNutrientAdvice` and `requestNutrientAdvice` to fetch nu…
SvenVw Oct 23, 2025
8b854af
refactor: Move `getNutrientAdvice` to fdm-calculator and use the cach…
SvenVw Oct 23, 2025
2934149
fix: use update function input for norms
SvenVw Oct 23, 2025
b6f4cb2
refactor: use more appropriate loop
SvenVw Oct 23, 2025
7714297
fix: use correct implementation of cached version of getNitrogenBalance
SvenVw Oct 23, 2025
6a04fff
fix: use cached versions correctly
SvenVw Oct 23, 2025
619896d
refactor: include function name in withCalculationCache as after buil…
SvenVw Oct 23, 2025
058de18
refactor: comment the logs, so they can be used for debugging and not…
SvenVw Oct 23, 2025
254ee32
test: update tests for withCalculationCache to include calculationFun…
SvenVw Oct 23, 2025
7409e2d
fix: exception introduced by #294 at nitrogen balance field page
SvenVw Oct 23, 2025
c3dfb63
refactor: return only the current field’s input instead of the full d…
SvenVw Oct 23, 2025
3fffd4d
Merge pull request #303 from SvenVw/FDM294-1
SvenVw Oct 23, 2025
1de1acc
Merge branch 'development' into FDM284
SvenVw Oct 23, 2025
3e567bf
Merge branch 'FDM284' into FDM297
SvenVw Oct 23, 2025
5e711d7
feat: Improve the design of the list of fertilizer applications by ad…
SvenVw Oct 23, 2025
d412dd0
chore: remove not needed code
SvenVw Oct 23, 2025
af9afe2
feat: setup a simple design for fertilizer applications metrics
SvenVw Oct 23, 2025
10144c2
chore: update progress component
SvenVw Oct 24, 2025
48e0ebe
refactor: include a color argument for the progress bar
SvenVw Oct 24, 2025
4579fd0
refactor: improve the design of the metrics
SvenVw Oct 24, 2025
ea079bc
refactor: improve spacing and alignment
SvenVw Oct 24, 2025
5d33a0b
feat: add links to pages for more information
SvenVw Oct 24, 2025
076b4ce
Merge branch 'main' into development
SvenVw Oct 24, 2025
5c78e79
refactor: switch the logic for onFarmProduced to be based on has_graz…
SvenVw Oct 27, 2025
5a43693
docs: remove outdated comments
SvenVw Oct 27, 2025
ab42236
test: move test to correct place
SvenVw Oct 27, 2025
ca38811
Merge branch 'development' into FDM284
SvenVw Oct 27, 2025
cf89a92
test: remove duplicate test
SvenVw Oct 27, 2025
6ee8422
docs: Update and extend the documentation for 2025 Dutch Fertilizer A…
SvenVw Oct 27, 2025
f1bc56b
chore(deps): bump validator in the npm_and_yarn group across 1 directory
dependabot[bot] Oct 28, 2025
3b03e49
Merge pull request #309 from SvenVw/dependabot/npm_and_yarn/npm_and_y…
SvenVw Oct 28, 2025
f6d2760
docs: add missing tag
SvenVw Oct 28, 2025
a232478
docs: remove link as it is broken
SvenVw Oct 28, 2025
1858657
Merge pull request #308 from SvenVw/FDM284-docs
SvenVw Oct 28, 2025
2413e2b
Merge branch 'development' into FDM284
SvenVw Oct 28, 2025
48bde12
Merge branch 'FDM284' into FDM297
SvenVw Oct 28, 2025
ff60416
Merge branch 'FDM297' into FDM291
SvenVw Oct 28, 2025
55e9526
chore: fix lockfile
SvenVw Oct 24, 2025
7b7767c
refactor: improve layout of stikstofbalans metric
SvenVw Oct 28, 2025
ebb370c
refactor: improve usage of spacing for metrics
SvenVw Oct 28, 2025
8062bb9
Allow editing existing fertilizer applications
BoraIneviNMI Oct 28, 2025
f87afde
Allow going back from fertilizer management route to the update ferti…
BoraIneviNMI Oct 28, 2025
c5e90f9
Fix validation messages for p_app_id
BoraIneviNMI Oct 28, 2025
54f89b5
useEffect and improve type checking
BoraIneviNMI Oct 28, 2025
341ea51
Update HTTP method in the route
BoraIneviNMI Oct 28, 2025
534724c
feat: add spinner component
SvenVw Oct 28, 2025
7c23964
refactor: add data connection for nitrogenbalancemetrics
SvenVw Oct 28, 2025
eb76386
refactor: connect nutrientAdvice to fertilizerApplicationMetrics
SvenVw Oct 28, 2025
7252282
chore: improve naming
SvenVw Oct 28, 2025
67354eb
fix: type of principal_id
SvenVw Oct 28, 2025
b656836
refactor: connect norms metrics to actual data
SvenVw Oct 28, 2025
a4931cd
Enable editing of fertilizer applications in cultivation plan
BoraIneviNMI Oct 28, 2025
4af02c7
Merge branch 'main' into development
SvenVw Oct 30, 2025
8f9d4ff
feat: Improve check for `b_isproductive` by checking if name contains…
SvenVw Oct 30, 2025
3eb18f1
Nitpicks
BoraIneviNMI Oct 30, 2025
0179337
docs: improve typedocs for determineIfFieldIsProductive
SvenVw Oct 30, 2025
b71bf41
Add changeset
BoraIneviNMI Oct 30, 2025
de0bae4
Merge branch 'development' into FDM307
BoraIneviNMI Oct 30, 2025
08c65cb
feat: add errorElements for fertilizer application metrics
SvenVw Oct 30, 2025
0a98254
feat: include links to apps
SvenVw Oct 30, 2025
146675d
feat: add tooltips to explain fertilzer applicatio metrics
SvenVw Oct 30, 2025
afd5e99
Merge pull request #318 from SvenVw/FDM317
SvenVw Oct 30, 2025
8f8cc9f
feat: show small doses and progress bar for no advice as well
SvenVw Oct 30, 2025
3ae09c6
refactor: switch rounding method
SvenVw Oct 30, 2025
917ff32
refactor: improve the loading states during post and delete request
SvenVw Oct 30, 2025
3eb4ec2
chore: add changeset
SvenVw Oct 30, 2025
66bf81c
refactor: rename the component
SvenVw Oct 30, 2025
554ec44
Merge branch 'development' into FDM284
SvenVw Oct 31, 2025
1a0c29f
Merge pull request #285 from SvenVw/FDM284
SvenVw Oct 31, 2025
5a55c76
Merge branch 'development' into FDM297
SvenVw Oct 31, 2025
a0b9eae
Merge branch 'development' into FDM307
SvenVw Oct 31, 2025
6f75931
test: fix function name
SvenVw Oct 31, 2025
74108f0
refactor: rename PatchFormSchema to FormSchemaModify
SvenVw Oct 31, 2025
12071d1
fix: use static id generation
SvenVw Oct 31, 2025
d414e92
fix: improve error message
SvenVw Oct 31, 2025
8d467d5
refactor: Move useId() call to component top level
SvenVw Oct 31, 2025
518aaf7
fix: typo
SvenVw Oct 31, 2025
73609a1
Merge pull request #311 from SvenVw/FDM307
SvenVw Oct 31, 2025
a07380a
Merge branch 'development' into FDM297
SvenVw Oct 31, 2025
dff985c
Merge branch 'FDM297' into FDM291
SvenVw Oct 31, 2025
afad741
fix: merge isssues
SvenVw Oct 31, 2025
5f1f747
chore: remove not used package
SvenVw Oct 31, 2025
7140a53
fix: Cache write failures break graceful degradation
SvenVw Oct 31, 2025
d043845
fix: Error logging failures mask the original calculation error
SvenVw Oct 31, 2025
870c51b
fix: Make result field .notNull() to match code expectations.
SvenVw Oct 31, 2025
5b0ae45
fix: unexpected end of file
SvenVw Oct 31, 2025
9584c5d
Merge branch 'FDM297' into FDM291
SvenVw Oct 31, 2025
49a07fc
fix: broken lockfile
SvenVw Oct 31, 2025
2a71b5d
Make the whole drop area the shapefile label
BoraIneviNMI Oct 31, 2025
d756cf4
Add changeset
BoraIneviNMI Oct 31, 2025
a7381bd
Merge pull request #300 from SvenVw/FDM297
SvenVw Oct 31, 2025
9b024be
Merge branch 'development' into FDM291
SvenVw Oct 31, 2025
8f41139
Insert dropped files into the input properly
BoraIneviNMI Oct 31, 2025
06314a5
Update changeset
BoraIneviNMI Oct 31, 2025
7cf60d8
remove: not needed icon
SvenVw Oct 31, 2025
a0b58e0
refactor: improve spacing
SvenVw Oct 31, 2025
873655f
Merge branch 'development' into FDM312
SvenVw Oct 31, 2025
ae56457
Nitpicks
BoraIneviNMI Oct 31, 2025
c7fcf94
fix: incorrect property access for manure norm filling
SvenVw Oct 31, 2025
0060afe
fix: Add error handling for missing field in nitrogen balance result
SvenVw Oct 31, 2025
45c86cd
nitpicks
SvenVw Oct 31, 2025
d815edc
Merge pull request #306 from SvenVw/FDM291
SvenVw Oct 31, 2025
a78df5d
Do not use aria role for the file drop area
BoraIneviNMI Nov 3, 2025
399b4a3
Merge branch 'development' into FDM312
SvenVw Nov 3, 2025
42ddf7b
chore: add biome explaination that Label is focusable
SvenVw Nov 3, 2025
9f7939b
docs: add 2025-10 release notes
SvenVw Nov 3, 2025
b05bc38
docs: update db schema description
SvenVw Nov 3, 2025
519cce0
docs: add entry for what's new
SvenVw Nov 3, 2025
97cb877
chore: rename db migrations file
SvenVw Nov 3, 2025
4eb3c9b
feat: setup a release process for FDM
SvenVw Nov 3, 2025
e930c54
docs: document the release process in FDM
SvenVw Nov 3, 2025
632b9b7
docs: small improvement
SvenVw Nov 3, 2025
61024ec
docs: add truncate marks
SvenVw Nov 3, 2025
b0fb323
fix: dragging for shapefile upload as well
SvenVw Nov 3, 2025
a2f8419
fix: parsing of `b_date` in the response for th soil analysis extraction
SvenVw Nov 3, 2025
b1c842f
Merge pull request #319 from SvenVw/FDM312
SvenVw Nov 3, 2025
fff49bf
Merge branch 'development' into release/2025-10
SvenVw Nov 3, 2025
eeda969
chore: update sentry and posthog
SvenVw Nov 3, 2025
76cee4f
chore: bump version of packages for release
SvenVw Nov 3, 2025
b4a6195
fix: typo
SvenVw Nov 4, 2025
523cb04
fix: useEffect dependency
SvenVw Nov 4, 2025
07b626d
fix: keep the RVO code non-empty server-side
SvenVw Nov 4, 2025
d5f99eb
fix: Guard against non-numeric calendar values
SvenVw Nov 4, 2025
23fc955
fix: Remove the hard-coded 2025 ceiling for grazing intention
SvenVw Nov 4, 2025
e964b95
fix: Guard against non-numeric calendar values
SvenVw Nov 4, 2025
05ffcbe
fix: BRP code extraction before calling NMI
SvenVw Nov 4, 2025
e158b75
fix: add missing import
SvenVw Nov 4, 2025
4acf59a
fix: empty-catalogue guard before querying
SvenVw Nov 4, 2025
de403a1
fix: default start for cultivation that can be harvested multiple times
SvenVw Nov 4, 2025
80efb32
fix: normValue to zero if negative
SvenVw Nov 4, 2025
b03662d
fix: correct request body
SvenVw Nov 4, 2025
ff1fe84
fix: exception when vanggewas has no end date
SvenVw Nov 4, 2025
c45a7c6
chore: format the code
SvenVw Nov 4, 2025
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
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10.17.0
version: 10.18.3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10.17.0
version: 10.18.3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/release-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release PR Comment

on:
pull_request:
types: [opened, reopened]
branches:
- main # Only trigger for PRs targeting main

jobs:
add-comment:
runs-on: ubuntu-latest
if: startsWith(github.head_ref, 'release/') || startsWith(github.head_ref, 'hotfix/')
permissions:
pull-requests: write
steps:
- name: Add PR Comment
uses: actions/github-script@v7
with:
script: |
const isHotfix = context.payload.pull_request.head.ref.startsWith('hotfix/');
const branchType = isHotfix ? 'Hotfix' : 'Release';
const workflowName = 'Release'; // The name of your workflow file

const commentBody = `
👋 **${branchType} Branch PR Detected!**

Before merging this Pull Request into \`main\`, please ensure you have finalized the ${branchType.toLowerCase()} by **manually running the '${workflowName}' workflow** on this \`${context.payload.pull_request.head.ref}\` branch.

This will:
1. Bump package versions.
2. Generate changelogs.
3. Create Git tags.

You can trigger the workflow from the 'Actions' tab, selecting the '${workflowName}' workflow, and choosing this \`${context.payload.pull_request.head.ref}\` branch.
`;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: commentBody
});
114 changes: 80 additions & 34 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,107 @@
name: Prerelease
name: Release

on:
push:
paths:
- 'fdm-core/**'
- 'fdm-data/**'
branches:
- main
- development
workflow_dispatch: # This enables the manual trigger
pull_request:
branches:
- main # Trigger for pull requests targeting main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
Release:
release:
name: Release
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22]
permissions:
contents: read
contents: write
packages: write
pull-requests: write # Required for the status check
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-

- name: Setup pnpm 10
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.17.0
version: 10.18.3

- name: Use Node.js ${{ matrix.node-version }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://npm.pkg.github.com'
node-version: 22
cache: 'pnpm'

- name: Install Dependencies
run: pnpm i
run: pnpm install --frozen-lockfile

- name: Bump snapshot
run: pnpm changeset version
# Runs for the 'development' branch on push
- name: Publish Snapshot
if: github.ref == 'refs/heads/development'
run: |
pnpm changeset version --snapshot
pnpm changeset publish --tag development
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build packages
run: pnpm build --filter=@svenvw/fdm-core --filter=@svenvw/fdm-data --filter=@svenvw/fdm-calculator

- name: Publish snapshot
run: pnpm changeset publish
# Runs MANUALLY on a 'release/*' or 'hotfix/*' branch
- name: Version Packages
if: github.event_name == 'workflow_dispatch' && (startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/hotfix/'))
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
pnpm changeset version
pnpm changeset tag
git add .
git commit -m "chore: bump version of packages for release"
git push --follow-tags
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Runs for the 'main' branch on push
- name: Publish Packages and Create Releases
if: github.ref == 'refs/heads/main'
run: |
pnpm build --filter="!@svenvw/fdm-app"
pnpm changeset publish --no-git-tag

git tag --points-at HEAD | while read -r tag; do
gh release create "$tag" --generate-notes
done
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

verify-versioning:
name: Verify Versioning
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && (startsWith(github.head_ref, 'release/') || startsWith(github.head_ref, 'hotfix/'))
permissions:
pull-requests: write # Required to update PR status
contents: read # Required to checkout code
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0

- name: Check for Versioning Commit
id: check_commit
run: |
if git log --format="%s" -n 1 | grep -q "chore: bump version of packages for release"; then
echo "::notice::Versioning commit found. All good!"
echo "versioning_commit_found=true" >> "$GITHUB_OUTPUT"
else
echo "::error::Versioning commit 'chore: bump version of packages for release' not found. Please run the 'Release' workflow manually on this branch."
echo "versioning_commit_found=false" >> "$GITHUB_OUTPUT"
exit 1
fi
shell: bash
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Setup pnpm 10
uses: pnpm/action-setup@v4
with:
version: 10.17.0
version: 10.18.3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
- name: Setup pnpm 10
uses: pnpm/action-setup@v4
with:
version: 10.17.0
version: 10.18.3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
Expand Down Expand Up @@ -226,7 +226,7 @@ jobs:
- name: Setup pnpm 10
uses: pnpm/action-setup@v4
with:
version: 10.17.0
version: 10.18.3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
Expand Down
50 changes: 50 additions & 0 deletions fdm-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,55 @@
# Changelog fdm-app

## 0.24.0

### Minor Changes

- 9dfde4c: Replace Meststoftype with Mestcode (RVO) at fertilizer forms
- 5e711d7: Improve the design of the list of fertilizer applications by adding an icon for the type of fertilizer and better usage of spacing and aligning
- bf8b0ff: In the fertilizer table show the RVO mestcode (p_type_rvo) colored by p_type instead of only p_type
- 2c9aafa: Add new page at farm details to add whether the farm has an organic certification
- 06314a5: Fixes that user can drop files as well for Mijn Percelen shapefile upload and Soil Analysis pdf upload.
- b71bf41: Users can now edit previously created fertilizer applications, both for individual fields or a given cultivation type.
- 77c309d: In case a field has an error at the nitrogen balance calculation, the balance at farm level and other fields are still shown, but an error message for the specific field is shown
- c1ebe6d: Add new page at farm details to state whether the farmer has done grazing or intends it for a year
- d756cf4: The users can now drop files onto the entire shapefile upload area during farm creation, not just on top of the text and icons.
- d279d08: For cultivations default dates based on the cultivation catalogue date are used for b_lu_start and b_lu_end if available when adding a field with a cultivation
- 276f35a: Show to the farm norms page the filling of the norms as well
- 3eb4ec2: At the fertilizer applications page for a field show the metrics for norms, nitrogen balance and nutrient advice as well
- 73be0f3: Add page to show on field level the norm values and fillings. It shows also the contribution of each fertilizer application to the various norms

### Patch Changes

- 1a89d67: Submit "other" errors for loaders and actions to Sentry
- 8f8cc9f: At Nutrient Advice show progress bar for nutrients that have advice of 0
- beef80c: Submit calculation errors at nitrogen balance calculation to Sentry
- 8b854af: Move `getNutrientAdvice` to fdm-calculator and use the cached version of the function
- 8f8cc9f: At Nutrient Advice show doses with precision of 2 if dose is between 0 and 1 kg / ha instead of showing 0
- a2f8419: Fix parsing of `b_date` in the response for th soil analysis extraction
- da64906: Fix link in header of fertilizers
- 91d4103: Switch to use the cached version of the calculator functions for `norms` and `balance`
- Updated dependencies [97083dd]
- Updated dependencies [a74a6e8]
- Updated dependencies [a226f7e]
- Updated dependencies [77c309d]
- Updated dependencies [a00a331]
- Updated dependencies [726ae00]
- Updated dependencies [8f9d4ff]
- Updated dependencies [2f7b281]
- Updated dependencies [c939de9]
- Updated dependencies [b58cd07]
- Updated dependencies [77c309d]
- Updated dependencies [d6b8900]
- Updated dependencies [b58cd07]
- Updated dependencies [ac5d94f]
- Updated dependencies [91d4103]
- Updated dependencies [8b2bf8c]
- Updated dependencies [6bcb528]
- Updated dependencies [91d4103]
- @svenvw/fdm-data@0.18.0
- @svenvw/fdm-calculator@0.8.0
- @svenvw/fdm-core@0.26.0

## 0.23.2

### Patch Changes
Expand Down
Loading
Loading