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

feat: Add feature description like the old UI #2733

Merged
merged 1 commit into from
Sep 5, 2023
Merged
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
22 changes: 15 additions & 7 deletions frontend/web/components/FeatureRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import UsersIcon from './svg/UsersIcon' // we need this to make JSX compile
import Icon from './Icon'
import FeatureValue from './FeatureValue'

export const width = [200, 65, 48, 75]
export const width = [200, 65, 48, 75, 450]
class TheComponent extends Component {
static contextTypes = {
router: propTypes.object.isRequired,
Expand Down Expand Up @@ -192,7 +192,7 @@ class TheComponent extends Component {
<Row>
<Flex>
<Row
className='font-weight-medium mb-1'
className='font-weight-medium'
style={{
alignItems: 'start',
lineHeight: 1,
Expand All @@ -201,8 +201,9 @@ class TheComponent extends Component {
}}
>
<span className='me-2'>
{description ? (
{created_date ? (
<Tooltip
place='right'
title={
<span>
{name}
Expand All @@ -211,7 +212,9 @@ class TheComponent extends Component {
</span>
}
>
{description}
{`Created ${moment(created_date).format(
'Do MMM YYYY HH:mma',
)}`}
</Tooltip>
) : (
name
Expand Down Expand Up @@ -260,9 +263,14 @@ class TheComponent extends Component {
value={projectFlag.tags}
/>
</Row>
<div className='list-item-subtitle'>
Created {moment(created_date).format('Do MMM YYYY HH:mma')}
</div>
{description && (
<div
className='list-item-subtitle mt-1'
style={{ lineHeight: '20px', width: width[4] }}
>
{description}
</div>
)}
</Flex>
</Row>
</Flex>
Expand Down