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

🐛 Add lists of associated apps & archetypes #1470

Merged
merged 2 commits into from
Oct 12, 2023

Conversation

ibolton336
Copy link
Member

@codecov
Copy link

codecov bot commented Oct 12, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (53ecc75) 40.84% compared to head (e91a42f) 40.84%.

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           
Flag Coverage Δ
client 40.84% <ø> (ø)
server ∅ <ø> (∅)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ibolton336 ibolton336 merged commit 02a81ce into konveyor:main Oct 12, 2023
6 checks passed
Copy link
Member

@sjd78 sjd78 left a 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);
Copy link
Member

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 : (
Copy link
Member

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 : (
Copy link
Member

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

@sjd78
Copy link
Member

sjd78 commented Oct 12, 2023

Looks like this PR also covers: #1464

sjd78 pushed a commit that referenced this pull request Oct 31, 2023
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants