Skip to content

Commit

Permalink
Merge pull request Sage-Bionetworks#1194 from jay-hodgson/PORTALS-3208b
Browse files Browse the repository at this point in the history
PORTALS-3208: In ELITE portal, use table to drive partner cards on the home page
  • Loading branch information
jay-hodgson authored Sep 12, 2024
2 parents 2846d4f + 8b04aaa commit b90c11f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 30 deletions.
1 change: 1 addition & 0 deletions apps/portals/elportal/src/config/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const computationalSql = 'SELECT * FROM syn51469335'
export const upsetPlotSql = 'SELECT files, assay FROM syn51581771'
export const cohortBuilderSql = 'SELECT * FROM syn52234652'
export const cohortBuilderFilesSql = 'SELECT * FROM syn52234677'
export const partnersSql = 'SELECT * FROM syn62661043'

export const defaultSearchConfiguration = {
fullTextSearchHelpURL: 'https://help.eliteportal.org/help/search-tips',
Expand Down
52 changes: 22 additions & 30 deletions apps/portals/elportal/src/config/routesConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
projectCardConfiguration,
projectsDetailsPageConfiguration,
} from './synapseConfigs/projects'
import { peopleSql, projectsSql, upsetPlotSql } from './resources'
import { partnersSql, peopleSql, projectsSql, upsetPlotSql } from './resources'
import { handleUpsetPlotClick } from './synapseConfigs/handleUpsetPlotClick'

const routes: GenericRoute[] = [
Expand Down Expand Up @@ -136,39 +136,31 @@ const routes: GenericRoute[] = [
// },
// },

// TODO: PORTALS-3208: Surface Our Partners (similar to NF)
// {
// name: 'CardContainerLogic',
// title: 'Our Partners',
// outsideContainerClassName: 'home-spacer',
// centerTitle: true,
// props: {
// sql: fundersSql,
// type: SynapseConstants.GENERIC_CARD,
// titleLinkConfig: organizationDetailsPageLinkConfig,
// genericCardSchema: {
// ...organizationCardSchema,
// imageFileHandleColumnName: 'cardLogo',
// },
// descriptionConfig: {
// showFullDescriptionByDefault: true,
// },
// ctaLinkConfig: {
// text: 'Visit Website',
// link: 'website',
// },
// },
// },
// PORTALS-3208: for now, include a wiki
//PORTALS-3208: Surface Our Partners (similar to NF)
{
name: 'CardContainerLogic',
title: 'Our Partners',
centerTitle: true,
outsideContainerClassName: 'home-spacer',
name: 'Markdown',
centerTitle: true,
props: {
ownerId: 'syn27229419',
wikiId: '629422',
loadingSkeletonRowCount: 10,
sql: partnersSql,
type: SynapseConstants.GENERIC_CARD,
genericCardSchema: {
title: 'organizationName',
type: SynapseConstants.ORGANIZATION,
description: 'summary',
icon: 'abbreviation',
link: 'website',
thumbnailRequiresPadding: true,
imageFileHandleColumnName: 'cardLogo',
},
descriptionConfig: {
showFullDescriptionByDefault: true,
},
ctaLinkConfig: {
text: 'Visit Website',
link: 'website',
},
},
},
{
Expand Down

0 comments on commit b90c11f

Please sign in to comment.