+
+
+
\ No newline at end of file
From 7ddddf978da64e2e4af7d8a68873209942c58247 Mon Sep 17 00:00:00 2001
From: josieecook
Date: Mon, 5 Apr 2021 20:28:06 -0400
Subject: [PATCH 02/45] Added start date and end date inputs to the tray
seeding report tab, and set the default end date to the current day.
---
.../fd2_tabs/fd2_barn_kit/fd2_barn_kit.module | 13 ++++++-
.../fd2_barn_kit/traySeedingReport.html | 36 +++++++++++++++++++
2 files changed, 48 insertions(+), 1 deletion(-)
create mode 100644 farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html
diff --git a/farmdata2_modules/fd2_tabs/fd2_barn_kit/fd2_barn_kit.module b/farmdata2_modules/fd2_tabs/fd2_barn_kit/fd2_barn_kit.module
index e61281f169..63a8ef293c 100644
--- a/farmdata2_modules/fd2_tabs/fd2_barn_kit/fd2_barn_kit.module
+++ b/farmdata2_modules/fd2_tabs/fd2_barn_kit/fd2_barn_kit.module
@@ -53,9 +53,20 @@ function fd2_barn_kit_menu() {
$items['farm/fd2-barn-kit/info'] = array(
'title' => 'Info',
'type' => MENU_DEFAULT_LOCAL_TASK,
- 'weight' => -100,
+ 'weight' => -10,
+ );
+
+!
+ $items['farm/fd2-barn-kit/traySeedingReport'] = array(
+ 'title' => 'Tray Seeding Report',
+ 'page callback' => 'fd2_barn_kit_view',
+ 'page arguments' => array('traySeedingReport.html'),
+ 'access arguments' => array('view fd2 barn kit'),
+ 'type' => MENU_LOCAL_TASK,
+ 'weight' => -10,
);
+
return $items;
};
diff --git a/farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html b/farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html
new file mode 100644
index 0000000000..f9791e197d
--- /dev/null
+++ b/farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
From 496d4bc6296e8bb23964ec35e38bfd4a03e94e58 Mon Sep 17 00:00:00 2001
From: josieecook
Date: Sat, 10 Apr 2021 22:13:17 -0400
Subject: [PATCH 03/45] Added comments to traySeedingReport.html for better
readability
---
.../fd2_tabs/fd2_barn_kit/traySeedingReport.html | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html b/farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html
index f9791e197d..7335f2863c 100644
--- a/farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html
+++ b/farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html
@@ -1,8 +1,10 @@
+ //Label and field for Start Date input
+ //Label and field for End Date input
@@ -13,6 +15,9 @@
data: {
reportStart: '2018-05-01',
reportEnd: '2018-07-31',
+ traySeedingLogs: [
+
+ ],
},
methods: {
timestampToYMD: function(timestamp) {
From 04efe74ff5503ffe0b5f0e14eb7b895a47abab6d Mon Sep 17 00:00:00 2001
From: josieecook
Date: Sat, 10 Apr 2021 23:24:35 -0400
Subject: [PATCH 04/45] Added a traySeedingLogRequest method that will make an
API request to get seeding logs within the dates specified in the start and
end date inputs. Also began to fill in table with appropriate variables from
the request.
---
.../fd2_barn_kit/traySeedingReport.html | 25 ++++++++++++++++---
1 file changed, 21 insertions(+), 4 deletions(-)
diff --git a/farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html b/farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html
index 8336cfad38..2eb6c5866a 100644
--- a/farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html
+++ b/farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html
@@ -49,10 +49,10 @@
this.crops.push({rptCrop: 'Kale', reportStart: '2018-05-01', reportEnd: '2018-07-31'});
}
},
+ traySeedingLogRequest: function(field) {
+ let s = this.YMDToTimestamp(this.reportStart);
+ let e = this.YMDToTimestamp(this.reportEnd);
+ axios.get('/log.json?type=farm_seeding×tamp[ge]=' + s + '×tamp[le]=' + e)
+ .then(response => {
+ this.traySeedingLogs = response.data.list.map(t => {
+ return {
+ date:t.timestamp,
+ crop:t.name,
+ numSeeds:t.quantity,
+ };
+ });
+ })
+ },
},
created() {
//let today = new Date.now();
From 50e33644fdf612181021964da3b346dd8f8f48c3 Mon Sep 17 00:00:00 2001
From: josieecook
Date: Sun, 11 Apr 2021 00:26:15 -0400
Subject: [PATCH 05/45] Added a traySeedingLogRequest method that sends an API
request for tray seeding logs between the specified start and end dates. The
dates of each log are added to the table, but all of the other details are
currently blank.
---
.../fd2_barn_kit/traySeedingReport.html | 98 ++++++++++---------
1 file changed, 54 insertions(+), 44 deletions(-)
diff --git a/farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html b/farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html
index 2eb6c5866a..0295a8624e 100644
--- a/farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html
+++ b/farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html
@@ -10,56 +10,56 @@
Tray Seeding Report
-
-
+
+
-
+
-
-
+
+
-
-
-
-
-
-
-
Mock Report
-
-
-
Start:{{}}
-
End:{{}}
-
Crop:{{}}
-
+
+
+
+
+
+
Mock Report
+
+
+
Start:{{}}
+
End:{{}}
+
Crop:{{}}
+
-
-
-
-
Date of Seeding
-
Crop
-
Number of Seeds
-
Number of Trays
-
Cells per Tray
-
Variety
-
User
-
Comments
-
+
+
+
+
Date of Seeding
+
Crop
+
Number of Seeds
+
Number of Trays
+
Cells per Tray
+
Variety
+
User
+
Comments
+
-
-
{{ timestampToYMD(log.date)}}
-
{{ log.crop }}
-
{{ log.numSeeds }}
-
-
-
-
-
-
-
+
+
{{ timestampToYMD(log.date) }}
+
{{ }}
+
{{ }}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
From ae7578665dc3769910d1d913bad6d6b1b13df13f Mon Sep 17 00:00:00 2001
From: Diego2214
Date: Mon, 12 Apr 2021 13:27:41 -0700
Subject: [PATCH 07/45] Added All option to crop downdown
---
.../fd2_tabs/fd2_barn_kit/traySeedingReport.html | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html b/farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html
index 297ac9ff83..3e152937a5 100644
--- a/farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html
+++ b/farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html
@@ -22,7 +22,11 @@
Tray Seeding Report
created() {
axios.get('/farm_asset.json?type=planting').then(response => {
this.crops = response.data.list.map(f => f.name).sort();
+ this.crops.splice(0,0,"All");
});
+ // push all into crops array, make sure it goes to the top. Just incert on the top.
+ // once i get generate reort report, then get the API request to call all the crops.
+ // Make a API request, make sure to filter out the right things
}
});
Vue.config.devtools = true;
From f58fcf923f97661d432f808542eb0a1acba57ffe Mon Sep 17 00:00:00 2001
From: Diego2214
Date: Tue, 13 Apr 2021 13:09:43 -0700
Subject: [PATCH 08/45] Cleaned Up code and made sure date/crops appear on
table
---
.../fd2_barn_kit/traySeedingReport.html | 44 +++++++++----------
1 file changed, 22 insertions(+), 22 deletions(-)
diff --git a/farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html b/farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html
index 7d2e561423..c57f4c4ffb 100644
--- a/farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html
+++ b/farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html
@@ -9,30 +9,24 @@
Tray Seeding Report
-
-
-
-
-
-
-
-
+
+
Mock Report
-
Start:{{}}
-
End:{{}}
-
Crop:{{}}
+
Start:{{reportStart}}
+
End:{{reportEnd}}
+
Crop:{{rptCrop}}
@@ -48,9 +42,9 @@
Mock Report
Comments
-
-
In Progress
-
+
+
{{hlog.date}}
+
{{ hlog.crop }}
@@ -60,15 +54,17 @@
Mock Report
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Mock Report
-
-
-
Start:{{reportStart}}
-
End:{{reportEnd}}
-
Crop:{{rptCrop}}
-
-
-
-
-
-
Date of Seeding
-
Crop
-
Number of Seeds
-
Number of Trays
-
Cells per Tray
-
Variety
-
User
-
Comments
-
Delete
-
-
-
-
-
{{ timestampToYMD(log.date) }}
-
{{ log.crop }}
-
{{ }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
From d9ab6b6bdaf2d0d9a765d192c395ca9fe6f6c6c6 Mon Sep 17 00:00:00 2001
From: josieecook <60167626+josieecook@users.noreply.github.com>
Date: Wed, 21 Apr 2021 09:02:52 -0400
Subject: [PATCH 17/45] Deleted traySeedingReport.html in main
Returning main to original upstream code by removing file traySeedingReport.html.
---
.../fd2_barn_kit/traySeedingReport.html | 172 ------------------
1 file changed, 172 deletions(-)
delete mode 100644 farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html
diff --git a/farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html b/farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html
deleted file mode 100644
index 975314c6ff..0000000000
--- a/farmdata2_modules/fd2_tabs/fd2_barn_kit/traySeedingReport.html
+++ /dev/null
@@ -1,172 +0,0 @@
-
-
Tray Seeding Report
-
-
\ No newline at end of file
From b12c9682bdcefaf95b667376f1efd3a5bc20094a Mon Sep 17 00:00:00 2001
From: josie
Date: Mon, 7 Jun 2021 09:17:44 -0400
Subject: [PATCH 18/45] Commiting progress in the cypress tests of the crop and
field drop-down components
---
.../cropAndFieldPickersTesting.html | 106 ++++++++++++++++++
.../integration/componentTesting.spec.js | 21 +++-
.../fd2_tabs/fd2_example/fd2_example.module | 9 ++
3 files changed, 131 insertions(+), 5 deletions(-)
create mode 100644 farmdata2_modules/fd2_tabs/fd2_example/cropAndFieldPickersTesting.html
diff --git a/farmdata2_modules/fd2_tabs/fd2_example/cropAndFieldPickersTesting.html b/farmdata2_modules/fd2_tabs/fd2_example/cropAndFieldPickersTesting.html
new file mode 100644
index 0000000000..753911c1d3
--- /dev/null
+++ b/farmdata2_modules/fd2_tabs/fd2_example/cropAndFieldPickersTesting.html
@@ -0,0 +1,106 @@
+
+
+ Crop Picker Component Testing
+
+
+