From d622e8d6d71e27890c73e2428e6dcf9d44ca606e Mon Sep 17 00:00:00 2001 From: Batese2001 <69521504+Batese2001@users.noreply.github.com> Date: Mon, 11 Oct 2021 09:16:07 -0400 Subject: [PATCH] Summary Table Timing and No Log Messages (#289) * Added a message when a date range contains no logs * Summary Tables now remain invisible until the API returns * Summary now shows a message when only direct or tray seeding is in the table * Added Testing for the One Type Message code * Added testing for No Logs message * Added testing for summary table showing up after fully loaded table * Removed redundant logins * Replaced "before" with "beforeEach" and tests now run without 403 errors --- .../fd2_tabs/fd2_barn_kit/seedingReport.html | 57 +++++++--- .../fd2_barn_kit/seedingReport.spec.js | 106 +++++++++++++++++- 2 files changed, 148 insertions(+), 15 deletions(-) diff --git a/farmdata2_modules/fd2_tabs/fd2_barn_kit/seedingReport.html b/farmdata2_modules/fd2_tabs/fd2_barn_kit/seedingReport.html index f0fa787..f3b49b1 100644 --- a/farmdata2_modules/fd2_tabs/fd2_barn_kit/seedingReport.html +++ b/farmdata2_modules/fd2_tabs/fd2_barn_kit/seedingReport.html @@ -31,28 +31,49 @@

Seeding Report

-
+

-
Direct Seeding Summary -

Total Row/Bed Planted: {{ totalRowBed }}

-

Total Row Feet Planted: {{ totalRowFeet }}

-

Total Bed Feet Planted: {{ totalBedFeet }}

-

Total Hours Worked: {{ totalDirectSeedingHours }}

-

Total Bed Feet per Hour: {{ totalBedFeetPerHour }}

-

Total Row Feet per Hour: {{ totalRowFeetPerHour }}

+
+

There are no Direct Seeding logs with these parameters

+
+
+

Total Row/Bed Planted: {{ totalRowBed }}

+

Total Row Feet Planted: {{ totalRowFeet }}

+

Total Bed Feet Planted: {{ totalBedFeet }}

+

Total Hours Worked: {{ totalDirectSeedingHours }}

+

Total Bed Feet per Hour: {{ totalBedFeetPerHour }}

+

Total Row Feet per Hour: {{ totalRowFeetPerHour }}

+
Tray Seeding Summary -

Total Number of Tray Seeds Planted: {{ traySeedsPlanted }}

-

Total Number of Trays: {{ totalNumTrays }}

-

Total Hours Worked: {{ totalTraySeedingHours }}

-

Average Seeds Planted per Hour: {{ aveSeedsPerHour }}

+
+

There are no Tray Seeding logs with these parameters

+
+
+

Total Number of Tray Seeds Planted: {{ traySeedsPlanted }}

+

Total Number of Trays: {{ totalNumTrays }}

+

Total Hours Worked: {{ totalTraySeedingHours }}

+

Average Seeds Planted per Hour: {{ aveSeedsPerHour }}

+
+
+
+ No Logs Found in These Dates +
+