Skip to content

Commit

Permalink
Merge pull request #80 from Group-5/docs/userpage
Browse files Browse the repository at this point in the history
Docs/userpage
  • Loading branch information
fredrjm authored Apr 23, 2026
2 parents 0b3bd8e + d809888 commit 6547b5b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
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

0 comments on commit 6547b5b

Please sign in to comment.