-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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: Tags ListView Page #24964
feat: Tags ListView Page #24964
Conversation
Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
@@ -100,7 +100,6 @@ const StyledItem = styled.div<{ | |||
} | |||
& .metadata-text { | |||
min-width: ${TEXT_MIN_WIDTH}px; | |||
overflow: hidden; |
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.
Are you sure that removing overflow is needed here? I wonder if it won't break anything
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.
looking at the metabar in the ui it didn't effect the styling from what i could see
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.
@@ -16,6 +16,7 @@ | |||
* specific language governing permissions and limitations | |||
* under the License. | |||
*/ | |||
// @ts-nocheck |
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.
ts-nocheck here too
@@ -0,0 +1,98 @@ | |||
// @ts-nocheck |
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.
ts-nocheck
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ |
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.
ts-nocheck
import React, { useMemo } from 'react'; | ||
import { ensureIsArray, styled, t } from '@superset-ui/core'; | ||
import { StringParam, useQueryParam } from 'use-query-params'; | ||
// @ts-nocheck |
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.
ts-nocheck
</AllEntitiesNav> | ||
<div className="select-control"> | ||
{/* <div className="select-control"> |
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.
Commented code
@@ -16,6 +16,7 @@ | |||
* specific language governing permissions and limitations | |||
* under the License. | |||
*/ |
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.
ts-nocheck
addSuccessToast(`Tagged ${selected.length} items`); | ||
}) | ||
.catch(err => { | ||
addDangerToast('Failed to tag items'); |
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.
translation
}, | ||
}) | ||
.then(({ json = {} }) => { | ||
addSuccessToast(`Tagged ${selected.length} items`); |
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.
translation
944f17c
to
50374d5
Compare
} | ||
> | ||
<> | ||
<>{`You are adding tags to the ${selected.length} entities`}</> |
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.
translation
onHide={onHide} | ||
// @ts-ignore | ||
onChange={tags => setTags(tags)} | ||
placeholder="Select 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.
translation
interface TaggableResourceOption { | ||
const StyledModalBody = styled.div` | ||
.ant-select-dropdown { | ||
max-height: 100px; |
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.
theme.gridUnits
value={description} | ||
/> | ||
<Divider /> | ||
<FormLabel>{t('Tag Name')}</FormLabel> |
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.
'Tag name' name lowercase?
margin: 30px 0px; | ||
} | ||
.metadata-text { | ||
height: 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.
line-height: 1.4 instead of height
}`} | ||
} | ||
.entities { | ||
margin: 30px 0px; |
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.
grid units
}`}; | ||
} | ||
.header { | ||
font-weight: 600; |
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.
font weight, font size and spacings from theme
setTag(tag); | ||
}, | ||
(error: Response) => { | ||
addDangerToast('Error Fetching Tagged Objects'); |
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.
translation
d00603a
to
fdc94d1
Compare
fdc94d1
to
43eb5dd
Compare
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.
LGTM
Ephemeral environment shutdown and build artifacts deleted. |
Nice! excited to see this merged! |
(cherry picked from commit 55ac01b)
SUMMARY
Update Tags All Entities with new designs and add Edit Modal functionality + tons of bug fixes from QA internally
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION