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

Checkup screen #19

Merged
merged 41 commits into from
Dec 15, 2020
Merged

Checkup screen #19

merged 41 commits into from
Dec 15, 2020

Conversation

saachipahwa
Copy link
Collaborator

sliding wb score scale and attempt at notification

@saachipahwa saachipahwa closed this Dec 5, 2020
@thevirtuoso1973
Copy link
Collaborator

This hasn't been merged yet.

@thevirtuoso1973 thevirtuoso1973 linked an issue Dec 5, 2020 that may be closed by this pull request
@thevirtuoso1973 thevirtuoso1973 changed the base branch from master to develop December 5, 2020 23:31
Copy link
Collaborator

@thevirtuoso1973 thevirtuoso1973 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to target develop when creating PRs, also please resolve merge conflicts locally and push again. And remove unrelated files like .vscode/json from git.
I'll review this properly when that's done.

@thevirtuoso1973
Copy link
Collaborator

@saachipahwa If you haven't dealt with merge conflicts before they're a bit annoying but you get used to them after a while.

@thevirtuoso1973
Copy link
Collaborator

@saachipahwa Also, it doesn't build on Android but it looks like easy fixes. Let me know if you need me to fix it for android.

@thevirtuoso1973
Copy link
Collaborator

Oh and remember to re-request review once you're happy with it and want me to take a look.

@saachipahwa
Copy link
Collaborator Author

@saachipahwa Also, it doesn't build on Android but it looks like easy fixes. Let me know if you need me to fix it for android.

I'm not able to test for android so can you fix it?

@thevirtuoso1973
Copy link
Collaborator

Yep I can fix the android issues on this branch.

Copy link
Collaborator

@thevirtuoso1973 thevirtuoso1973 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't properly looked at the pedometer yet, but these are my initial comments.

But your priority is getting the checks to pass.

android/app/src/debug/AndroidManifest.xml Outdated Show resolved Hide resolved
lib/main.dart Outdated Show resolved Hide resolved
lib/main_pages.dart Outdated Show resolved Hide resolved
lib/notification.dart Outdated Show resolved Hide resolved
lib/pages/checkup.dart Outdated Show resolved Hide resolved
lib/pages/checkup.dart Outdated Show resolved Hide resolved
lib/pages/checkup.dart Outdated Show resolved Hide resolved
lib/pages/checkup.dart Outdated Show resolved Hide resolved
@thevirtuoso1973
Copy link
Collaborator

You can press resolve conversation on stuff that you have changed.

Copy link
Collaborator

@thevirtuoso1973 thevirtuoso1973 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but just a couple things left to change.

android/app/src/debug/AndroidManifest.xml Outdated Show resolved Hide resolved
lib/pages/checkup.dart Outdated Show resolved Hide resolved
lib/pages/checkup.dart Outdated Show resolved Hide resolved
lib/pages/checkup.dart Outdated Show resolved Hide resolved
lib/pages/checkup.dart Outdated Show resolved Hide resolved
lib/pages/checkup.dart Outdated Show resolved Hide resolved
lib/pages/checkup.dart Outdated Show resolved Hide resolved
Copy link
Collaborator

@thevirtuoso1973 thevirtuoso1973 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw you don't need to use new to create new objects but that's a very minor thing.

@thevirtuoso1973 thevirtuoso1973 merged commit c8e7107 into develop Dec 15, 2020
@thevirtuoso1973 thevirtuoso1973 deleted the checkup-screen branch December 15, 2020 20:22
thevirtuoso1973 added a commit that referenced this pull request Jan 10, 2021
* dart version update

* installing package for push notifications

* scheduled notificastion

* changes to notifcation

* version update in pubspec.lock

* commented out the bit in appdelegate.swift that was causing a problem

* testing checkup without fitkit errors

* fixing comment symbols

* just tweaks

* finished checkup screen

* migrate model to use sqlflite

* randomly create wellbeing items for debugging

* i need to commit to leave the branch sorry

* remove test, we'll do it properly later

* fix AndroidManifest.xml & build.gradle

* add pubspec.lock

* fixed comments on pull request

* adding checkup to pages

* have to commit to checkout

* remove unrelated stuff from checkup branch

* rough initial working implementation of notifications

* schedule weekly notifications for checkup and publish in main.dart

* initial implementation of wellbeing_circle.dart

* support nullable score in wellbeing_circle.dart and use a material card

* Publish Data Screen & POST Last Week's Wellbeing (#24)

* migrate model to use sqlflite

* randomly create wellbeing items for debugging

* remove test, we'll do it properly later

* working pop up screen for publishing data

* implement differential privacy

* fix http for debug android builds and some type errors

* switch to flutter stable and fix

* don't actually POST yet

* Revert "don't actually POST yet"

This reverts commit 751421c.

* change BASE_URL to a test url

* First time setup (#25)

* working pop up screen for publishing data

* implement differential privacy

* add first_time_screen and add the form

* save setup data to shared_preferences

* update lock

* add publish screen to _selectNotification

* fix build issue by commenting out application tag

* switch to newer notification version and use timezones. Also, add a (working) notification tester in settings.

* implement partially working recurring notification

* fix notification behavior when app is closed (by using streams). Now works on emulator.

* remove TODO. notification works on device

* check if db is empty before opening publish screen

* fix bug with empty DB check

* update .gitignore (#26)

* clean up project and remove .idea

* Checkup screen (#19)

* all page files addded

* Revert "all page files addded"

This reverts commit b50cf96

* dart version update

* installing package for push notifications

* scheduled notificastion

* changes to notifcation

* version update in pubspec.lock

* commented out the bit in appdelegate.swift that was causing a problem

* testing checkup without fitkit errors

* fixing comment symbols

* just tweaks

* finished checkup screen

* i need to commit to leave the branch sorry

* fix AndroidManifest.xml & build.gradle

* add pubspec.lock

* fixed comments on pull request

* adding checkup to pages

* pedometer logic using hive (not tested)

* it was counting per day (for testing) but changed it to per week (line 116 from ==1 to ==7)

* Delete launch.json

* http connection permision for ios

* commenting out my test main

* removing change notifier from main.dart

* fixed some of the warnings, but will fix the commented out function in notification.dart tomorrow

* remove old notification file, remove checkup from pages, trying to fix pod build errors

* fixing pod that got corrupted 'pod deintegrate, pod install, pod update'

* changing the text displayed

* resolving changes

* removing second main

* fixing comments

* requested changes

Co-authored-by: Chris <[email protected]>
Co-authored-by: Chris <[email protected]>
Co-authored-by: Chris <[email protected]>

* remove hive and put the others under 'util'

* use checkup screen with notifications

* split up widgets into functions

* add padding around _thisWeekHolder

* implement first try of better version of pedometer

* handle the case where user has rebooted in the middle of a week (not perfectly, but it won't show negative numbers at least)

* run `flutter format .`

* add steps to home & rename folder to shared

* fix the home page step count, add explicit type in wellbeing_circle.dart

* remove jiffy from pubspec

* remove hive and put the others under 'util' (#34)

* implement our own first time setup

* fix checkup screen adding to DB

* init every time app is opened

* add widget test for wellbeing_circle.dart (#47)

* update with new back-end (#48)

* Check wellbeing (#39)

* check if wellbeing has dropped after the user adds their new score in checkup

* implement the share_button.dart widget and add it to wellbeing_graph.dart

* implement pedometer checking as a background task with Workmanager

* some bug fixes, nudge notification works but not showing pop up screen

* fix UI of nudge screen

* init notification stuff in background callback

* Improved intro screen (#38)

* improved intro screen

* support code text field instead of multiple choice

* removing main

* fixing build error?

* unused import

* push replacement

* multiple choice removed

* removing input formatters\

* unused import

* requested changes

* changing to textformfield and using validators

* changing postcode validator to work always

* unused import

* removing bits for testin

* settings page changes

* save function

* fix validation on intro screen

* switch back to stateful and dispose of text controllers

* run flutter format .

* reverting to old settings page

* Update lib/pages/intro_screen.dart

* Update lib/pages/intro_screen.dart

* removed material app

Co-authored-by: thevirtuoso1973 <[email protected]>
Co-authored-by: Chris <[email protected]>

* fix the sent body, and properly generate new items (#51)

Co-authored-by: saachipahwa <[email protected]>
@saachipahwa saachipahwa mentioned this pull request Jan 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Checkup Screen
2 participants