diff --git a/src/main/java/edu/group5/app/control/OrganizationController.java b/src/main/java/edu/group5/app/control/OrganizationController.java index 6ffe830..49201aa 100644 --- a/src/main/java/edu/group5/app/control/OrganizationController.java +++ b/src/main/java/edu/group5/app/control/OrganizationController.java @@ -33,7 +33,7 @@ public OrganizationController(AppState appState, OrganizationService service) { /** * Sets the current selected organization. - * @param organization the organization to set as current + * @param org the organization to set as current */ public void setCurrentOrganization(Organization org) { appState.setCurrentOrganization(org); diff --git a/src/main/java/edu/group5/app/model/user/UserRepository.java b/src/main/java/edu/group5/app/model/user/UserRepository.java index 07f9ca8..ea63bb8 100644 --- a/src/main/java/edu/group5/app/model/user/UserRepository.java +++ b/src/main/java/edu/group5/app/model/user/UserRepository.java @@ -14,7 +14,7 @@ public class UserRepository extends DBRepository { * Constructs UserRepository using Hashmap, * and extends the content from DBRepository. * - * @param content the underlying map used to store users, + * @param rows the underlying map used to store users, * where the key represents the user ID */ public UserRepository(List rows) { diff --git a/src/main/java/edu/group5/app/view/userpage/UserPageView.java b/src/main/java/edu/group5/app/view/userpage/UserPageView.java index cf6f801..aff5b32 100644 --- a/src/main/java/edu/group5/app/view/userpage/UserPageView.java +++ b/src/main/java/edu/group5/app/view/userpage/UserPageView.java @@ -23,7 +23,18 @@ import java.text.SimpleDateFormat; import java.util.*; - +/** + * A view for the user profile page. + * + *

Displays the current user's profile information, + * including avatar, full name, email and location, along with a logout button. + * The page is divided into three sections: + * Profile information, Supported causes, and previous donations.

+ * + *

Supported causes shows all the organizations that the user has donated to. + * Previous donations shows a list of all the user's donations, + * and includes a search bar to filter through them.

+ */ public class UserPageView extends BorderPane { private final NavigationController nav; private final AuthController authController;