GithubHelp home page GithubHelp logo

flexapp's People

Contributors

davisc0801 avatar kylecornelissen avatar tnodland avatar vincecarollo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

flexapp's Issues

Trainer show page client intake goals

As a Trainer
When I visit "/trainer/dashboard"
All clients have a percentage of days in the last week they met intake goals

Continuation from user story #6

Client can Communicate with the Trainer

As a Client
When I visit "/dashboard"
I see a link labeled "Message Your Trainer"
When I click that link
I am taken to a form to compose and send text message to my trainer.

Trainer has Client Show Page

As a Trainer
When I visit "trainer/dashboard"
And I click on a client's card
I am taken to that users show page - "user/id"

Users can View Remaining Intake

As a User
When I visit the user's show page/dashboard
I see a notification that shows how many calories, fats, carbs and protein needed to reach the day's plan
This notification is updated when food is logged

Users can View Weight Over Time

As a User
When I visit the user's show page/dashboard
I see a link to view the user's weight over time
When I click on that link
I see a chart in terms of starting weight vs. target weight
Each point on the line chart is a logged weight over time
Each horizontal point is tagged with the date the data was logged

Client can log meals using the API

As a visitor
When I visit the meal logging page on "/meal/new"
I see a form to enter a meal name and portion size and time the meal was had
When I enter a recognized meal name and portion size and click "log meal"
I am redirected to "/dashboard"
And I see the newly logged meal on the page

Users can View Today's Chart

As a user
When I visit the client's show page/dashboard
I see a link to view today's current breakdown
When I click the link
I am taken to a page showing a graph with four bars labeled calories, fat, carbs, and protein
All four bars have flags with a time showing the increase for each logged meal

Client can see Meal Suggestions

As a client with a meal plan set by the trainer
when I visit "/dashboard"
And it is near a meal time (5am - 10am for breakfast, 11am-3pm for lunch, 4pm-9pm for dinner)
I see a suggested food that will help meet the calorie, fat, carbs and protein goals for the day

Trainer can invite Clients

As a Trainer
When I visit "/trainer/dashboard"
I see a link named "Invite a client"
When I click the "invite a client" button
I am taken to a form to enter a client e-mail address
When I click "Submit"
The client receives an E-mail inviting them to join the app

Welcome Page

As a Visitor
When I visit "/"
I see a splash page with a login link
I see a register link
I see an about page link

Registration Flow

  • Split register form into two pages, trainer and client
  • Clients should be able to register without clients

Visitor can login

As a visitor
When I visit "/login"
I see a link to login using Google Oauth
I see a form to enter a username and password
After filling in the form and clicking "Login"
I am redirected to the user dashboard

Client is Prompted to Weigh In

As a Client
If it has been a week since my last weight update
I see a message to update my current weight in the app
When I click the link labeled "Log weight"
I am taken to a form to enter my current weight
When I enter a valid response and click submit
I am redirected to "/dashboard"
And I no longer see the message

Trainers Edit Meal Plans

As a registered Trainer
On My Dashboard
When I click on a clients name
Then i'm on the clients show page
And I click the link to "Change Clients Meal Plan"
When I update and click "Update Client's Mealplan"
I'm now on the clients show page
And I see a message that I successfully edited this clients meal plan

Trainers should be able to create and update their clients meal plans.

Client Meal Log

When a client is entering a meal name - spaces throw an error.

Client can have Recipies E-mailed

As a Client
When I visit "/dashboard" at mealtime
I see a selection of meals to help me meet the intake goals
When I click on a meal
I receive an e-mail of the recipe

Users can View Long-Term Intakes

As a User
When I visit the user's show page/dashboard
I see a link to view a chart for long term meal logs
When I click that link
I see a chart showing my calorie intake vs my calorie intake goal
I see three links below the chart to change the data to fats, carbs and proteins

Trainer Dashboard Shows Clients

As a Trainer
When I visit "/trainer/dashboard"
I see a list of all client names
All clients have a percentage of days in the last week they met intake goals

Trainer can Communicate with Clients

As a Trainer
When I visit a client's show page "user/:id"
I see a link labeled "send a message to the client"
I am taken to "/message"
And I am able to fill out an e-mail or text to send the client

Trainer Dashboard has Color Coding

As a Trainer
When I visit "trainer/dashboard"
I see user cards that are color coded based on the target percentage over the last week
Users under 70% are displayed in red
Users between 70% and 85% are in yellow
Users over 85% are displayed in green

Client can enter height/weight for BMI chart

As a Client
When I visit "/dashboard" and have no statistic info
I see a message saying "Please enter starting information"
When I click the link labeled "Enter starting information"
I am taken to a form to enter my current weight, height, allergies and food preferences

Client can Access Meal Logging Form

As a Client
When I visit "/dashboard"
I see a link labeled "Log A Meal"
When I click that link I am taken to a form to enter a meal name and portion size

Visitor can login using OAuth

As a visitor
When I visit "/login"
And I click on "Login using Google"
I am redirected to complete the Oauth process
After doing so, I am taken to the user dashboard

Client Dashboard UI

To do

  • Create sections for functionalities
    • MealTracker
    • WeightTracker
    • Move messages to nav bar
  • Add description for each section

Flask Api

This api will have two endpoints.

  • Getting food data from inputted meal and portion size

  • Getting meal plan based on trainer and client input

  • - food info endpoint

  • - deploy

  • - meals enpiont

Client can Manually Add Meals

As a Client
When I visit the meal logging page on "/meals/new"
I see a link labelled "Manually Add Meal"
When I click that link
I am taken to a form to enter meal name, calories, fat, carbs, and protein and time meal was had
When I enter that information and click "Log Meal"
I am taken to "/dashboard"
And I see the newly added meal

Client Sees Meals based on mealplan

As a registered Client on my dashboard
I see a link to "See Trainer Meal Suggestions" (if i have a meal plan)
When I click the link "See Trainer Meal Suggestions"
I am taken to a page that shows recipes that match my meal plan
for each recipe i see name, calories, carbs, and protein per serving, as well as total serving amount
I also see a thumbnail picture and recipe link for each recipe

Visitor can Register

As a visitor
When I visit "/register"
I see a form to enter E-mail, Password and Name

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.