dickinson-comp190 / GitKit-FarmData2-F24

Other
0 stars 2 forks source link

Seeding Report Editing Issues/Bugs/Concerns #48

Open braughtg opened 2 months ago

braughtg commented 2 months ago

Which columns in the seeding report should be editable and when?


Issue by braughtg Tuesday Jun 07, 2022 at 19:37 GMT Originally opened as https://github.com/DickinsonCollege/FarmData2/issues/466

braughtg commented 2 months ago

It seems that a separate issue should be opened to address what was discussed yesterday concerning an inflexibility of the CustomTableComponent: buttons. Every time a new button needs to be added to a table, the component shouldn't have to grow every time.

A potential discussed solution to the button problem: We remove all the buttons currently in the CustomTableComponent (save/cancel/edit/delete) and just add a general button prop that can be added to the end of the component. This increases the flexibility of the component because it reduces the burden of adding buttons to the component and puts that responsibility back on the page which should handle those button presses. We would have to think about how one prop will account for many buttons, but I'm sure that wouldn't be too difficult.

NOTE: Addressed in Issue #530.


Comment by FutzMonitor Tuesday Jul 12, 2022 at 14:49 GMT

braughtg commented 2 months ago

Issue #530 addresses potential updates to the CustomTableComponent that may affect a solution to this issue.


Comment by braughtg Tuesday Jul 12, 2022 at 21:31 GMT

braughtg commented 2 months ago

I believe it would be worthwhile to consult with Matt which elements of the logs should be editable from the report table. Here are a couple of bugs concerning edits and the report table that I have witnessed.

  1. Editing the row feet causes the bed feet to be recalculated. Normally this wouldn't be an issue, but it's misleading when the user changes both row feet and bed feet only for bed feet to ignore the user's input and recalculate itself. Perhaps it might be worthwhile disabling an element when one that affects its recalculation is being changed.
  2. Editing the date, area, and crop all currently do not update the log in the backend.
  3. Editing certain elements doesn't actually update them in the backend. This is detailed thoroughly in #544

Comment by FutzMonitor Wednesday Jul 20, 2022 at 23:03 GMT