From 42833876e8a92c480a8654dbc66bfcc6b5508945 Mon Sep 17 00:00:00 2001 From: Matt Rochford Date: Tue, 4 Feb 2020 20:04:50 -0800 Subject: [PATCH] Deactivate and reactivate dog & test checklist --- app/controllers/ProfileController.ts | 8 ++++++++ dist/res/views/profile.html | 12 +++++++++--- dist/res/views/widgets/settings.html | 2 +- frontend-test-checklist.md | 20 ++++++++++++++++++++ 4 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 frontend-test-checklist.md diff --git a/app/controllers/ProfileController.ts b/app/controllers/ProfileController.ts index 6f9d0fc..cc4f207 100644 --- a/app/controllers/ProfileController.ts +++ b/app/controllers/ProfileController.ts @@ -97,4 +97,12 @@ export class ProfileController implements ng.IComponentController { public deactivate(id: string) { this.hounds.deactivateDog(id); } + + /** + * reactivates a dog + * @param id to reactivate + */ + public reactivate(id: string) { + this.hounds.reactivateDog(id); + } } diff --git a/dist/res/views/profile.html b/dist/res/views/profile.html index e4e030d..6369dc4 100644 --- a/dist/res/views/profile.html +++ b/dist/res/views/profile.html @@ -21,9 +21,15 @@ - + + +
{{root.dogProfile.name}}

diff --git a/dist/res/views/widgets/settings.html b/dist/res/views/widgets/settings.html index fb7a080..e966dc6 100644 --- a/dist/res/views/widgets/settings.html +++ b/dist/res/views/widgets/settings.html @@ -36,9 +36,9 @@

Settings

+ -

Version {{root.$settings.apiConfig.apiVersion}}

diff --git a/frontend-test-checklist.md b/frontend-test-checklist.md new file mode 100644 index 0000000..b1846d9 --- /dev/null +++ b/frontend-test-checklist.md @@ -0,0 +1,20 @@ +# Testing checklist +[_] Add a new Dog +- dog.name = "Major J" +- dog.clientName = "Joseph Johnson" +[_] Find Major +- By Major J +- By Joseph Johnson +[_] Add boarding day 0 am -> day 7 pm +[_] Add boarding day 0 pm -> day 7 am +[_] Add daycare day 0 am -> noon +[_] Add daycare day 0 am -> pm +[_] Add boarding day -1 am -> day 8 pm +[_] Add boarding day -1 pm -> day 8 am +[_] Add boarding 1st day of year -> 1st day of next year +[_] Add daycare every day across DLS +[_] Add events for each half hour of the week +[_] Delete event +[_] Deactivate Dog +[_] Reactivate Dog +[_] Delete Dog