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

merge release 497 into develop #5362

Merged
merged 2 commits into from
Apr 19, 2024
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 @@ -59,7 +59,7 @@ public interface ProfileViewImplUiBinder

HTML noChallengesHtml = new HTML();
public static final String NO_CHALLENGES_HTML =
"<p><a href=\"http://sagebionetworks.org/challenges/\" target=\"_blank\">Challenges</a> are open science, collaborative competitions for evaluating and comparing computational algorithms or solutions to problems.</p>";
"<p><a href=\"https://help.synapse.org/docs/Challenges.1985184148.html\" target=\"_blank\">Challenges</a> are open science, collaborative competitions for evaluating and comparing computational algorithms or solutions to problems.</p>";

public static final String CHALLENGE_TAB_HELP_TEXT =
"&#10;Challenges are open science, collaborative competitions for evaluating and comparing computational algorithms or solutions to problems.";
Expand Down Expand Up @@ -253,38 +253,41 @@ public ProfileViewImpl(
}
});

teamSearchButton.addClickHandler(event ->
presenter.goTo(new TeamSearch(teamSearchTextBox.getValue()))
teamSearchButton.addClickHandler(
event -> presenter.goTo(new TeamSearch(teamSearchTextBox.getValue()))
);
projectSearchButton.addClickHandler(event ->
presenter.goTo(new Search(projectSearchTextBox.getValue()))
projectSearchButton.addClickHandler(
event -> presenter.goTo(new Search(projectSearchTextBox.getValue()))
);

moreChallengesButton.addClickHandler(event -> presenter.getMoreChallenges()
moreChallengesButton.addClickHandler(
event -> presenter.getMoreChallenges()
);
showChallengesLoading(false);

favoritesFilter.addClickHandler(event ->
presenter.applyFilterClicked(ProjectFilterEnum.FAVORITES, null)
favoritesFilter.addClickHandler(
event -> presenter.applyFilterClicked(ProjectFilterEnum.FAVORITES, null)
);
allProjectsFilter.addClickHandler(event ->
presenter.applyFilterClicked(ProjectFilterEnum.ALL, null)
allProjectsFilter.addClickHandler(
event -> presenter.applyFilterClicked(ProjectFilterEnum.ALL, null)
);
myProjectsFilter.addClickHandler(event ->
presenter.applyFilterClicked(ProjectFilterEnum.CREATED_BY_ME, null)
myProjectsFilter.addClickHandler(
event ->
presenter.applyFilterClicked(ProjectFilterEnum.CREATED_BY_ME, null)
);
sharedDirectlyWithMeFilter.addClickHandler(event ->
presenter.applyFilterClicked(
ProjectFilterEnum.SHARED_DIRECTLY_WITH_ME,
null
)
sharedDirectlyWithMeFilter.addClickHandler(
event ->
presenter.applyFilterClicked(
ProjectFilterEnum.SHARED_DIRECTLY_WITH_ME,
null
)
);

projectNameColumnHeader.setSortingListener(headerName ->
presenter.sort(ProjectListSortColumn.PROJECT_NAME)
projectNameColumnHeader.setSortingListener(
headerName -> presenter.sort(ProjectListSortColumn.PROJECT_NAME)
);
lastActivityOnColumnHeader.setSortingListener(headerName ->
presenter.sort(ProjectListSortColumn.LAST_ACTIVITY)
lastActivityOnColumnHeader.setSortingListener(
headerName -> presenter.sort(ProjectListSortColumn.LAST_ACTIVITY)
);
}

Expand All @@ -293,11 +296,10 @@ public void setSortDirection(
ProjectListSortColumn column,
SortDirection direction
) {
org.sagebionetworks.repo.model.table.SortDirection tableSortDirection = SortDirection.ASC.equals(
direction
)
? org.sagebionetworks.repo.model.table.SortDirection.ASC
: org.sagebionetworks.repo.model.table.SortDirection.DESC;
org.sagebionetworks.repo.model.table.SortDirection tableSortDirection =
SortDirection.ASC.equals(direction)
? org.sagebionetworks.repo.model.table.SortDirection.ASC
: org.sagebionetworks.repo.model.table.SortDirection.DESC;
if (ProjectListSortColumn.PROJECT_NAME.equals(column)) {
projectNameColumnHeader.setSortDirection(tableSortDirection);
lastActivityOnColumnHeader.setSortDirection(null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public ChallengeTab(
"Challenge",
"challenge",
"Challenges are open science, collaborative competitions for evaluating and comparing computational algorithms or solutions to problems.",
"http://sagebionetworks.org/platforms/",
"https://help.synapse.org/docs/Challenges.1985184148.html",
EntityArea.CHALLENGE
);
tab.configureOrientationBanner(
Expand Down
Loading