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.
Purpose
This pull request adds the Harvest button to the FarmData2 Launcher Page under the "Others" category.
The new button appears to the left of the Transplanting button, as requested in Issue #282.
Verification Steps
To verify the functionality manually:
/fd2/harvest.To run automated verification:
test.bash --fd2 --live --e2e --glob="modules/farm_fd2/**/main/*.e2e.cy.js" --guiApproach
Updated
modules/farm_fd2/src/entrypoints/main/App.vueto:image/svg+xml;base64format—consistent with how other icons are defined.Maintained naming conventions:
data-cy="harvest-button"data-cy="harvest-text"data-cy="harvest-icon"Ensured that the new route
/fd2/harvestmatches existing navigation patterns used for other forms.Testing
Updated the E2E test file
main.exists.e2e.cy.jsto:Confirmed the test suite continues to detect missing icons or broken routes, ensuring consistency for future regressions.
All updated tests pass after adding the new button and correcting test paths.
Related Issues
(Add Harvest to the FarmData2 "Launcher" page)
Licensing Certification
FarmData2 is a Free Cultural Work and all accepted contributions are licensed as described in the LICENSE.md file. This requires that the contributor holds the rights to do so. By submitting this pull request I certify that I satisfy the terms of the Developer Certificate of Origin for its contents.