Skip to content

Commit

Permalink
Merge pull request #5361 from jay-hodgson/SYNSD-982
Browse files Browse the repository at this point in the history
SYNSD-982: Update links
  • Loading branch information
jay-hodgson authored Apr 19, 2024
2 parents 94de82c + caa1750 commit 36b4d43
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 27 deletions.
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

0 comments on commit 36b4d43

Please sign in to comment.