Skip to content

Commit

Permalink
Add OSM profile link to mapper column in task tables (#2487)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjayschwarz4 authored Nov 13, 2024
1 parent 561bf01 commit 3807890
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions src/components/TaskAnalysisTable/TaskAnalysisTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import AsManager from '../../interactions/User/AsManager'
import AsColoredHashable from '../../interactions/Hashable/AsColoredHashable'
import WithLoadedTask from '../HOCs/WithLoadedTask/WithLoadedTask'
import WithConfigurableColumns from '../HOCs/WithConfigurableColumns/WithConfigurableColumns'
import WithTargetUser from '../../components/HOCs/WithTargetUser/WithTargetUser'
import { intlTableProps } from '../../components/IntlTable/IntlTable'
import ViewTask from '../ViewTask/ViewTask'
import SvgSymbol from '../SvgSymbol/SvgSymbol'
Expand Down Expand Up @@ -515,7 +516,14 @@ const setupColumnTypes = (props, taskBaseRoute, manager, data, openComments) =>
className="row-user-column"
style={{color: AsColoredHashable(_get(row._original.completedBy, 'username') || row._original.completedBy).hashColor}}
>
{_get(row._original.completedBy, 'username') || row._original.completedBy}
<a
className="mr-mx-4"
href={props.targetUserOSMProfileUrl()}
target='_blank'
rel="noopener"
>
{_get(row._original.completedBy, 'username') || row._original.completedBy}
</a>
</div>
),
}
Expand Down Expand Up @@ -792,10 +800,12 @@ TaskAnalysisTableInternal.propTypes = {
}

export default injectIntl(
WithConfigurableColumns(
TaskAnalysisTableInternal,
ALL_COLUMNS,
DEFAULT_COLUMNS,
messages
WithTargetUser(
WithConfigurableColumns(
TaskAnalysisTableInternal,
ALL_COLUMNS,
DEFAULT_COLUMNS,
messages
)
)
)

0 comments on commit 3807890

Please sign in to comment.