Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue/2-Logic for Gamification system - Incrementing points #6

Merged
merged 15 commits into from
Apr 13, 2020

Conversation

KimberleyEvans-Parker
Copy link
Owner

@KimberleyEvans-Parker KimberleyEvans-Parker commented Apr 11, 2020

  • The pull request is complete according to the following criteria:
    • Acceptance criteria have been met
    • The documentation is kept up-to-date
    • Comprehensive tests (if applicable) have been generated and all pass.
    • The pull request describes the changes that have been made, and enough information is present in the description for any developer to understand what has changed
    • Commits have been squashed (or will be on merge).
    • The branch name is descriptive and follows the pull request title format : {issue/bug...}/(Issue Number) - Name of issue. E.g bug/30-Fix-Project
    • The pull request title is of the following format : {issue/bug...}/(Issue Number) - Name of issue. E.g bug/30-Fix-Project
    • The description uses github syntax to link to the issue. E,g Resolves se701g2/Doto#{Number}
    • At least two reviewers assigned.
    • If there are merge conflicts, run git rebase as opposed to git merge with master.

This PR has the points displayed on the left, it increases when you complete a task and decreases when you uncomplete a task. If page refreshed, it accounts for the duration persisting bu (refer to bug #5) and increases/decreases by the duration length in minutes

closes #2

KimberleyEvans-Parker and others added 11 commits March 28, 2020 15:57
…01g2#208)

* Duration selection uses time-dial
Duration must be positive

* Duration selection uses time-dial
Duration must be positive

* remove hardcoded date

* variable consistency
)

* Migrate front-end from npm -> yarn

* Migrate back-end from npm -> yarn

* Replace npm with yarn

This updates the documentation and changes references from npm to yarn.

* Migrate build/deploy/CI with yarn

Note that `yarn install --frozen-lockfile` replaces `npm ci`
and that `--if-present` is dropped from `npm run build` when moving to
`yarn build` as it is only needed when there is no strict control over
the package.json. We have such control, so it is unnecessary.

* Remove lingering file generated by npm

* Update scripts to use yarn

* Fix build command

* Attempt to fix build commands in deployment config

* Ensure no tests are treated as 'pass'

* Update CI workflow to resolve issues

This splits frontend and backend into separate jobs, whilst also trying
to maintain a consistent and meaningful layout for the config.

* Revert back to 'yarn build'

This reverts commit e415beb.

* Fix typo; 'runs' to 'run'

* Remove build command from backend

* Change order so build is before test

The frontend tests rely on files generated by the build process, so
it's important to build before running the tests.
* Add winston logging package

* Configure http request logging

* Configure logging module

* Replace usages of console with logger

* Remove package-lock.json
…e701g2#217)

* Remove husky from doto-frontend

* Initialise multi package project with lerna

* Simplify node modules installation with one command

* Configure husky on root package

* Configure doto-frontend package for precommit lint-staged

* Configure doto-backend package for precommit lint-staged

* Configure eslintrc for mocha testing

* Format all doto-backend files

* Reformat files after rebase

* Update readme with lerna and yarn instructions
* Add task completion on list view and calendar components

Allows users to complete from either component and keeps data in sync

* Update Appointment coloring when task is complete

Provides clear indication to the user which of their tasks
are complete and incomplete

* Fix issue where tasks did not have keys

Fixes task duplication issue

* Add strikethrough when completing tasks

* Remove unused radio styles

* Update property name completed to isComplete

* Connect frontend logic to backend

This means the isComplete state is persisted in the backend

* Add unit tests for updating isComplete
…ants (se701g2#226)

* fixing front end merging issues

* resolves commit issues

* capitalised enums and changed require path to reflect code styling

* commit issues resolving

* capitalised enum keys

* reverted random changes in front end

Co-authored-by: arangace <ahua291@aucklanduni.ac.nz>
…se701g2#200 (se701g2#216)

* Constant travel time added

* Add travel time in form

* Removed pacjage-lock files
@utri092
Copy link
Collaborator

utri092 commented Apr 11, 2020

The feature looks good. Just had 2 observations. There are conflicts according to the web editor and I do not see checks section running any tests. Is this something I need to handle? Yarn build attempts to make a production build when I run it locally.

@KimberleyEvans-Parker
Copy link
Owner Author

The feature looks good. Just had 2 observations. There are conflicts according to the web editor and I do not see checks section running any tests. Is this something I need to handle? Yarn build attempts to make a production build when I run it locally.

Okay, I think I fixed everything now (hopefully)

@utri092 utri092 merged commit b763c9f into master Apr 13, 2020
utri092 added a commit that referenced this pull request Apr 13, 2020
utri092 added a commit that referenced this pull request Apr 13, 2020
utri092 added a commit that referenced this pull request Apr 19, 2020
* create points variable to work off of

* issue/198 - Duration selection uses time-dial closes se701g2#198 (se701g2#208)

* Duration selection uses time-dial
Duration must be positive

* Duration selection uses time-dial
Duration must be positive

* remove hardcoded date

* variable consistency

* issue/209 - Migrate from npm to yarn for package management (se701g2#214)

* Migrate front-end from npm -> yarn

* Migrate back-end from npm -> yarn

* Replace npm with yarn

This updates the documentation and changes references from npm to yarn.

* Migrate build/deploy/CI with yarn

Note that `yarn install --frozen-lockfile` replaces `npm ci`
and that `--if-present` is dropped from `npm run build` when moving to
`yarn build` as it is only needed when there is no strict control over
the package.json. We have such control, so it is unnecessary.

* Remove lingering file generated by npm

* Update scripts to use yarn

* Fix build command

* Attempt to fix build commands in deployment config

* Ensure no tests are treated as 'pass'

* Update CI workflow to resolve issues

This splits frontend and backend into separate jobs, whilst also trying
to maintain a consistent and meaningful layout for the config.

* Revert back to 'yarn build'

This reverts commit e415beb.

* Fix typo; 'runs' to 'run'

* Remove build command from backend

* Change order so build is before test

The frontend tests rely on files generated by the build process, so
it's important to build before running the tests.

* issue/114-setup a formal logging system closes se701g2#114 (se701g2#207)

* Add winston logging package

* Configure http request logging

* Configure logging module

* Replace usages of console with logger

* Remove package-lock.json

* Fixed logger import name (se701g2#219)

* issue/210 - Extend formatting toolchain to work with both projects (se701g2#217)

* Remove husky from doto-frontend

* Initialise multi package project with lerna

* Simplify node modules installation with one command

* Configure husky on root package

* Configure doto-frontend package for precommit lint-staged

* Configure doto-backend package for precommit lint-staged

* Configure eslintrc for mocha testing

* Format all doto-backend files

* Reformat files after rebase

* Update readme with lerna and yarn instructions

* issue/213 - Add ability to complete a task (se701g2#223)

* Add task completion on list view and calendar components

Allows users to complete from either component and keeps data in sync

* Update Appointment coloring when task is complete

Provides clear indication to the user which of their tasks
are complete and incomplete

* Fix issue where tasks did not have keys

Fixes task duplication issue

* Add strikethrough when completing tasks

* Remove unused radio styles

* Update property name completed to isComplete

* Connect frontend logic to backend

This means the isComplete state is persisted in the backend

* Add unit tests for updating isComplete

* issue/197 - Removed magic numbers in back-end and replaced with constants (se701g2#226)

* fixing front end merging issues

* resolves commit issues

* capitalised enums and changed require path to reflect code styling

* commit issues resolving

* capitalised enum keys

* reverted random changes in front end

Co-authored-by: arangace <ahua291@aucklanduni.ac.nz>

* issue/200 Bug schedule task overlaps when time is not specified closes se701g2#200 (se701g2#216)

* Constant travel time added

* Add travel time in form

* Removed pacjage-lock files

* issue/2-Logic for Gamification system - Incrementing points (#6)

* issue/198 - Duration selection uses time-dial closes se701g2#198 (se701g2#208)

* Duration selection uses time-dial
Duration must be positive

* Duration selection uses time-dial
Duration must be positive

* remove hardcoded date

* variable consistency

* issue/209 - Migrate from npm to yarn for package management (se701g2#214)

* Migrate front-end from npm -> yarn

* Migrate back-end from npm -> yarn

* Replace npm with yarn

This updates the documentation and changes references from npm to yarn.

* Migrate build/deploy/CI with yarn

Note that `yarn install --frozen-lockfile` replaces `npm ci`
and that `--if-present` is dropped from `npm run build` when moving to
`yarn build` as it is only needed when there is no strict control over
the package.json. We have such control, so it is unnecessary.

* Remove lingering file generated by npm

* Update scripts to use yarn

* Fix build command

* Attempt to fix build commands in deployment config

* Ensure no tests are treated as 'pass'

* Update CI workflow to resolve issues

This splits frontend and backend into separate jobs, whilst also trying
to maintain a consistent and meaningful layout for the config.

* Revert back to 'yarn build'

This reverts commit e415beb.

* Fix typo; 'runs' to 'run'

* Remove build command from backend

* Change order so build is before test

The frontend tests rely on files generated by the build process, so
it's important to build before running the tests.

* issue/114-setup a formal logging system closes se701g2#114 (se701g2#207)

* Add winston logging package

* Configure http request logging

* Configure logging module

* Replace usages of console with logger

* Remove package-lock.json

* Fixed logger import name (se701g2#219)

* issue/210 - Extend formatting toolchain to work with both projects (se701g2#217)

* Remove husky from doto-frontend

* Initialise multi package project with lerna

* Simplify node modules installation with one command

* Configure husky on root package

* Configure doto-frontend package for precommit lint-staged

* Configure doto-backend package for precommit lint-staged

* Configure eslintrc for mocha testing

* Format all doto-backend files

* Reformat files after rebase

* Update readme with lerna and yarn instructions

* issue/213 - Add ability to complete a task (se701g2#223)

* Add task completion on list view and calendar components

Allows users to complete from either component and keeps data in sync

* Update Appointment coloring when task is complete

Provides clear indication to the user which of their tasks
are complete and incomplete

* Fix issue where tasks did not have keys

Fixes task duplication issue

* Add strikethrough when completing tasks

* Remove unused radio styles

* Update property name completed to isComplete

* Connect frontend logic to backend

This means the isComplete state is persisted in the backend

* Add unit tests for updating isComplete

* issue/197 - Removed magic numbers in back-end and replaced with constants (se701g2#226)

* fixing front end merging issues

* resolves commit issues

* capitalised enums and changed require path to reflect code styling

* commit issues resolving

* capitalised enum keys

* reverted random changes in front end

Co-authored-by: arangace <ahua291@aucklanduni.ac.nz>

* issue/200 Bug schedule task overlaps when time is not specified closes se701g2#200 (se701g2#216)

* Constant travel time added

* Add travel time in form

* Removed pacjage-lock files

* Points increase/decrease when task is completed/uncompleted

* Style Points inside Material-UI Avatar

* Points title

* Handles non-persisting duration error

* Yarn build fix

Co-authored-by: Matt Eden <45587386+Matteas-Eden@users.noreply.github.com>
Co-authored-by: Jordan Sim-Smith <jordansimsmith@gmail.com>
Co-authored-by: Tony Liu <ipwnu777@gmail.com>
Co-authored-by: Harrison Leach <44953072+HarrisonLeach1@users.noreply.github.com>
Co-authored-by: arangace <48401725+arangace@users.noreply.github.com>
Co-authored-by: arangace <ahua291@aucklanduni.ac.nz>
Co-authored-by: utri092 <41176826+utri092@users.noreply.github.com>

* Revert "issue/2-Logic for Gamification system - Incrementing points (#6)" (#9)

This reverts commit b763c9f.

* Made dumb stats page (not based on real values).

* Added a dummy stats window - currently values are static.

* fixed merging issue.

* Made values for stats pass as props instead of setting them in the userstats class.

* Deleted package-lock.json which was included by mistake.

* Deleted VS file that was automatically generated

Co-authored-by: KimberleyEvans-Parker <45865186+KimberleyEvans-Parker@users.noreply.github.com>
Co-authored-by: Matt Eden <45587386+Matteas-Eden@users.noreply.github.com>
Co-authored-by: Jordan Sim-Smith <jordansimsmith@gmail.com>
Co-authored-by: Tony Liu <ipwnu777@gmail.com>
Co-authored-by: Harrison Leach <44953072+HarrisonLeach1@users.noreply.github.com>
Co-authored-by: arangace <48401725+arangace@users.noreply.github.com>
Co-authored-by: arangace <ahua291@aucklanduni.ac.nz>
Co-authored-by: utri092 <41176826+utri092@users.noreply.github.com>
utri092 added a commit that referenced this pull request Apr 20, 2020
* create points variable to work off of

* issue/198 - Duration selection uses time-dial closes se701g2#198 (se701g2#208)

* Duration selection uses time-dial
Duration must be positive

* Duration selection uses time-dial
Duration must be positive

* remove hardcoded date

* variable consistency

* issue/209 - Migrate from npm to yarn for package management (se701g2#214)

* Migrate front-end from npm -> yarn

* Migrate back-end from npm -> yarn

* Replace npm with yarn

This updates the documentation and changes references from npm to yarn.

* Migrate build/deploy/CI with yarn

Note that `yarn install --frozen-lockfile` replaces `npm ci`
and that `--if-present` is dropped from `npm run build` when moving to
`yarn build` as it is only needed when there is no strict control over
the package.json. We have such control, so it is unnecessary.

* Remove lingering file generated by npm

* Update scripts to use yarn

* Fix build command

* Attempt to fix build commands in deployment config

* Ensure no tests are treated as 'pass'

* Update CI workflow to resolve issues

This splits frontend and backend into separate jobs, whilst also trying
to maintain a consistent and meaningful layout for the config.

* Revert back to 'yarn build'

This reverts commit e415beb.

* Fix typo; 'runs' to 'run'

* Remove build command from backend

* Change order so build is before test

The frontend tests rely on files generated by the build process, so
it's important to build before running the tests.

* issue/114-setup a formal logging system closes se701g2#114 (se701g2#207)

* Add winston logging package

* Configure http request logging

* Configure logging module

* Replace usages of console with logger

* Remove package-lock.json

* Fixed logger import name (se701g2#219)

* issue/210 - Extend formatting toolchain to work with both projects (se701g2#217)

* Remove husky from doto-frontend

* Initialise multi package project with lerna

* Simplify node modules installation with one command

* Configure husky on root package

* Configure doto-frontend package for precommit lint-staged

* Configure doto-backend package for precommit lint-staged

* Configure eslintrc for mocha testing

* Format all doto-backend files

* Reformat files after rebase

* Update readme with lerna and yarn instructions

* issue/213 - Add ability to complete a task (se701g2#223)

* Add task completion on list view and calendar components

Allows users to complete from either component and keeps data in sync

* Update Appointment coloring when task is complete

Provides clear indication to the user which of their tasks
are complete and incomplete

* Fix issue where tasks did not have keys

Fixes task duplication issue

* Add strikethrough when completing tasks

* Remove unused radio styles

* Update property name completed to isComplete

* Connect frontend logic to backend

This means the isComplete state is persisted in the backend

* Add unit tests for updating isComplete

* issue/197 - Removed magic numbers in back-end and replaced with constants (se701g2#226)

* fixing front end merging issues

* resolves commit issues

* capitalised enums and changed require path to reflect code styling

* commit issues resolving

* capitalised enum keys

* reverted random changes in front end

Co-authored-by: arangace <ahua291@aucklanduni.ac.nz>

* issue/200 Bug schedule task overlaps when time is not specified closes se701g2#200 (se701g2#216)

* Constant travel time added

* Add travel time in form

* Removed pacjage-lock files

* issue/2-Logic for Gamification system - Incrementing points (#6)

* issue/198 - Duration selection uses time-dial closes se701g2#198 (se701g2#208)

* Duration selection uses time-dial
Duration must be positive

* Duration selection uses time-dial
Duration must be positive

* remove hardcoded date

* variable consistency

* issue/209 - Migrate from npm to yarn for package management (se701g2#214)

* Migrate front-end from npm -> yarn

* Migrate back-end from npm -> yarn

* Replace npm with yarn

This updates the documentation and changes references from npm to yarn.

* Migrate build/deploy/CI with yarn

Note that `yarn install --frozen-lockfile` replaces `npm ci`
and that `--if-present` is dropped from `npm run build` when moving to
`yarn build` as it is only needed when there is no strict control over
the package.json. We have such control, so it is unnecessary.

* Remove lingering file generated by npm

* Update scripts to use yarn

* Fix build command

* Attempt to fix build commands in deployment config

* Ensure no tests are treated as 'pass'

* Update CI workflow to resolve issues

This splits frontend and backend into separate jobs, whilst also trying
to maintain a consistent and meaningful layout for the config.

* Revert back to 'yarn build'

This reverts commit e415beb.

* Fix typo; 'runs' to 'run'

* Remove build command from backend

* Change order so build is before test

The frontend tests rely on files generated by the build process, so
it's important to build before running the tests.

* issue/114-setup a formal logging system closes se701g2#114 (se701g2#207)

* Add winston logging package

* Configure http request logging

* Configure logging module

* Replace usages of console with logger

* Remove package-lock.json

* Fixed logger import name (se701g2#219)

* issue/210 - Extend formatting toolchain to work with both projects (se701g2#217)

* Remove husky from doto-frontend

* Initialise multi package project with lerna

* Simplify node modules installation with one command

* Configure husky on root package

* Configure doto-frontend package for precommit lint-staged

* Configure doto-backend package for precommit lint-staged

* Configure eslintrc for mocha testing

* Format all doto-backend files

* Reformat files after rebase

* Update readme with lerna and yarn instructions

* issue/213 - Add ability to complete a task (se701g2#223)

* Add task completion on list view and calendar components

Allows users to complete from either component and keeps data in sync

* Update Appointment coloring when task is complete

Provides clear indication to the user which of their tasks
are complete and incomplete

* Fix issue where tasks did not have keys

Fixes task duplication issue

* Add strikethrough when completing tasks

* Remove unused radio styles

* Update property name completed to isComplete

* Connect frontend logic to backend

This means the isComplete state is persisted in the backend

* Add unit tests for updating isComplete

* issue/197 - Removed magic numbers in back-end and replaced with constants (se701g2#226)

* fixing front end merging issues

* resolves commit issues

* capitalised enums and changed require path to reflect code styling

* commit issues resolving

* capitalised enum keys

* reverted random changes in front end

Co-authored-by: arangace <ahua291@aucklanduni.ac.nz>

* issue/200 Bug schedule task overlaps when time is not specified closes se701g2#200 (se701g2#216)

* Constant travel time added

* Add travel time in form

* Removed pacjage-lock files

* Points increase/decrease when task is completed/uncompleted

* Style Points inside Material-UI Avatar

* Points title

* Handles non-persisting duration error

* Yarn build fix

Co-authored-by: Matt Eden <45587386+Matteas-Eden@users.noreply.github.com>
Co-authored-by: Jordan Sim-Smith <jordansimsmith@gmail.com>
Co-authored-by: Tony Liu <ipwnu777@gmail.com>
Co-authored-by: Harrison Leach <44953072+HarrisonLeach1@users.noreply.github.com>
Co-authored-by: arangace <48401725+arangace@users.noreply.github.com>
Co-authored-by: arangace <ahua291@aucklanduni.ac.nz>
Co-authored-by: utri092 <41176826+utri092@users.noreply.github.com>

* Revert "issue/2-Logic for Gamification system - Incrementing points (#6)" (#9)

This reverts commit b763c9f.

* Made dumb stats page (not based on real values).

* Added a dummy stats window - currently values are static.

* fixed merging issue.

* Made values for stats pass as props instead of setting them in the userstats class.

* Deleted package-lock.json which was included by mistake.

* Deleted VS file that was automatically generated

Co-authored-by: KimberleyEvans-Parker <45865186+KimberleyEvans-Parker@users.noreply.github.com>
Co-authored-by: Matt Eden <45587386+Matteas-Eden@users.noreply.github.com>
Co-authored-by: Jordan Sim-Smith <jordansimsmith@gmail.com>
Co-authored-by: Tony Liu <ipwnu777@gmail.com>
Co-authored-by: Harrison Leach <44953072+HarrisonLeach1@users.noreply.github.com>
Co-authored-by: arangace <48401725+arangace@users.noreply.github.com>
Co-authored-by: arangace <ahua291@aucklanduni.ac.nz>
Co-authored-by: utri092 <41176826+utri092@users.noreply.github.com>
utri092 added a commit that referenced this pull request Apr 22, 2020
* create points variable to work off of

* issue/198 - Duration selection uses time-dial closes se701g2#198 (se701g2#208)

* Duration selection uses time-dial
Duration must be positive

* Duration selection uses time-dial
Duration must be positive

* remove hardcoded date

* variable consistency

* issue/209 - Migrate from npm to yarn for package management (se701g2#214)

* Migrate front-end from npm -> yarn

* Migrate back-end from npm -> yarn

* Replace npm with yarn

This updates the documentation and changes references from npm to yarn.

* Migrate build/deploy/CI with yarn

Note that `yarn install --frozen-lockfile` replaces `npm ci`
and that `--if-present` is dropped from `npm run build` when moving to
`yarn build` as it is only needed when there is no strict control over
the package.json. We have such control, so it is unnecessary.

* Remove lingering file generated by npm

* Update scripts to use yarn

* Fix build command

* Attempt to fix build commands in deployment config

* Ensure no tests are treated as 'pass'

* Update CI workflow to resolve issues

This splits frontend and backend into separate jobs, whilst also trying
to maintain a consistent and meaningful layout for the config.

* Revert back to 'yarn build'

This reverts commit e415beb.

* Fix typo; 'runs' to 'run'

* Remove build command from backend

* Change order so build is before test

The frontend tests rely on files generated by the build process, so
it's important to build before running the tests.

* issue/114-setup a formal logging system closes se701g2#114 (se701g2#207)

* Add winston logging package

* Configure http request logging

* Configure logging module

* Replace usages of console with logger

* Remove package-lock.json

* Fixed logger import name (se701g2#219)

* issue/210 - Extend formatting toolchain to work with both projects (se701g2#217)

* Remove husky from doto-frontend

* Initialise multi package project with lerna

* Simplify node modules installation with one command

* Configure husky on root package

* Configure doto-frontend package for precommit lint-staged

* Configure doto-backend package for precommit lint-staged

* Configure eslintrc for mocha testing

* Format all doto-backend files

* Reformat files after rebase

* Update readme with lerna and yarn instructions

* issue/213 - Add ability to complete a task (se701g2#223)

* Add task completion on list view and calendar components

Allows users to complete from either component and keeps data in sync

* Update Appointment coloring when task is complete

Provides clear indication to the user which of their tasks
are complete and incomplete

* Fix issue where tasks did not have keys

Fixes task duplication issue

* Add strikethrough when completing tasks

* Remove unused radio styles

* Update property name completed to isComplete

* Connect frontend logic to backend

This means the isComplete state is persisted in the backend

* Add unit tests for updating isComplete

* issue/197 - Removed magic numbers in back-end and replaced with constants (se701g2#226)

* fixing front end merging issues

* resolves commit issues

* capitalised enums and changed require path to reflect code styling

* commit issues resolving

* capitalised enum keys

* reverted random changes in front end

Co-authored-by: arangace <ahua291@aucklanduni.ac.nz>

* issue/200 Bug schedule task overlaps when time is not specified closes se701g2#200 (se701g2#216)

* Constant travel time added

* Add travel time in form

* Removed pacjage-lock files

* Points increase/decrease when task is completed/uncompleted

* Style Points inside Material-UI Avatar

* Points title

* Handles non-persisting duration error

* Yarn build fix

* issue/feature Add productivity mode slider for
gamification system
* Mode can be linked to points scored

* issue/220-delete-task (se701g2#251)

* Add auth to update task

* Add test for updating task

* Add delete task

* Add test for deleting task

* Start implementing delete task for front end

* Implement delete task

* Ensure taskID is set before passing it on to backend (se701g2#253)

Bug is fixed and everything works fine.

* bug/248 - Fix issue with inconsistent theme change behaviour closes se701g2#248 (se701g2#255)

* Ensure that fetchUserInfo is called only once to reduce load on DotoService and also prevent inconsistent state

* Add dependency for callback

* fix issue where duration of event didnt match the actual time specified (se701g2#258)

* Remove redundant code in Points

* Add streak image and formatting

* Streak updates every second

* Remove Redundant Code

* Move Avatar into Points

* Remove redundant code, Move Avatar into Points

Add comments

* Add alt to streak image

* Added a user stats modal with dummy data.  (#14)

* create points variable to work off of

* issue/198 - Duration selection uses time-dial closes se701g2#198 (se701g2#208)

* Duration selection uses time-dial
Duration must be positive

* Duration selection uses time-dial
Duration must be positive

* remove hardcoded date

* variable consistency

* issue/209 - Migrate from npm to yarn for package management (se701g2#214)

* Migrate front-end from npm -> yarn

* Migrate back-end from npm -> yarn

* Replace npm with yarn

This updates the documentation and changes references from npm to yarn.

* Migrate build/deploy/CI with yarn

Note that `yarn install --frozen-lockfile` replaces `npm ci`
and that `--if-present` is dropped from `npm run build` when moving to
`yarn build` as it is only needed when there is no strict control over
the package.json. We have such control, so it is unnecessary.

* Remove lingering file generated by npm

* Update scripts to use yarn

* Fix build command

* Attempt to fix build commands in deployment config

* Ensure no tests are treated as 'pass'

* Update CI workflow to resolve issues

This splits frontend and backend into separate jobs, whilst also trying
to maintain a consistent and meaningful layout for the config.

* Revert back to 'yarn build'

This reverts commit e415beb.

* Fix typo; 'runs' to 'run'

* Remove build command from backend

* Change order so build is before test

The frontend tests rely on files generated by the build process, so
it's important to build before running the tests.

* issue/114-setup a formal logging system closes se701g2#114 (se701g2#207)

* Add winston logging package

* Configure http request logging

* Configure logging module

* Replace usages of console with logger

* Remove package-lock.json

* Fixed logger import name (se701g2#219)

* issue/210 - Extend formatting toolchain to work with both projects (se701g2#217)

* Remove husky from doto-frontend

* Initialise multi package project with lerna

* Simplify node modules installation with one command

* Configure husky on root package

* Configure doto-frontend package for precommit lint-staged

* Configure doto-backend package for precommit lint-staged

* Configure eslintrc for mocha testing

* Format all doto-backend files

* Reformat files after rebase

* Update readme with lerna and yarn instructions

* issue/213 - Add ability to complete a task (se701g2#223)

* Add task completion on list view and calendar components

Allows users to complete from either component and keeps data in sync

* Update Appointment coloring when task is complete

Provides clear indication to the user which of their tasks
are complete and incomplete

* Fix issue where tasks did not have keys

Fixes task duplication issue

* Add strikethrough when completing tasks

* Remove unused radio styles

* Update property name completed to isComplete

* Connect frontend logic to backend

This means the isComplete state is persisted in the backend

* Add unit tests for updating isComplete

* issue/197 - Removed magic numbers in back-end and replaced with constants (se701g2#226)

* fixing front end merging issues

* resolves commit issues

* capitalised enums and changed require path to reflect code styling

* commit issues resolving

* capitalised enum keys

* reverted random changes in front end

Co-authored-by: arangace <ahua291@aucklanduni.ac.nz>

* issue/200 Bug schedule task overlaps when time is not specified closes se701g2#200 (se701g2#216)

* Constant travel time added

* Add travel time in form

* Removed pacjage-lock files

* issue/2-Logic for Gamification system - Incrementing points (#6)

* issue/198 - Duration selection uses time-dial closes se701g2#198 (se701g2#208)

* Duration selection uses time-dial
Duration must be positive

* Duration selection uses time-dial
Duration must be positive

* remove hardcoded date

* variable consistency

* issue/209 - Migrate from npm to yarn for package management (se701g2#214)

* Migrate front-end from npm -> yarn

* Migrate back-end from npm -> yarn

* Replace npm with yarn

This updates the documentation and changes references from npm to yarn.

* Migrate build/deploy/CI with yarn

Note that `yarn install --frozen-lockfile` replaces `npm ci`
and that `--if-present` is dropped from `npm run build` when moving to
`yarn build` as it is only needed when there is no strict control over
the package.json. We have such control, so it is unnecessary.

* Remove lingering file generated by npm

* Update scripts to use yarn

* Fix build command

* Attempt to fix build commands in deployment config

* Ensure no tests are treated as 'pass'

* Update CI workflow to resolve issues

This splits frontend and backend into separate jobs, whilst also trying
to maintain a consistent and meaningful layout for the config.

* Revert back to 'yarn build'

This reverts commit e415beb.

* Fix typo; 'runs' to 'run'

* Remove build command from backend

* Change order so build is before test

The frontend tests rely on files generated by the build process, so
it's important to build before running the tests.

* issue/114-setup a formal logging system closes se701g2#114 (se701g2#207)

* Add winston logging package

* Configure http request logging

* Configure logging module

* Replace usages of console with logger

* Remove package-lock.json

* Fixed logger import name (se701g2#219)

* issue/210 - Extend formatting toolchain to work with both projects (se701g2#217)

* Remove husky from doto-frontend

* Initialise multi package project with lerna

* Simplify node modules installation with one command

* Configure husky on root package

* Configure doto-frontend package for precommit lint-staged

* Configure doto-backend package for precommit lint-staged

* Configure eslintrc for mocha testing

* Format all doto-backend files

* Reformat files after rebase

* Update readme with lerna and yarn instructions

* issue/213 - Add ability to complete a task (se701g2#223)

* Add task completion on list view and calendar components

Allows users to complete from either component and keeps data in sync

* Update Appointment coloring when task is complete

Provides clear indication to the user which of their tasks
are complete and incomplete

* Fix issue where tasks did not have keys

Fixes task duplication issue

* Add strikethrough when completing tasks

* Remove unused radio styles

* Update property name completed to isComplete

* Connect frontend logic to backend

This means the isComplete state is persisted in the backend

* Add unit tests for updating isComplete

* issue/197 - Removed magic numbers in back-end and replaced with constants (se701g2#226)

* fixing front end merging issues

* resolves commit issues

* capitalised enums and changed require path to reflect code styling

* commit issues resolving

* capitalised enum keys

* reverted random changes in front end

Co-authored-by: arangace <ahua291@aucklanduni.ac.nz>

* issue/200 Bug schedule task overlaps when time is not specified closes se701g2#200 (se701g2#216)

* Constant travel time added

* Add travel time in form

* Removed pacjage-lock files

* Points increase/decrease when task is completed/uncompleted

* Style Points inside Material-UI Avatar

* Points title

* Handles non-persisting duration error

* Yarn build fix

Co-authored-by: Matt Eden <45587386+Matteas-Eden@users.noreply.github.com>
Co-authored-by: Jordan Sim-Smith <jordansimsmith@gmail.com>
Co-authored-by: Tony Liu <ipwnu777@gmail.com>
Co-authored-by: Harrison Leach <44953072+HarrisonLeach1@users.noreply.github.com>
Co-authored-by: arangace <48401725+arangace@users.noreply.github.com>
Co-authored-by: arangace <ahua291@aucklanduni.ac.nz>
Co-authored-by: utri092 <41176826+utri092@users.noreply.github.com>

* Revert "issue/2-Logic for Gamification system - Incrementing points (#6)" (#9)

This reverts commit b763c9f.

* Made dumb stats page (not based on real values).

* Added a dummy stats window - currently values are static.

* fixed merging issue.

* Made values for stats pass as props instead of setting them in the userstats class.

* Deleted package-lock.json which was included by mistake.

* Deleted VS file that was automatically generated

Co-authored-by: KimberleyEvans-Parker <45865186+KimberleyEvans-Parker@users.noreply.github.com>
Co-authored-by: Matt Eden <45587386+Matteas-Eden@users.noreply.github.com>
Co-authored-by: Jordan Sim-Smith <jordansimsmith@gmail.com>
Co-authored-by: Tony Liu <ipwnu777@gmail.com>
Co-authored-by: Harrison Leach <44953072+HarrisonLeach1@users.noreply.github.com>
Co-authored-by: arangace <48401725+arangace@users.noreply.github.com>
Co-authored-by: arangace <ahua291@aucklanduni.ac.nz>
Co-authored-by: utri092 <41176826+utri092@users.noreply.github.com>

* Remove .shadow

* Remove duplicate buttons and order buttons

Co-authored-by: Matt Eden <45587386+Matteas-Eden@users.noreply.github.com>
Co-authored-by: Jordan Sim-Smith <jordansimsmith@gmail.com>
Co-authored-by: Tony Liu <ipwnu777@gmail.com>
Co-authored-by: Harrison Leach <44953072+HarrisonLeach1@users.noreply.github.com>
Co-authored-by: arangace <48401725+arangace@users.noreply.github.com>
Co-authored-by: arangace <ahua291@aucklanduni.ac.nz>
Co-authored-by: utri092 <41176826+utri092@users.noreply.github.com>
Co-authored-by: Utsav Trivedi <utsavtrivedi16@gmail.com>
Co-authored-by: Eric Pedrido <43208889+EricPedrido@users.noreply.github.com>
Co-authored-by: Preet Patel <iam@preetpatel.com>
Co-authored-by: Bradley Coleman <43105616+bradleycoleman@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Logic for Gamification system
7 participants