-
Notifications
You must be signed in to change notification settings - Fork 43
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
🐛 Add lists of associated apps & archetypes #1470
Conversation
Signed-off-by: ibolton336 <ibolton@redhat.com>
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1470 +/- ##
=======================================
Coverage 40.84% 40.84%
=======================================
Files 139 139
Lines 4456 4456
Branches 1018 1018
=======================================
Hits 1820 1820
Misses 2624 2624
Partials 12 12
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
post-merge comments
@@ -52,7 +45,7 @@ const ArchetypeDetailDrawer: React.FC<IArchetypeDetailDrawerProps> = ({ | |||
archetype?.tags?.filter((t) => t?.source === "assessment") ?? []; | |||
return dedupeArrayOfObjects<TagRef>(rawAssessmentTags, "name"); | |||
}, [archetype?.tags]); | |||
|
|||
console.log("archetype", archetype); |
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.
extra console.log
const ApplicationLabels: React.FC<{ applicationRefs?: Ref[] }> = ({ | ||
applicationRefs, | ||
}) => | ||
(applicationRefs?.length ?? 0) === 0 ? null : ( |
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.
With the length wrapper already in the description list, applicationRefs
should be required and this step can be skipped.
const ArchetypeLabels: React.FC<{ archetypeRefs?: Ref[] }> = ({ | ||
archetypeRefs, | ||
}) => | ||
(archetypeRefs?.length ?? 0) === 0 ? null : ( |
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.
With the length wrapper already in the description list, archetypeRefs
should be required and this step can be skipped.
...or push the "None" text into this component
Looks like this PR also covers: #1464 |
Follow up to: #1470 - Added a reusable component for drawer labels. - Adds random colors to the tags just for differentiation between the tags when viewing in the drawer. --------- Signed-off-by: Ian Bolton <ibolton@redhat.com>
https://issues.redhat.com/browse/MTA-1384?filter=12422675