-
Notifications
You must be signed in to change notification settings - Fork 429
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 metadata fields to core entities #2861
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
I made some changes.
I put a metadata subtitle, in the sections "managing features", "managing segments" and "environment settings" inside the docs. |
title='Metadata' | ||
isOpen={isOpen} | ||
onClose={onToggle} | ||
className='inline-modal--tags' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be replaced with inline-modal--sm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
className='full-width mb-2' | ||
placeholder='Type or choose a Metadata' | ||
/> | ||
<div style={{ maxHeight: 200, overflowY: 'auto' }}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can the inline style be replaced with className="inline-modal__list"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
placeholder='Type or choose a Metadata' | ||
/> | ||
<div style={{ maxHeight: 200, overflowY: 'auto' }}> | ||
{metadataList && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if there are none? Should display a default message
metadataList?.length? () : (<div className="text-center">No items</div>)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
space | ||
> | ||
<Flex | ||
className={value?.includes(v.id) ? 'font-weight-bold' : ''} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If possible can we rename and reuse TableFilterItem.tsx? It does the exact same as this.
@@ -0,0 +1,37 @@ | |||
import { FC, useEffect, useState } from 'react' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason why it's called MyMetadata, that would indicate to me it's specific to the user but I think this is for the org?
<span className='chip-icon ion'> | ||
<IonIcon | ||
icon={closeIcon} | ||
style={{ fontSize: '13px' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
className="fs-caption"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
width: '185px', | ||
}} | ||
> | ||
<div className='table-column'> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Markup here doesn't lookl correct, we are nesting table-column elements. Please lets use classnames where possible too.
<div className='table-column d-flex text-center'>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
}} | ||
> | ||
<div className='table-column'> | ||
{metadata.content_type_fields.find( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hard to read what the following functions are doing, perhaps separate these into variables above the markup ?
className='table-column' | ||
style={{ width: '150px' }} | ||
> | ||
{metadata.content_type_fields.find( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
}} | ||
> | ||
{metadata.content_type_fields.find( | ||
(m) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here
Thanks for submitting a PR! Please check the boxes below:
pre-commit
to check lintingChanges
FE changes:
BE changes:
How did you test this code?