PhenoApps / Field-Book

https://fieldbook.phenoapps.org
GNU General Public License v2.0
53 stars 54 forks source link

Adds a new Statistics Page #940

Closed akshat22 closed 1 week ago

akshat22 commented 8 months ago

Description

Adds a new statistics page #871 to Field Book with the following features:

Type of change

What type of changes does your code introduce? Put an x in boxes that apply.

Checklist:

Changelog entry

Please add a one-line changelog entry below. This will be copied to the changelog file during the release process.

Added a new statistics page to display summary of collected data.
chaneylc commented 8 months ago

First of all this looks awesome!

trife commented 8 months ago

@akshat22 for the heatmap, you're going to need to either use the heatmap composable or adapt one of the vertical scrolling calendar views.

trife commented 8 months ago
chaneylc commented 7 months ago

The Config Activity Fields icon is different, is that on purpose?

Tried to select a date range, I think it crashes if you only have one date:

FATAL EXCEPTION: main (Ask Gemini)
                                                                                                    Process: com.fieldbook.tracker.debug, PID: 26100
                                                                                                    java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.Calendar.get(int)' on a null object reference
                                                                                                        at com.fieldbook.tracker.dialogs.DateRangePickerDialog.lambda$onCreateDialog$0$com-fieldbook-tracker-dialogs-DateRangePickerDialog(DateRangePickerDialog.java:60)
                                                                                                        at com.fieldbook.tracker.dialogs.DateRangePickerDialog$$ExternalSyntheticLambda0.onClick(Unknown Source:2)
                                                                                                        at androidx.appcompat.app.AlertController$ButtonHandler.handleMessage(AlertController.java:167)
                                                                                                        at android.os.Handler.dispatchMessage(Handler.java:107)
                                                                                                        at android.os.Looper.loopOnce(Looper.java:232)
                                                                                                        at android.os.Looper.loop(Looper.java:317)
                                                                                                        at android.app.ActivityThread.main(ActivityThread.java:8501)
                                                                                                        at java.lang.reflect.Method.invoke(Native Method)
                                                                                                        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
                                                                                                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)
akshat22 commented 7 months ago

The Config Activity Fields icon is different, is that on purpose?

@chaneylc This is in reference to one of Trevor's notes in the previous comment to switch the icons for Fields and Plots.

Tried to select a date range, I think it crashes if you only have one date:

Noted, will fix this.

trife commented 4 months ago

I've changed the target to fields_modifications which is going to be our base v6 version where this will be released. I have a few minor requests for updates to close this out and get it merged:

trife commented 1 week ago

@chaneylc it looks your implementation crashes if the images don't exist on the device. I'll send you a database to test with to recreate the issue.