Repository navigation
Open
Labels
enhancementNew feature or requestfd2 examplesRelated to the FD2 examples modulegood second issueGood for newcomers looking for a little more challenge
Description
Description
The SoilDisturbance example can be enhanced in several ways:
- In the "Component Props" table:
- A column labeled "Value" should be added to the right side of the table. The cells in this column should display the current value of the Vue
dataattribute that is bound to the corresponding prop. - The "add planter" and "clear equipment" buttons should be labeled "Planter" and "Clear"
- The "Planter" button should be disabled if the "Planter" is already selected.
- Rows and controls should be added for the
depth,speed,areaandpassesprops. The controls for each should be 2 buttons one setting the prop to its minimum value (0 or 1) and one setting it to another responsible value. - The props should be listed in alphabetical order.
- A column labeled "Value" should be added to the right side of the table. The cells in this column should display the current value of the Vue
- In the "Component Event Payloads" table:
- The
SoilDisturbancecomponent emits events forupdate:equipment,update:depth,update:speed,update:area, andupdate:passes. All of these events are missing theupdate:prefix In the "Component Event Payloads" table and should be relabeled to include it. - The "Event"s are not listed in alphabetical order.
- The
Steps to Reproduce
- Go to "FD2 Examples" -> "Components" -> "SoilDisturbance".
- Select a "Planter".
- Scroll down to the "Component Props" table.
- Observe that there is no "Value" column.
- Observe that the "add planter" and "clear equipment" buttons are not labeled correctly.
- Click the "add planter" button and observe that it remains enabled.
- Observe that there are no rows or controls for the
depth,speed,areaandpassesprops. - Observe that the props are not in alphabetical order.
- Scroll down to the "Component Event Payloads" table.
- Observe that the "Event" names are not prefixed with
update:to match the actual event name. - Observe that the "Event"s are not listed in alphabetical order.
Observed Behavior
The "Component Props" table does not contain a "Value" column that displays the current value bound to the prop, the "add planter" button is not disabled, the text in the buttons does not agree with what is specified in the Description above, and the props to not appear in alphabetical order.
The "Component Event Payloads" event labels are missing the update: prefix and do not appear in alphabetical order.
Expected Behavior
The "ComponentProps" and "Component Event Payloads" table should behave as described above in the description and the rows of each table should appear in alphabetical order.
bugInfo.bash Output
git remote -v
-------------
origin https://github.com/FarmData2/FarmData2.git (fetch)
origin https://github.com/FarmData2/FarmData2.git (push)
upstream https://github.com/FarmData2/FarmData2.git (fetch)
upstream https://github.com/FarmData2/FarmData2.git (push)
git log -1 | head -3
--------------------
commit 11b1bd27e7dc3d287336bdc159caca5ad4bdcb9d
Author: Grant Braught <[email protected]>
Date: Mon Dec 15 11:34:51 2025 -0500
cat ~/FarmData2/.fd2dev/db.conf
-------------------------------
v3.7.1
db.sample.tar.gz
docker ps (Images and Names)
----------------------------
farmdata2/farmos3:fd2.1 fd2_farmos
farmdata2/fd2dev:fd2.13 fd2_dev
farmdata2/postgres:fd2.2 fd2_postgres
Further Details
- The code for the
SoilDisturbanceexample can be found inmodules/farm_fd2_examples/src/entrypoints/soil_disturbance/App.vue. A PR for this issue should only modify code in this file. - The
App.vuefiles in thecomment_box,submit_reset_buttonsandtray_size_selectordirectories inmodules/farm_fd2_examples/src/entrypointswill provide helpful examples to work from. - You may find it helpful to reference the code for the
SoilDisturbancecomponent itself, which can be found incomponents/SoilDisturbance/SoilDisturbance.vue. Its documentation can be found in the FarmData2 Components documentation. - The following command is used to rebuild the example pages:
npm run build:examples- Use
SHIFT+reloadto reload the example page after rebuilding it to see your changes.
- Use
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestfd2 examplesRelated to the FD2 examples modulegood second issueGood for newcomers looking for a little more challenge
Activity