Skip to content

Docs/userpage #80

Merged
merged 3 commits into from
Apr 23, 2026
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class UserRepository extends DBRepository<Integer, User> {
* 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<Object[]> rows) {
Expand Down
13 changes: 12 additions & 1 deletion src/main/java/edu/group5/app/view/userpage/UserPageView.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,18 @@
import java.text.SimpleDateFormat;
import java.util.*;


/**
* A view for the user profile page.
*
* <p>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.</p>
*
* <p>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.</p>
*/
public class UserPageView extends BorderPane {
private final NavigationController nav;
private final AuthController authController;
Expand Down