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

Post hydration data it7 #412

Open
wants to merge 108 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
170e063
initial commit
jmartin777 Mar 27, 2023
b831f13
Initial Commit
CapCinematic Mar 27, 2023
b0a8c0d
html skeleton
CapCinematic Mar 27, 2023
95b2f48
User data model working successful
jmartin777 Mar 28, 2023
a6a4e9b
Merge pull request #1 from jmartin777/userclass
cadechaney Mar 28, 2023
0dbe5c6
Create pull_request_template.md
sdtrachsel Mar 28, 2023
47e88f0
Add user tests
sdtrachsel Mar 28, 2023
468719a
Add Sleep Class code
sdtrachsel Mar 28, 2023
381887a
Merge pull request #2 from jmartin777/test/user
CapCinematic Mar 28, 2023
df6b537
Merge branch 'main' into feat-html-skeleton
cadechaney Mar 28, 2023
3decd34
Feat user class methods using user data
jmartin777 Mar 28, 2023
40b62bc
Merge pull request #4 from jmartin777/userclass
CapCinematic Mar 28, 2023
979504e
Merge branch 'main' into feat-html-skeleton
cadechaney Mar 28, 2023
72378c4
Merge pull request #3 from jmartin777/feat-html-skeleton
cadechaney Mar 28, 2023
6be5e67
Complete Sleep class code
sdtrachsel Mar 28, 2023
9e2e0f0
Intial Commit
CapCinematic Mar 28, 2023
35dd6d5
check for avg/specific oz
CapCinematic Mar 28, 2023
f6d9467
finish checking for class functionality
CapCinematic Mar 28, 2023
3e323e9
add webpack testing info
CapCinematic Mar 29, 2023
ee4b64c
add function for calculating a week
CapCinematic Mar 29, 2023
cd2cbf9
Start hydration test
cadechaney Mar 29, 2023
524cecf
Add passing first test non dynamically
cadechaney Mar 29, 2023
063a05e
Add hard coded date for specific day test
cadechaney Mar 29, 2023
45b253c
Add week long test
cadechaney Mar 29, 2023
b51f5c6
Complete sleep code and test refinement. All tests pass
sdtrachsel Mar 29, 2023
8b110af
Merge pull request #5 from jmartin777/feat/sleep
cadechaney Mar 29, 2023
02b46b5
Merge branch 'main' into feat/test-hydration
CapCinematic Mar 29, 2023
c7a6c48
Test user class
jmartin777 Mar 29, 2023
c99e2f1
Merge pull request #6 from jmartin777/feat/test-hydration
sdtrachsel Mar 29, 2023
bca8d45
Merge branch 'main' into userclass_testing_and_dashboard
CapCinematic Mar 29, 2023
0514579
Merge pull request #7 from jmartin777/userclass_testing_and_dashboard
cadechaney Mar 29, 2023
9e1b9b3
add api and fetch functionality
CapCinematic Mar 29, 2023
98b32eb
add full functionality for accessing data
CapCinematic Mar 29, 2023
c7973e2
Merge pull request #8 from jmartin777/feat-api-calls
cadechaney Mar 29, 2023
151f627
Add most recent day sleep hours to page
sdtrachsel Mar 30, 2023
1b680e2
Feat load user info on DOM
jmartin777 Mar 30, 2023
3f46201
Merge pull request #9 from jmartin777/User_class_dashboard
cadechaney Mar 30, 2023
64906f0
Add sleep stuff
sdtrachsel Mar 30, 2023
77dda26
Fix Sleep class and Sleep-test for more info on week detail and api sort
sdtrachsel Mar 31, 2023
8d29939
Refactored user class and user tests
jmartin777 Mar 31, 2023
5181e20
Merge branch 'main' into feat/displaycardss
cadechaney Mar 31, 2023
9e0fbdd
Merge pull request #11 from jmartin777/feat/displaycardss
cadechaney Mar 31, 2023
e4984a2
Refactor hydration class and updated DOM
cadechaney Mar 31, 2023
011587a
Add welcome message to DOM
cadechaney Mar 31, 2023
4dc1cf9
Merge pull request #12 from jmartin777/User_class_dashboard
cadechaney Mar 31, 2023
6b48127
Merge pull request #13 from jmartin777/feat/hydration-dashboard
jmartin777 Mar 31, 2023
21c954c
add seven day card
CapCinematic Mar 31, 2023
627920e
Refactored the user class
jmartin777 Mar 31, 2023
28a9a84
better display for 7 days
CapCinematic Mar 31, 2023
0c4c6a6
symantics on data
CapCinematic Mar 31, 2023
dfdeff1
Merge pull request #14 from jmartin777/Refactoring
cadechaney Mar 31, 2023
60ecde8
Merge pull request #15 from jmartin777/feat-sevdayCard
jmartin777 Mar 31, 2023
4b29e0c
Started css styling on the dom
jmartin777 Apr 1, 2023
04956c6
Merge pull request #16 from jmartin777/CSS_styling
CapCinematic Apr 1, 2023
e9a2869
Add Activity class and test file
sdtrachsel Apr 1, 2023
35cc94b
Add basic activity test
sdtrachsel Apr 1, 2023
070b092
Merge pull request #17 from jmartin777/test/Activity
cadechaney Apr 1, 2023
e77e405
Created activity class constructor
jmartin777 Apr 1, 2023
e6ec46a
Feat activity methods
jmartin777 Apr 1, 2023
c646764
Merge pull request #18 from jmartin777/Activity_class_constructor
cadechaney Apr 1, 2023
04742ca
Finish up Activity class test
sdtrachsel Apr 1, 2023
1da5dc6
Complete Activity clas. All tests pass
sdtrachsel Apr 1, 2023
181e627
Merge pull request #19 from jmartin777/test/Activity2
cadechaney Apr 1, 2023
39c547d
Add sleep card summary
sdtrachsel Apr 1, 2023
cf8568b
Refactored the User card in CSS
jmartin777 Apr 1, 2023
f279181
Add sleep week cards
sdtrachsel Apr 1, 2023
4c0d79d
Merge pull request #20 from jmartin777/CSS_styling_prt2
CapCinematic Apr 1, 2023
e69c31d
Add activity card & minor error fixes
sdtrachsel Apr 1, 2023
ad4eed3
Merge branch 'main' into feat/dashboardcards
CapCinematic Apr 1, 2023
4e875b3
Merge pull request #21 from jmartin777/feat/dashboardcards
CapCinematic Apr 1, 2023
9abe86f
Pushing to switch drv/nav
sdtrachsel Apr 1, 2023
5ff437e
Arrange the page display
cadechaney Apr 1, 2023
e7147ce
Merge pull request #22 from jmartin777/feat/cardstyling
jmartin777 Apr 1, 2023
3b02226
CSS styling on DOM
jmartin777 Apr 1, 2023
268f4ac
Added CSS styling that matches the sizes of widgets
jmartin777 Apr 1, 2023
177460b
Merge pull request #23 from jmartin777/CSS_styling_prt3
CapCinematic Apr 2, 2023
6cd27c7
add logos and icons
CapCinematic Apr 2, 2023
2e78e3c
Merge pull request #24 from jmartin777/feat-logos
cadechaney Apr 2, 2023
173f5a7
Add css styling to header3
cadechaney Apr 2, 2023
227a6c7
Refactor Activity test to include new methods and correct method naming
sdtrachsel Apr 2, 2023
d6cf8e7
Finish up Activity test refactor and cleaning up Activity class
sdtrachsel Apr 2, 2023
b8ad72b
Refactor Sleep test and clean, clean up sleep class
sdtrachsel Apr 2, 2023
5e54467
Finish activtity tests
sdtrachsel Apr 2, 2023
8e27edf
Update script file to new Activity method names
sdtrachsel Apr 2, 2023
4771807
Update Acvity and Sleep classes and tests to better match rubric
sdtrachsel Apr 2, 2023
51c8e3a
Updates for class method changes
sdtrachsel Apr 2, 2023
72474ad
Add phtots to DOM and browser organization
cadechaney Apr 2, 2023
a757295
Merge pull request #25 from jmartin777/feat/CSS-DOM
jmartin777 Apr 2, 2023
6b93c46
Merge branch 'main' into tests/refactor
CapCinematic Apr 3, 2023
a014a30
Merge pull request #26 from jmartin777/tests/refactor
cadechaney Apr 3, 2023
fea264f
add a new readme
CapCinematic Apr 3, 2023
3fc9d25
Merge pull request #27 from jmartin777/feat-README-Update
cadechaney Apr 3, 2023
28bfec4
add gitfit picture
CapCinematic Apr 4, 2023
258c725
Merge pull request #28 from jmartin777/feat-README-Update
CapCinematic Apr 4, 2023
5733f55
Update README.md
CapCinematic Apr 4, 2023
4c383c8
refactored first name method in user class
cadechaney Apr 11, 2023
86fc8db
remove improper tag elements
cadechaney Apr 11, 2023
9b8913f
change responses in activity class to pass test
cadechaney Apr 11, 2023
3015202
refactor activity test to make the beforeEach cleaner
cadechaney Apr 11, 2023
1067eb8
refactored sleep test data to be its own file
cadechaney Apr 11, 2023
d587dc2
refactor hydration test to have data separate
cadechaney Apr 11, 2023
dce8547
delete empty file
cadechaney Apr 11, 2023
eb696ea
Merge pull request #29 from jmartin777/rafact/day-one-part2
jmartin777 Apr 12, 2023
27cee4e
POST hydration request
jmartin777 Apr 12, 2023
0bd518d
POST hydration data successful
jmartin777 Apr 12, 2023
8673a47
Post hydration dom manipulation
jmartin777 Apr 12, 2023
4c001bd
POST hydration data setup
jmartin777 Apr 13, 2023
98a5a62
Post Hydration data refactor
jmartin777 Apr 13, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Describe your changes:
[//]: <> (Which files were changed? What changes were made?)



## Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have tested the functionality of any new or updated features in the browser, if applicable
- [ ] I have added two or more people as "Reviewers" to review & merge
- [ ] If applicable, my code passes all tests

## Bugs/Issues
- [ ] No bugs found
- [ ] Bug found

If bug found, describe and if applicable, include error:
12 changes: 12 additions & 0 deletions .idea/fitlit-starter-kit.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

88 changes: 88 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

118 changes: 40 additions & 78 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,78 +1,40 @@
# FitLit Starter Kit

The details of this project are outline in [this project spec](http://frontend.turing.io/projects/fitlit.html).

## Setup

1. Within your group, decide on one person to have the project repository (repo) on their GitHub account. Then, that person should fork this repo - on the top right corner of this page, click the **Fork** button.
1. Both memebers of the group should clone down the _forked_ repo. Since you don't want to name your project "activity-tracker-starter", you can use an optional argument when you run git clone (you replace the [...] with the terminal command arguments): `git clone [remote-address] [what you want to name the repo]`
1. Once you have cloned the repo, change into the directory and install the project dependencies. Run `npm install` to install project dependencies.
1. Run `npm start` in the terminal to see the HTML page (you should see some boilerplate HTML displayed on the page). `Control + C` is the command to stop running the local server. Closing the terminal without stopping the server first could allow the server to continue to run in the background and cause problems. This command is not specific to Webpack; make note of it for future use.
1. Make sure both members of your team are collaborators on the forked repo.
1. Do not run `npm audit fix --force`. This will update to the latest version of packages. We need to be using `[email protected]` which is not the latest version. If you start to run into Webpack errors, first check that all group members are using the correct version.

## Testing

There is no boilerplate for testing in this starter-kit repo. You will need to set this up yourself. However, if you ran `npm install`, then the tooling you need to start testing is already installed (`mocha` and `chai`).


## Data Model

**Users**

```
[
{
"id": [number],
"name": [string],
"address": [string],
"email": [string],
"strideLength": [number - feet],
"dailyStepGoal": [number - steps],
"friends": [array - one-way connection to other user(s)]
},
...more user data
]
```

**Activity**

```
[
{
"userID": [number],
"date": [string YYYY/MM/DD],
"numSteps": [number - steps],
"minutesActive": [number - minutes],
"flightsOfStairs": [number - flights]
},
...more activity data
]
```

**Hydration**

```
[
{
"userID": [number],
"date": [string YYYY/MM/DD],
"numOunces": [number - ounces]
},
...more hydration data
]
```

**Sleep**

```
[
{
"userID": [number],
"date": [string YYYY/MM/DD],
"hoursSlept": [number - hours],
"sleepQuality": [number - unitless]
},
...more sleep data
]
```
# README

## Description

Description: For this project our group built an application we named 'Git Fit'. It currently shows a randomized user and all that users data for different aspects of 'Getting Fit'. For each user there is a sleep column that displays the quality of sleep throughout the week and how many hours. The second column will deal with how many ounces have been drank by week and day. The final column displays the users activity levels, showing if they met their step goals for each week.

## Installation / Usage

Installation steps:

1. Fork the GitHub Repository file (the word file should be a hyperlink).

2. After initializing git inside the directory the user wants they can now clone their forked copy to their machine

3. The user can now type 'npm install' into their terminal and hit enter.

4. Then type 'npm start' into the same terminal. Now the user can open a new window in their terminal using 'cmd - t'.

5. The user can now type open '**[http://localhost:8080/](http://localhost:8080/)**' into the new window in terminal to open up the application.

## Contributor / Links

Sharie Trashiel

[https://github.com/sdtrachsel](https://github.com/sdtrachsel)

Josua Martin

[https://github.com/jmartin777](https://github.com/jmartin777)

Johnathan Chaney

[https://github.com/cadechaney](https://github.com/cadechaney)

Isaiah Richardson

[https://github.com/CapCinematic](https://github.com/CapCinematic)

## Git Fit
![GitFit](dist/images/Gitfit.png)
Binary file added dist/901c1f0e-562a-4c15-b39f-da7851d6ea1f_360.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 dist/Friends-Icon.JPEG
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 dist/Gitfit-logo.JPEG
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 dist/Hydration-Icon.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 dist/Sleep-Icon.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 dist/activity-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading