diff --git a/html/static/img/pool-overhead.jpg b/html/static/img/pool-overhead.jpg new file mode 100644 index 00000000..f7d29148 Binary files /dev/null and b/html/static/img/pool-overhead.jpg differ diff --git a/html/template/sync/review/pool.html b/html/template/sync/review/pool.html new file mode 100644 index 00000000..30f93c09 --- /dev/null +++ b/html/template/sync/review/pool.html @@ -0,0 +1,290 @@ +{{ template "sync/layout/authenticated.html" . }} + +{{ define "title" }}Review - Pools{{ end }} +{{ define "extraheader" }} + + + +{{ end }} +{{ define "content" }} +
+
+ +
+
+
Review Queue
+ 12 entries pending +
+ +
+
+
+ Entry #2847 + Pending +
+ 2 min ago +
+ 1234 Oak Street +
+ +
+
+
+ Entry #2846 + Pending +
+ 15 min ago +
+ 5678 Maple Avenue +
+ +
+
+
+ Entry #2845 + Pending +
+ 32 min ago +
+ 9012 Pine Road +
+ +
+
+
+ Entry #2844 + Pending +
+ 1 hour ago +
+ 3456 Elm Boulevard +
+ +
+
+
+ Entry #2843 + Pending +
+ 2 hours ago +
+ 7890 Birch Lane +
+ +
+
+
+ Entry #2842 + Reviewed +
+ 3 hours ago +
+ 2468 Cedar Court +
+
+ + +
+
+

Entry #2847 Details

+ +
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+
+
+ + +
+
+ +

Map View Placeholder

+ 1234 Oak Street, Springfield, CA 90210 +
+
+ + +
+
+ +

Aerial Pool Image Placeholder

+ Captured: March 15, 2024 +
+
+
+ + +
+
Actions
+ + + + + +
+ +
Additional Options
+ + + + + + + +
+ +
+
+
Review Statistics
+
    +
  • Today: 8 reviewed
  • +
  • This Week: 47 reviewed
  • +
  • Remaining: 12 pending
  • +
+
+
+ +
+
+
Notes
+ + +
+
+
+
+
+{{ end }} diff --git a/html/template/sync/review/root.html b/html/template/sync/review/root.html index 7bae275e..7f771277 100644 --- a/html/template/sync/review/root.html +++ b/html/template/sync/review/root.html @@ -11,340 +11,22 @@ function onLoad() {} window.addEventListener("load", onLoad); - {{ end }} {{ define "content" }} - -
- -
-
-
Daily Overview
-
-
-
-
Total Records
- 142 -
- +8% -
-
-
-
Acres Treated
- 318.4 -
- -5% -
-
-
-
Anomalies
- 9 -
- Above Avg -
-
-
- -
-
System Signals
-
-
- High acreage deviation - System -
-
- Product-to-acre variance - System -
-
- Rare task combination - Review -
-
-
- - - - - + {{ end }} diff --git a/scss/custom.scss b/scss/custom.scss index 58645982..be6cc8a2 100644 --- a/scss/custom.scss +++ b/scss/custom.scss @@ -57,6 +57,7 @@ $theme-colors: map-merge( @import "./sync/intelligence.scss"; @import "./sync/notification.scss"; @import "./sync/pool-csv-upload.scss"; +@import "./sync/review.scss"; @import "./sync/settings.scss"; @import "./sync/settings-user-list.scss"; @import "./sync/upload-by-id.scss"; diff --git a/scss/sync/review.scss b/scss/sync/review.scss new file mode 100644 index 00000000..26d106e5 --- /dev/null +++ b/scss/sync/review.scss @@ -0,0 +1,3 @@ +a.card-link { + text-decoration: none; +} diff --git a/sync/review.go b/sync/review.go index 12facd2b..d73850e9 100644 --- a/sync/review.go +++ b/sync/review.go @@ -9,8 +9,12 @@ import ( nhttp "github.com/Gleipnir-Technology/nidus-sync/http" ) +type contentReviewPool struct{} type contentReviewRoot struct{} -func getReviewRoot(ctx context.Context, r *http.Request, org *models.Organization, user *models.User) (*html.Response[contentReviewRoot], *nhttp.ErrorWithStatus) { - return html.NewResponse("sync/review-root.html", contentReviewRoot{}), nil +func getReviewPool(ctx context.Context, r *http.Request, org *models.Organization, user *models.User) (*html.Response[contentReviewRoot], *nhttp.ErrorWithStatus) { + return html.NewResponse("sync/review/pool.html", contentReviewRoot{}), nil +} +func getReviewRoot(ctx context.Context, r *http.Request, org *models.Organization, user *models.User) (*html.Response[contentReviewRoot], *nhttp.ErrorWithStatus) { + return html.NewResponse("sync/review/root.html", contentReviewRoot{}), nil } diff --git a/sync/routes.go b/sync/routes.go index b8ad0325..ff6b4e5f 100644 --- a/sync/routes.go +++ b/sync/routes.go @@ -76,6 +76,7 @@ func Router() chi.Router { r.Method("GET", "/pool/{id}", authenticatedHandler(getPoolByID)) r.Method("GET", "/radar", authenticatedHandler(getRadar)) r.Method("GET", "/review", authenticatedHandler(getReviewRoot)) + r.Method("GET", "/review/pool", authenticatedHandler(getReviewPool)) r.Method("GET", "/service-request", authenticatedHandler(getServiceRequestList)) r.Method("GET", "/service-request/{id}", authenticatedHandler(getServiceRequestDetail)) r.Method("GET", "/signout", auth.NewEnsureAuth(getSignout))