From da0f9e75816c3187fd0ea2f7ff809ad3f66c427e Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Fri, 7 Feb 2025 08:46:40 -0700 Subject: [PATCH] add end time to projects --- README.md | 2 +- src/views/ClaimView.vue | 2 +- src/views/NewEditProjectView.vue | 62 ++++++++++++++++++++++++++++++-- src/views/ProjectViewView.vue | 15 +++++++- 4 files changed, 76 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5836447..0d823c5 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ TIME_SAFARI_APP_TITLE="TimeSafari_Test" VITE_APP_SERVER=https://test.timesafari. (The plain `npm run build` uses the .env.production file.) -* Back up the time-safari/dist folder, then `mv time-safari/dist time-safari-dist-prev.0 && mv crowd-funder-for-time-pwa/dist time-safari/` +* Back up the time-safari/dist folder & deploy: `mv time-safari/dist time-safari-dist-prev.0 && mv crowd-funder-for-time-pwa/dist time-safari/` * Record the new hash in the changelog. Edit package.json to increment version & add "-beta", `npm install`, and commit. Also record what version is on production. diff --git a/src/views/ClaimView.vue b/src/views/ClaimView.vue index e45d777..e004c61 100644 --- a/src/views/ClaimView.vue +++ b/src/views/ClaimView.vue @@ -74,7 +74,7 @@
- {{ veriClaim.issuedAt?.replace(/T/, " ").replace(/Z/, " UTC") }} + Recorded {{ veriClaim.issuedAt?.replace(/T/, " ").replace(/Z/, " UTC") }}
diff --git a/src/views/NewEditProjectView.vue b/src/views/NewEditProjectView.vue index 610e073..2ed4335 100644 --- a/src/views/NewEditProjectView.vue +++ b/src/views/NewEditProjectView.vue @@ -93,6 +93,9 @@ />
+
+ Starts At +
- {{ zoneName }} + + {{ zoneName }} + +
+ +
+
+ Ends at +
+ + + + {{ zoneName }} +
- {{ startTime }} + Starts {{ startTime }} +
+
+ + Ends {{ endTime }}
@@ -541,6 +545,7 @@ export default class ProjectViewView extends Vue { apiServer = ""; checkingConfirmationForJwtId = ""; description = ""; + endTime = ""; expanded = false; fulfilledByThis: PlanSummaryRecord | null = null; fulfillersToThis: Array = []; @@ -641,6 +646,14 @@ export default class ProjectViewView extends Vue { " " + startDateTime.toLocaleTimeString(); } + const endTime = resp.data.claim?.endTime; + if (endTime != null) { + const endDateTime = new Date(endTime); + this.endTime = + endDateTime.toLocaleDateString() + + " " + + endDateTime.toLocaleTimeString(); + } this.agentDid = resp.data.claim?.agent?.identifier; this.agentDidVisibleToDids = resp.data.claim?.agent?.identifierVisibleToDids || [];