Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
201 commits
Select commit Hold shift + click to select a range
e830467
Update readme with more detailed starting instructions, also instruct…
kenpower Jan 3, 2020
e79e39e
Remove space fixes string/array type bug
kenpower Jan 8, 2020
13c9e2a
Mark unused methods
kenpower Jan 8, 2020
8b9c1bb
Fixes several bugs related to scrolling
setumartin Jan 9, 2020
3b1381a
Remove border around Gluton and unused images
setumartin Jan 9, 2020
d92b7b2
Fixed language mistakes; requires the symptoms table to be re-created
setumartin Jan 9, 2020
8f441e5
Fixed bug with the z-order of the severity bubbles
setumartin Jan 9, 2020
c49f2db
Fixed clipping around speech bubbles
setumartin Jan 9, 2020
c948a79
Fix padding on new symptom screen
setumartin Jan 10, 2020
25b5c7b
Automatically scoll to text input when keyboard displayed
setumartin Jan 10, 2020
7537a35
Fix inconsistent styles on the add new symptom screen
setumartin Jan 11, 2020
83c1ad4
Create Android and iOS build
deleojur Feb 4, 2020
bd34342
Fetch unrecorded data from symptoms and events tables
harrigan Feb 4, 2020
e5a2e0c
Read tokens, etc. from .env file
harrigan Feb 4, 2020
6ee3f6b
Remove CeliServer et al.
harrigan Feb 4, 2020
a692954
Add GIP results screen
kenpower Feb 4, 2020
ae807b9
Add UploadManager and refactor DatabaseManager
harrigan Feb 4, 2020
91f2ed1
Merge branch 'master' of github.com-work:itcgames/celiapp
harrigan Feb 4, 2020
61be91e
Fix discard GIP info
kenpower Feb 4, 2020
6c2eb2c
Fix setting of lastRecorded
setumartin Feb 5, 2020
e7bd8bb
persist gip data to DB
kenpower Feb 5, 2020
fa95e40
show GIP resulst in entry list and calender
kenpower Feb 5, 2020
330d830
fix GIP modified dialog bug
kenpower Feb 5, 2020
548b3e3
new gip icon
kenpower Feb 5, 2020
fdd63ed
small refactor
kenpower Feb 5, 2020
1a261ab
Post unrecorded data to API service
setumartin Feb 5, 2020
85759ff
Merge branch 'master' of github.com-work:itcgames/celiapp
setumartin Feb 5, 2020
257002f
Only update lastRecorded if upload was successful
setumartin Feb 5, 2020
a71e034
Fix bugs with modified vs. created columns and the title on GIP Resul…
setumartin Feb 5, 2020
dcd5742
Schedule notifications 12 hours after logging food
deleojur Feb 5, 2020
dde4cb5
remove redundant Wolverine homescreen
kenpower Feb 5, 2020
e8826e8
get username dialog
kenpower Feb 5, 2020
53bc9b1
Use remote server for upload
setumartin Feb 5, 2020
040c76b
Merge branch 'master' of github.com-work:itcgames/celiapp
setumartin Feb 5, 2020
021c555
Remove username dialog because file is missing
setumartin Feb 5, 2020
e89ecc9
Update logo and app.json file for upload to Appstore
deleojur Feb 5, 2020
6c58e85
Revert "Remove username dialog because file is missing"
kenpower Feb 6, 2020
dfb601e
Add username dialog
kenpower Feb 6, 2020
423e92b
put userID in DB
kenpower Feb 6, 2020
7248c73
Use new HTTPS endpoint and user identifier as token
setumartin Feb 6, 2020
4d9ea1d
Fix action button not working on android
kenpower Feb 6, 2020
25bbf96
Fix typos
setumartin Feb 6, 2020
57b6ca0
Merge branch 'master' of github.com:itcgames/celiapp
deleojur Feb 6, 2020
be768a3
Add missing imports
setumartin Feb 6, 2020
518080c
Merge branch 'master' of github.com-work:itcgames/celiapp
setumartin Feb 6, 2020
eb3af1c
Remove save button from calendar screen
setumartin Feb 6, 2020
a4e81c1
Remove three-dots menu from remaining screens
setumartin Feb 6, 2020
33c73ab
Update bundleidentifier. Check readme.txt on USB drive for building i…
deleojur Feb 6, 2020
468df31
remove redundant Wolverine homescreen
kenpower Feb 5, 2020
b0a09dd
get username dialog
kenpower Feb 5, 2020
2ae9eaa
Use remote server for upload
setumartin Feb 5, 2020
b7b3e0b
Remove username dialog because file is missing
setumartin Feb 5, 2020
cbc3fca
Update logo and app.json file for upload to Appstore
deleojur Feb 5, 2020
870cba4
Revert "Remove username dialog because file is missing"
kenpower Feb 6, 2020
ebc8631
Add username dialog
kenpower Feb 6, 2020
c36151e
put userID in DB
kenpower Feb 6, 2020
18d4eca
Use new HTTPS endpoint and user identifier as token
setumartin Feb 6, 2020
80984be
Fix action button not working on android
kenpower Feb 6, 2020
87388c1
Fix typos
setumartin Feb 6, 2020
0b4e166
Add missing imports
setumartin Feb 6, 2020
0c7e081
Remove save button from calendar screen
setumartin Feb 6, 2020
b40de6a
Remove three-dots menu from remaining screens
setumartin Feb 6, 2020
b340fb0
Update bundleidentifier. Check readme.txt on USB drive for building i…
deleojur Feb 6, 2020
d75f0ee
Merge branch 'master' of github.com:itcgames/celiapp
deleojur Feb 6, 2020
e361369
disable OK button in username dialog for invalid usernames
kenpower Feb 6, 2020
37c49b6
reintroduce middle button to home screen
Feb 14, 2020
3506ddf
Result Block Added and Implemented. Replacing Tag Results in Vire Screen
Feb 17, 2020
4c34f83
Bump version numbers and make visible in app
setumartin Feb 17, 2020
dcba5a5
disable landscape orientation
kenpower Feb 17, 2020
d21ad38
Fix bug when setting notification time
setumartin Feb 17, 2020
e1660e8
Merge branch 'master' of github.com-work:itcgames/celiapp
setumartin Feb 17, 2020
65fd8b9
Schedule a notification when the app is first started
setumartin Feb 17, 2020
b0a55a0
Add placeholder to single line text inputs
setumartin Feb 17, 2020
2f15a08
Add placeholder to multi-line input and rework add meal screen
setumartin Feb 17, 2020
f8e6152
Display version number on startup
setumartin Feb 17, 2020
f4b3b78
Upgraded expo and bumped version and build codes for deployment
daireobroin449 Feb 20, 2020
2fb12f4
Fixed merge conflict
daireobroin449 Feb 20, 2020
e62fe25
Revert "Fixed merge conflict"
setumartin Feb 20, 2020
d679edf
Add project docs links to readme
kenpower Feb 22, 2020
056dda4
Fix link markdown
kenpower Feb 22, 2020
6c18909
Fix Android bug when selecting symptoms (Closes #18)
setumartin Feb 24, 2020
eba495d
Ask for email instead of username
setumartin Feb 24, 2020
d35d5d3
Merge branch 'feature/noSymptoms'
deleojur Feb 25, 2020
32e5f6e
Add No Symptoms button
deleojur Feb 25, 2020
9457720
remove saving behaviour on change date in symptom screen
Feb 24, 2020
dadf6b0
added dummy symptoms to test interface
Feb 25, 2020
79bb212
Add github automation to move new issues to backlog
kenpower Feb 25, 2020
8e8b1ff
change name of workflow
kenpower Feb 25, 2020
38a5c59
added circle view and figured out db
OisinWilson Feb 25, 2020
6061947
Grey out save button when no symptoms are selected and request discar…
deleojur Feb 26, 2020
de93cee
Merge branch 'feature/recordSymptom'
deleojur Feb 26, 2020
4aaee02
Finished Components
OisinWilson Feb 26, 2020
f609f72
fix to dates
OisinWilson Feb 26, 2020
6893a96
reintroduce middle button to home screen
Feb 14, 2020
5fa10a7
added circle view and figured out db
OisinWilson Feb 25, 2020
881d3df
Finished Components
OisinWilson Feb 26, 2020
71af0ae
fix to dates
OisinWilson Feb 26, 2020
66b0b44
Merge branch 'oisin-wilson' of https://github.com/itcgames/celiapp in…
OisinWilson Feb 27, 2020
da5fa6d
upload data on app going to background. closes #23
Feb 27, 2020
eb8a5cf
Fixed Date Issue, Updated Icons
Feb 27, 2020
ae97903
Merge branch 'master' into SeanNash
Feb 27, 2020
2e60539
Save GIP image ase Base64 in local db (closes #25)
setumartin Feb 28, 2020
c6b03a1
code formatting cleanup
Feb 28, 2020
daf481e
show all symptoms in record symptom screen
Feb 28, 2020
aca52c7
use default icon for placeholder symptoms
Feb 28, 2020
6eb777a
Prepopulate selected date fixes #12
deleojur Mar 1, 2020
b75795b
Merge branch 'issue/14_prepopulateDate' fixes #12
deleojur Mar 1, 2020
8b1a762
Fix bug: User forced to save two symptoms. Fixes #33
deleojur Mar 1, 2020
7807b55
Remove meal crash, fixes #37
deleojur Mar 1, 2020
7c5b453
Fix missing "no symptom" button
kenpower Mar 1, 2020
35dc57b
Fix bug when saving "no symptom"
kenpower Mar 1, 2020
5f19e49
remove debugging code
kenpower Mar 1, 2020
a514cd5
Add selectedDate for emote, meal and GIP tracker screens. Fixes #14
deleojur Mar 2, 2020
295137e
Display No Symptoms name in calendar entry list - fixes #16
deleojur Mar 2, 2020
42dc5eb
Display No Symptoms name in calendar entry list - fixes #16
deleojur Mar 2, 2020
9ba3997
Merge branch 'master' of github.com:itcgames/celiapp
deleojur Mar 2, 2020
1fe7117
add create symptom button to symptoms list
Mar 2, 2020
8b66c06
Merge remote-tracking branch 'origin/master' into SeanNash
setumartin Mar 3, 2020
0cfdcc5
Move title and logo up so keyboard doesn't overlap username field (fi…
deleojur Mar 3, 2020
69b9fe8
Replace positive and negative text with result
setumartin Mar 3, 2020
ba5fb17
Merge branch 'master' of github.com-work:itcgames/celiapp, closes #55
setumartin Mar 3, 2020
2c3e013
Merge remote-tracking branch 'origin/master' into oisin-wilson
setumartin Mar 3, 2020
552ffa6
Add correct logo to app and notification (fixes #24)
deleojur Mar 3, 2020
eb580b1
Simplify the progress circle
setumartin Mar 3, 2020
4b38018
Merge remote-tracking branch 'origin/master' into oisin-wilson
setumartin Mar 3, 2020
d4aeef7
Set notification to +1 day instead of +1 second
deleojur Mar 3, 2020
d349cf6
Add new symptoms
kenpower Mar 4, 2020
d042318
Remove palceholder symptoms
kenpower Mar 4, 2020
83f5ad3
Added loss of appetite
daireobroin449 Mar 4, 2020
1a1ba2e
add icons for new symptoms
kenpower Mar 4, 2020
1dab1f1
Fix bug with all blue circles on home screen
setumartin Mar 5, 2020
0272532
Merge branch 'master' of github.com-work:itcgames/celiapp
setumartin Mar 5, 2020
6d6ee11
Remove hardcoded UTC setter
deleojur Mar 5, 2020
99d7102
Add GIP icon and meal icon
deleojur Mar 5, 2020
f2d4b38
Update issue templates
kenpower Mar 5, 2020
64030fa
Fix small notifications error
deleojur Mar 6, 2020
295814d
Add user story template
kenpower Mar 6, 2020
a6e7419
Update user-story.md
kenpower Mar 6, 2020
c8fda19
Disable Save Button after first click fixes #29
deleojur Mar 6, 2020
eeb5e72
Make button active after 300 ms
deleojur Mar 6, 2020
fc15b28
Increment build number to 109
daireobroin449 Mar 7, 2020
30e257c
add logos for use in readme
kenpower Mar 7, 2020
ae40ed7
change readme to markdown
kenpower Mar 7, 2020
35ff1a3
Update readme
kenpower Mar 7, 2020
1403716
typos in readme
kenpower Mar 7, 2020
fd38c6b
Use current hour + minutes to set the time after switching to new dat…
deleojur Mar 7, 2020
811becf
Add TimePicker for Add Emotion Screen. Fixes #50
deleojur Mar 7, 2020
7bf0a1a
Disable selecting future dates fixes #48
deleojur Mar 7, 2020
97b6b15
Add lightblue circles to days that are filled in fixes #49
deleojur Mar 8, 2020
b76b457
Didsplay time in 00:00 format fixes #
deleojur Mar 8, 2020
d6be4be
Avoids saving GIP images in local DB. Fixes #47
setumartin Mar 10, 2020
b63765e
working_again
lpr95 Mar 10, 2020
3fdc954
formatting
kenpower Mar 10, 2020
e06cfae
Refactor CircleDisplay
kenpower Mar 10, 2020
3d9c757
Install react-native-media-queries
deleojur Mar 25, 2020
24ed7a9
Update style when screenHeight is smaller than 700 pxs - fixes #19
deleojur Mar 25, 2020
73bce1e
Reduce logo size for smaller screens in the Username Dialog
deleojur Mar 31, 2020
d282b8f
Set grayscale notification icon in notification tray
deleojur Apr 1, 2020
56df907
working_again
lpr95 Mar 10, 2020
ffcc389
Merge branch 'master' of https://github.com/lpr95/celiapp
lpr95 May 25, 2020
bff0dd4
react navigation3 / react navigation5 dependency conflict"
lpr95 May 26, 2020
30ccb11
expo 35.0.0->36.0.0
lpr95 Jun 9, 2020
5527871
avatar is now expo35 compatible
lpr95 Jun 10, 2020
f82981b
Merge remote-tracking branch 'origin/fhvdev' into celiappAvatarExpo35
lpr95 Jun 10, 2020
caef84e
optimized app workflow and design
lpr95 Jun 16, 2020
1b2ddd7
Merge branch 'master' into fhvdev
lpr95 Jun 16, 2020
1a7f646
removed unused files
lpr95 Jun 16, 2020
2c8c8d1
avatar emotion gets stored on addEmotion + fixed fab-button-navigatio…
lpr95 Jun 16, 2020
8178718
GlutenbuddyRoot is now starter component
lpr95 Jun 17, 2020
9994122
updated project structure + moved progressbar to wardrobe
lpr95 Jun 17, 2020
77d7fc3
Integrated Streaks and Levels with Meal adding
Jun 17, 2020
4280b0c
progressbar fix
lpr95 Jun 18, 2020
c42cb8e
previous README valid again
lpr95 Jun 18, 2020
1b21890
Fixed Achievements not updating
Jun 19, 2020
05db10e
introduced Avatar for IOS; resolved bug: 'mark avatar items on startup'
lpr95 Jun 21, 2020
6a365b9
separate json file for every avatar item
lpr95 Jun 21, 2020
0571513
fixed no header in challenges and 'ChallengesTest'
lpr95 Jun 21, 2020
f6d0ccb
fix avatar on ios
lpr95 Jun 22, 2020
f24b31a
flash message active for 5000 ms
lpr95 Jun 23, 2020
7a950ad
Fixed some bugs
Jun 26, 2020
d0b2a49
all skins available with level 1
lpr95 Jun 26, 2020
599f02d
Added entry for UnsureBreakfast
Jun 26, 2020
ff7d9b5
Update README.md
dluGit Sep 22, 2020
3a02cba
Update README.md
dluGit Sep 22, 2020
768795e
Started on adding simple analytics
Oct 2, 2020
025960b
initial commit
dluGit Oct 20, 2020
0199b10
logginStore implemented
dluGit Oct 20, 2020
6a7912f
added logging for fab-button-components
lpr95 Oct 21, 2020
c0fd940
added logging 'on tab change'
lpr95 Oct 22, 2020
637ee3a
logging swipe actions enabled
lpr95 Oct 23, 2020
8656288
Moved buttons to wardrobe
Oct 25, 2020
fa85e8d
Merge branch 'logging' into LisaAnalytics
Oct 25, 2020
0bbeb14
Merge pull request #3 from lpr95/LisaAnalytics
Oct 25, 2020
3db98ff
Added changing of gamification flag
Oct 25, 2020
06a389c
added wardrobe logging for all tapped items
lpr95 Oct 25, 2020
de1b7a3
Merge pull request #58 from lpr95/master
daireobroin449 Oct 27, 2020
d2593eb
logging for bottom nav bar
lpr95 Oct 27, 2020
64071ef
update to expo 36
Oct 30, 2020
8138c54
remove build products: dist assets and bundles
Oct 30, 2020
7015c20
fixes wrong timestamp on events. Resolves #63
Oct 30, 2020
3d25585
Merge pull request #65 from lpr95/master
kenpower Nov 3, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"presets": ["module:metro-react-native-babel-preset", "module:react-native-dotenv"],
"plugins": [
["@babel/plugin-transform-flow-strip-types"],
["@babel/plugin-proposal-decorators", { "legacy": true}],
["@babel/plugin-proposal-class-properties", { "loose": true}]
]
}
57 changes: 57 additions & 0 deletions .expo-shared/assets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"b18ad91ca980baf956293489642506bc7ec58893012aff7ccdb7b41beccf1fda": true,
"e6194e8c7f210ddc1457ea089ab56a9a5d6a20d6f285a1b6c74afdbf2082135f": true,
"29b577bd087b53e2bbda66b545030f629425b9ec52684d4feba82d2f4c8ae20f": true,
"f17cbf9cc6817aecf906b53772e4b177c856f1dd609b3135990017c705d46fc3": true,
"e83423047300310d3259bba236fed521dd8f8c22b392bda606b9dd17115fcdf3": true,
"b013673750d281b7cc565caf7db1017426fe09a6e8f4807264fece5ff06f193e": true,
"21a813ec706b0e30239c865f7aa38872cf020c5d5c3399cbb025631b6eba3d28": true,
"36e58a315e5386e3792efe62ed85e69827a1c2c4c711236eec8ced0385b43a7d": true,
"a01d0473b9b6e510ce1c65f358f8e5ce139d084be4957c2dba965106c0228231": true,
"ee14acbdb1a58adb08642ac54ac9ba3361714d9f5f362b86b3b5a90778fbad4b": true,
"9b1c2a73731dfb113bf47523ee7e482f6072ef6e5ccafe4322e810cf9c90fc4c": true,
"1af4ee12082d00e6d1edaf3e0360c9da78abf3f5c926d70c6b461f38260def94": true,
"0f6a70421b7a71f153a69ba70e34137ad5889e0ef44bf48772540d382eea201a": true,
"b3c5927587d5a0860978950098fa6a52d5c84cae8e39bc3b44a41dc62eb47a01": true,
"e963c3dd47696aedbf692bd87ab4198f4e68e3258d62044f3e9dafedb4bc8e8b": true,
"230f71a214b25015f408f52006919b641fafed72696b28cf6e74f4b248d46d49": true,
"22f57ba850080f7bad750a149f472ce8f341fdf57c10765fd8e85dede87eb5be": true,
"1feac0c84120d449bbec45e2d7736d5bf6bb9deb06cbd29e3b47ce98f788d61a": true,
"7cf7ca761792786f0aefc45f141e0bed32bba529930a3188e9f4d9bd260a7e07": true,
"ccaa8add20c8ffb77cfe6e0ec50d1928b989e778ae2b6214ebbba11ab8cf6a77": true,
"9437f40bcbca3df57297f38cdd3a8fe767b7ddeee036b2553785b6a348f6d0c8": true,
"ef5fac67c6b20a2217a55a20ddcb88059b0dd37d3fff9cfda4c29fae96003e2f": true,
"a265d571f3e2c1516fc192cb4cae9b1a77a9b154f4f4223f54737183d7f95122": true,
"8d811db7ed6a4444e295734d03d73854e5a6551c733173a72cfd61d23a6c026c": true,
"0652d8c040aadd3c3b7f09ca8db5e8f9e9d3e2fa6b9fe253c16cfb170a7b31fd": true,
"ab5c30fea21e1e49aa73e0afcdd9ec086e4be470b1babd5364ce2a4c20cf8c79": true,
"6053c7fd7ba930d8f24eeaccd286e985c1ad641cdf8c24411af1aa797478e99e": true,
"5954866eea13ae0537d2b80c0cf93f9f0d748b8e57c8f4523ac17ea733708792": true,
"2c5f59243e6dc6b9714c7929c7e2f2b34736ba1c6d480b2a393d2a723da00dad": true,
"a5edd3f7e19425af6f761b5fc6be9e3aea6c8250cb19b66198f237ebe34fd108": true,
"1ebe9f1ccab3eab3e423ac26d6cac9b8b1e21a65bcde69adb01398a1a936943f": true,
"1499fa218866a0afb200db1a55b2bf41a94a8c499ae8320c36bd11b08f98dc53": true,
"035c1c0198123cdc2cd7ef2a9dbc26c5d7e71bd0d30e380120f0f4f4834d488b": true,
"dc5607e591d6321e5cc1979951b894d2f69dad6870713c0bb96730a157df367f": true,
"70faf1c80e010ab13feff72ac727b144c2e1c02276d18dc69ac0883110666a9f": true,
"51b75587fe9246ec6dc441afa2fb85ec95ce1004cee96912db9b86e5dbefe57e": true,
"3de9e00b426d59f57f89f59899797b441ed4dc1e6783a80d07530faf865a52f4": true,
"14ad0457f95c5bb980bae3d46faa8e80de996cdcc3e434ac103504f13a68bd25": true,
"d94811d7fb2fdae32f52d771bd6c98ad2c54bd3398fcd3fbcce0d68b732b1981": true,
"8b14765a18ce2cdb6695628ebef0decd68bd8f9900e11afb6dd36ec3182336e7": true,
"2bb9b9b85443989e8d5af16bb29c745e4bb724f47f60cc0cd562a7e64a0bfb92": true,
"3f3d87546aee1a2502a1e634dc743e02c5f3ecf932bf599e06c40e6d319ed324": true,
"824ff3637cd21227e9e740ab550aed85c16382d3f231acec54eef9c5444d16c1": true,
"a9eefbb09ba831d3d73bf36115676e665813fded4af77afb705658e163256fb4": true,
"ac58cba8a2b570b4921694fbe6f1f1c1ab0a56d4f39d8ea8c9c17c5a59b613b5": true,
"80d49f5a533c37016859af62026d65f1da5216a4cf963e023b293866f5b70629": true,
"f4ae418fea416ea54362df0d7e8b5e9558332833990f96cd1ae9d52ab3f7ede8": true,
"0e0edb829c14f0e8f1be4d1719bcf89b9685743e006c442ebbbd9af4837b2213": true,
"a48c11020daa28205d6a9a11b8a4bd5895338c955583d1b69d47cea8b647c255": true,
"de0f21c5d5a364076c77ad27531d4735c92976e3ce6f9d51a17097f6805fce1b": true,
"e58edd633ca8122fca976453338a5c88fbb97b250d66c0a6e10d794ea873cd40": true,
"73baeffafbc75ca598e4f6fe8e1a3a5bc5a45911875af622fffd0e59cce48ac3": true,
"9da5dd1c6c712b4359c742aa9e2afd1003f4036fe7d860febaaa9d15291dd0d9": true,
"9353b2db65c5419a3435f4881b110c764614f97ae22645ba60650e35a48cd8fd": true,
"78bff6771e68dedf079a292f28da83121a4f3f8d5db9f80e1bdf2db36705f7e7": true
}
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
43 changes: 43 additions & 0 deletions .github/ISSUE_TEMPLATE/user-story.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
name: User Story
about: A valuable increment of functionality, testable by the users
title: ''
labels: ''
assignees: ''

---

As a ‹role›, I'd like to ‹feature short description› [ , in order to ‹value it adds›. ]

## Conditions of satisfaction

- [ ] Should ‹testable condition that should be satisfied›
- [ ] Should ‹testable condition that should be satisfied›
- [ ] …

## Tasks
- [ ] task 1
- [ ] task 2
- [ ] …

## Notes and resources

* e.g. some useful information or context for the story
* e.g. links to designs or slack conversations
* ...

## Story writing guidelines - Can delete everything below here

*Acceptance criteria* are things that can be verified to show that this user story is satisfied.

* [“Advantages of the “As a user, I want” user story template.”](http://www.mountaingoatsoftware.com/blog/advantages-of-the-as-a-user-i-want-user-story-template)


### A good user story should be (I-N-V-E-S-T principle)

* _Independent_ (from other user stories, allowing to realize them in any order);
* _Negotiable_ (omit details that would freeze the story);
* _Valuable_ (implementation delivers an increment of functionality, observable by and useful to users);
* _Estimatable_ (developers should be able to estimate its size relative to other stories);
* _Sizable_ (implementation fits in one iteration – if it needs many to complete, it is an EPIC);
* _Testable_ (user must be able to check the conditions of satisfaction).
Binary file added .github/logos/FHV_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/logos/HVA_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/logos/IHP_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/logos/ITC_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/logos/combined_logos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/logos/erasmus_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Move new issues into backlog column

on:
issues:
types: [opened]

jobs:
automate-project-columns:
runs-on: ubuntu-latest
steps:
- uses: alex-page/github-project-automation-plus@v0.1.0
with:
project: Celiapp
column: Backlog
repo-token: ${{ secrets.GITHUB_ACTION_TOKEN }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@

# production
/build
/dist/assets
/dist/bundles

# misc
.DS_Store
.env
.env.local
.env.development.local
.env.test.local
Expand Down
75 changes: 69 additions & 6 deletions App.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
import React from 'react';
import { View, StyleSheet } from 'react-native';
import { View, StyleSheet, AppState } from 'react-native';
import AppNavigator from './src/navigation/AppNavigator';
import LoadingScreen from './src/screens/LoadingScreen';
import DatabaseManager from './src/manager/DatabaseManager';
import LanguageManager from './src/manager/LanguageManager';
import GlutonManager from './src/manager/GlutonManager';
import GearManager from './src/manager/GearManager';
import UploadManager from './src/manager/UploadManager';
import NotificationManager from './src/manager/NotificationManager';
import UsernameDialog from './src/components/UsernameDialog';


import { } from 'react-native-dotenv';
import FlashMessage from 'react-native-flash-message';

export default class App extends React.Component {
state = {
isSplashReady: false,
isAppReady: false,
appState: AppState.currentState
}

componentDidMount() {
DatabaseManager.getInstance().loadSettings(null,
(_, error) => { alert(JSON.stringify(error)); },
(_, error) => { alert("error loading settings" + JSON.stringify(error)); },
(_, {rows: { _array }}) => {
let settings = {};

Expand All @@ -26,25 +34,80 @@ export default class App extends React.Component {
this.initApplication(settings);
}
);

AppState.addEventListener('change', this._handleAppStateChange);
}

componentWillUnmount() {
AppState.removeEventListener('change', this._handleAppStateChange);
console.log("unmounting App")
}

_handleAppStateChange = (nextAppState) => {
if (
nextAppState.match(/inactive|background/) &&
this.state.appState === 'active'
) {
this.uploadFreshData();
console.log('App is going to background!');
}
this.setState({appState: nextAppState});
};

initApplication(settings) {
LanguageManager.getInstance().setLanguage(settings.language);
NotificationManager.getInstance(); //just to show the user the notification permission screen.
GlutonManager.getInstance().setBuddy(settings.nickname);

GearManager.getInstance().setWsHost(settings.wsHost);
GearManager.getInstance().setGearHost(settings.gearHost);

GearManager.getInstance().connect();

this.setState({isSplashReady: true});

this.uploadFreshData();

this.setState({
isSplashReady: true,
hasUserId: !!settings.userId,
userId: settings.userId
});
setTimeout(() => this.setState({isAppReady: true}), 3000);
}


handleNewUsername = (userName) => {
console.log("Saving username:" + JSON.stringify(userName));
DatabaseManager.getInstance().saveSettings('userId', userName, (error) => {alert(error)}, null);

this.setState({
hasUserId : true,
userId: userName})
};

getUploadServiceAuthToken = () => this.state.userId

uploadFreshData() {
token = this.getUploadServiceAuthToken()
//TODO get new auth token
if (token) {
UploadManager.getInstance().setToken(token);
DatabaseManager.getInstance().fetchUnrecordedData((_, error) => console.error(error), (_, data) => {
UploadManager.getInstance().uploadData(data, () => { DatabaseManager.getInstance().updateLastRecorded(); });
});
}
}

render() {
return (
<View style={styles.container}>
{this.state.isSplashReady == false ? null : <AppNavigator/>}

{this.state.isSplashReady == false
? null
: this.state.hasUserId
? <AppNavigator/>
: <UsernameDialog onUsername ={this.handleNewUsername}/>
}
<LoadingScreen hide={this.state.isAppReady} style={styles.loading}/>
<FlashMessage position="bottom" duration={5000}/>
</View>
);
}
Expand Down
73 changes: 0 additions & 73 deletions CeliServer/build.xml

This file was deleted.

Binary file removed CeliServer/dist/CeliServer.jar
Binary file not shown.
Loading