Skip to content

155 quick gui updates for meal plan generator user story#162

Merged
matthew-SG merged 10 commits intomainfrom
155-quick-gui-updates-for-meal-plan-generator-user-story
Dec 2, 2025
Merged

155 quick gui updates for meal plan generator user story#162
matthew-SG merged 10 commits intomainfrom
155-quick-gui-updates-for-meal-plan-generator-user-story

Conversation

@matthew-SG
Copy link
Copy Markdown
Owner

GUI changes (mainly font or capitalization) in the meal plan generator user story, as well as the navbar and loggedin and login views. Resolved (most) checkstyle issues in modified files, and also removed the app's hard dependency on the file DAO (we should realistically be able to use any DAO now).

@matthew-SG matthew-SG linked an issue Dec 2, 2025 that may be closed by this pull request
@@ -0,0 +1,23 @@
package use_case.meal_plan;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚫 [checkstyle] <com.puppycrawl.tools.checkstyle.checks.naming.PackageNameCheck> reported by reviewdog 🐶
Name 'use_case.meal_plan' must match pattern '^[a-z]+(.[a-zA-Z_]\w*)*$'.

@@ -0,0 +1,54 @@
package use_case.meal_plan;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚫 [checkstyle] <com.puppycrawl.tools.checkstyle.checks.naming.PackageNameCheck> reported by reviewdog 🐶
Name 'use_case.meal_plan' must match pattern '^[a-z]+(.[a-zA-Z_]\w*)*$'.

* DAO for all data, mainly user data, using a File to persist the data.
*/
public class FileDataAccessObject implements UserDataAccess, ApproveRecipeDataAccessInterface, CommunityUserRecipeDataAccessInterface, LikedRecipeDataAccessInterface {
public class FileDataAccessObject implements UserDataAccess {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚫 [checkstyle] <com.puppycrawl.tools.checkstyle.checks.metrics.ClassDataAbstractionCouplingCheck> reported by reviewdog 🐶
Class Data Abstraction Coupling is 14 (max allowed is 7) classes [BufferedReader, BufferedWriter, File, FileReader, FileWriter, FindInstructionsSpoonacular, GroceryList, Ingredient, JSONArray, JSONObject, LinkedHashMap, MealPlan, Recipe, User].

* DAO for all data, mainly user data, using a File to persist the data.
*/
public class FileDataAccessObject implements UserDataAccess, ApproveRecipeDataAccessInterface, CommunityUserRecipeDataAccessInterface, LikedRecipeDataAccessInterface {
public class FileDataAccessObject implements UserDataAccess {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚫 [checkstyle] <com.puppycrawl.tools.checkstyle.checks.sizes.MethodCountCheck> reported by reviewdog 🐶
Total number of methods is 35 (max allowed is 34).

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.*;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚫 [checkstyle] <com.puppycrawl.tools.checkstyle.checks.imports.AvoidStarImportCheck> reported by reviewdog 🐶
Using the '.' form of import should be avoided - java.util..

final LoadMealPlanController loadMealPlanController = new LoadMealPlanController(loadMealPlanInteractor);
viewMealPlansView.setLoadMealPlanController(loadMealPlanController);
DeleteMealPlanController deleteMealPlanController = new DeleteMealPlanController(deleteMealPlanInteractor);
final DeleteMealPlanController deleteMealPlanController = new DeleteMealPlanController(deleteMealPlanInteractor);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚫 [checkstyle] <com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck> reported by reviewdog 🐶
Line is longer than 120 characters (found 121).

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.*;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚫 [checkstyle] <com.puppycrawl.tools.checkstyle.checks.imports.AvoidStarImportCheck> reported by reviewdog 🐶
Using the '.' form of import should be avoided - javax.swing..

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.*;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚫 [checkstyle] <com.puppycrawl.tools.checkstyle.checks.imports.AvoidStarImportCheck> reported by reviewdog 🐶
Using the '.' form of import should be avoided - javax.swing..

import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;

import javax.swing.*;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚫 [checkstyle] <com.puppycrawl.tools.checkstyle.checks.imports.AvoidStarImportCheck> reported by reviewdog 🐶
Using the '.' form of import should be avoided - javax.swing..

import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;

import javax.swing.*;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚫 [checkstyle] <com.puppycrawl.tools.checkstyle.checks.imports.AvoidStarImportCheck> reported by reviewdog 🐶
Using the '.' form of import should be avoided - javax.swing..

@matthew-SG matthew-SG merged commit 26c41ae into main Dec 2, 2025
1 check passed
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.

Quick GUI updates for meal plan generator user story

2 participants