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

[CS2113-W15-1] LifeTracker #94

Open
wants to merge 548 commits into
base: master
Choose a base branch
from

Conversation

MingEn82
Copy link

No description provided.

Copy link

@Geeeetyx Geeeetyx left a comment

Choose a reason for hiding this comment

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

Overall, the DG is easy to understand


### Storage Component

![storage-class-diagram](./uml/storage-class-diagram.png)

Choose a reason for hiding this comment

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

Storage Class diagram is not working


## Glossary

* *glossary item* - Definition
___
##Instructions for manual testing

Choose a reason for hiding this comment

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

Maybe could give more detailed instructions for manual testing

The user chooses to update his weight by inputting the number `2`. This causes the state of the user's details to be
modified and the user's weight as well as his caloric limit will be updated in accordance to the new weight entered.

> Insert UML diagram showing the update process

Choose a reason for hiding this comment

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

just note that perhaps y'all have yet to add this diagram in

_LifeTracker_ can also keep track of the exercises that users have done and factor it in to their daily calories lost. This allows
the user to keep track of their net calorie gain on a daily basis.

### User Stories

Choose a reason for hiding this comment

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

a bug with your user stories table, it does not show up as intended on the DG website

image

Copy link

@Khulon Khulon left a comment

Choose a reason for hiding this comment

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

DGs look well thought of and designed! Good job!

Copy link

Choose a reason for hiding this comment

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

Very simple, concise and neat. It is easy to understand as it covers the essential commands and classes required.

Copy link

Choose a reason for hiding this comment

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

Is the line leading to the interface supposed to turn into a solid line?

Copy link

Choose a reason for hiding this comment

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

Is this PowerPoint? I think prof might want us to use plantUML.

Copy link

Choose a reason for hiding this comment

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

Would the use of different commands to get to different functions mean parallel paths?

Copy link

@waiter-palypoo waiter-palypoo left a comment

Choose a reason for hiding this comment

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

Some bugged images and UML notation errors


![](../out/docs/uml/Architecture/architecture.svg)

Choose a reason for hiding this comment

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

Architecture diagram does not show on the DG


### Storage Component

![storage-class-diagram](./uml/storage-class-diagram.png)

Choose a reason for hiding this comment

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

Class diagram image is broken on the DG

with the current user and meal storage state. `user` and `meals` will point to the user storage and meal state
respectively.

<img src="uml/ViewUserCommandSD1.png" alt="Sequence Diagram 1" width="500">

Choose a reason for hiding this comment

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

Incorrect use of the par frame, the program does not seem to implement multi-threading through the Thread class or Runnable interface.

This calls the getter method `getWeight()` in the entity `User` to return the current weight of the user
and initializes the variable `weight` with that value.

<img src="uml/ViewUserCommandSD2.png" alt="Sequence Diagram 2" width="500">

Choose a reason for hiding this comment

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

The label for the "alt" frame should have the diagonal "folded in" bottom right corner (same for opt and par frames)

by inputting the number `6`. This calls the getter method `getCaloricLimit()` in the entity `User` to return the
current daily caloric limit of the user and initializes the variable `caloricLimit` with that value.

<img src="uml/ViewUserCommandSD3.png" alt="Sequence Diagram 2" width="500">

Choose a reason for hiding this comment

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

If you want to split the alt frame into multiple diagrams, use reference frames to indicate on the higher level sequence diagram where the new diagram is in the sequence.


### Storage Component

![storage-class-diagram](./uml/storage-class-diagram.png)

Choose a reason for hiding this comment

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

Storage class is not showing up


{Describe the target user profile}
<img src="uml/DeleteMealCommand1.png" alt="Sequence Diagram" width="500">

Choose a reason for hiding this comment

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

Is it possible to add the deletion of a Meal Object?
image

Comment on lines 225 to 226
___
##Instructions for manual testing
Copy link

Choose a reason for hiding this comment

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

image
Heading formatting is broken due to missing newline between your glossary list and next heading

by inputting the number `6`. This calls the getter method `getCaloricLimit()` in the entity `User` to return the
current daily caloric limit of the user and initializes the variable `caloricLimit` with that value.

<img src="uml/ViewUserCommandSD3.png" alt="Sequence Diagram 2" width="500">
Copy link

Choose a reason for hiding this comment

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

  • The alt label should have the bottom right corner folded in
  • It is unclear what the ["6"] refer to (there is also no step 6 listed)
  • It seems that getCaloricLimit() needs to be run before showDailyCalorieLimit, then they should not be run in parallel
  • The arrow of the self invocation for print out daily calorie limit should point to the start of its activation bar
  • In the image, your textbox for showDailyCalorieLimit is selected

1. Using a one-line command in their CLI in the format `add [DATE] /on [MEAL_TYPE] /type [FOOD_INDEX] /foods`
2. Typing `add` into the CLI and following the printed prompts to enter the date in the specified format, type of meal and specific food.

<img src="uml/AddMealCommand1.png" alt="Sequence Diagram" width="500">
Copy link

Choose a reason for hiding this comment

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

  • It is unclear what your alt conditions are referring to (your explanations do not mention what is full command)
  • Alt label bottom right corner not folded in
  • Self invocation arrow not pointing at start of activation bar
  • Does your AddMealCommand go ahead with creating a new Meal even when userInput is neither full command nor add?

with the current user and meal storage state. `user` and `meals` will point to the user storage and meal state
respectively.

<img src="uml/ViewUserCommandSD1.png" alt="Sequence Diagram 1" width="500">
Copy link

Choose a reason for hiding this comment

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

  • Are you sure the User and CalorieUi classes are only created when this command is run?

kyrixn pushed a commit to kyrixn/tp that referenced this pull request Mar 30, 2023
Copy link

@YC-Michael YC-Michael left a comment

Choose a reason for hiding this comment

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

Generally, good job! Can consider using plantUML for sequence diagrams and give example inputs and explain the steps using those examples.


### Storage Component

![storage-class-diagram](./uml/storage-class-diagram.png)

Choose a reason for hiding this comment

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

image

Storage-class-diagram is not showing up. If you are using plantUML, simply copy paste the image over to your DG from the UML file.

1. Using a one-line command in their CLI in the format `add [DATE] /on [MEAL_TYPE] /type [FOOD_INDEX] /foods`
2. Typing `add` into the CLI and following the printed prompts to enter the date in the specified format, type of meal and specific food.

<img src="uml/AddMealCommand1.png" alt="Sequence Diagram" width="500">

Choose a reason for hiding this comment

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

The box label for alt should consist of three lines.
image


<img src="uml/AddMealCommand1.png" alt="Sequence Diagram" width="500">

Step 1. As seen from the sequence diagram above, when the AddMealCommand is executed via the `execute` method in

Choose a reason for hiding this comment

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

Perhaps giving an example input and showing it in the steps might help readers understand it better.

1. Using a one-line command in their CLI in the format `add [DATE] /on [MEAL_TYPE] /type [FOOD_INDEX] /foods`
2. Typing `add` into the CLI and following the printed prompts to enter the date in the specified format, type of meal and specific food.

<img src="uml/AddMealCommand1.png" alt="Sequence Diagram" width="500">

Choose a reason for hiding this comment

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

Arrow from User to :AddMealCommand is missing a name for method call which is execute().

1. Using a one-line command in their CLI in the format `add [DATE] /on [MEAL_TYPE] /type [FOOD_INDEX] /foods`
2. Typing `add` into the CLI and following the printed prompts to enter the date in the specified format, type of meal and specific food.

<img src="uml/AddMealCommand1.png" alt="Sequence Diagram" width="500">

Choose a reason for hiding this comment

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

It might be helpful to explain the functions in the alt portion.


{Describe the target user profile}
<img src="uml/DeleteMealCommand1.png" alt="Sequence Diagram" width="500">

Choose a reason for hiding this comment

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

The arrow head for the return dotted line is not visible.

with the current user and meal storage state. `user` and `meals` will point to the user storage and meal state
respectively.

<img src="uml/ViewUserCommandSD1.png" alt="Sequence Diagram 1" width="500">

Choose a reason for hiding this comment

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

Par frame should not be used as program is not multi-threaded.

by inputting the number `6`. This calls the getter method `getCaloricLimit()` in the entity `User` to return the
current daily caloric limit of the user and initializes the variable `caloricLimit` with that value.

<img src="uml/ViewUserCommandSD3.png" alt="Sequence Diagram 2" width="500">

Choose a reason for hiding this comment

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

image

When taking a screenshot, do take note of the highlights.

- Prefers typing to mouse interactions
- Is reasonably comfortable using CLI apps

### Value proposition:

Choose a reason for hiding this comment

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

Value proposition sounds interesting!

_LifeTracker_ can also keep track of the exercises that users have done and factor it in to their daily calories lost. This allows
the user to keep track of their net calorie gain on a daily basis.

### User Stories

Choose a reason for hiding this comment

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

Please check the formats in intelliJ before merging it.

vishnuvk47 pushed a commit to vishnuvk47/tp that referenced this pull request Mar 31, 2023
MustafaAH10 and others added 30 commits April 10, 2023 14:15
update DG manual testing section and PPP
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.