-
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
✨ Identified risks enhancements #1573
✨ Identified risks enhancements #1573
Conversation
1ff3205
to
7a6667b
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1573 +/- ##
==========================================
- Coverage 39.55% 39.39% -0.16%
==========================================
Files 146 146
Lines 4786 4810 +24
Branches 1143 1152 +9
==========================================
+ Hits 1893 1895 +2
- Misses 2879 2901 +22
Partials 14 14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
4f44b49
to
561117e
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.
Looks ok, just a few questions/suggestions
The "fancy" query hook is really the core of this improvement. And as structured, it could be refactored to the backend doing that work at some point in future as well.
client/src/app/hooks/table-controls/filtering/useFilterState.ts
Outdated
Show resolved
Hide resolved
client/src/app/pages/reports/components/identified-risks-table/identified-risks-table.tsx
Outdated
Show resolved
Hide resolved
client/src/app/pages/reports/components/identified-risks-table/identified-risks-table.tsx
Outdated
Show resolved
Hide resolved
c01bf98
to
554ce14
Compare
@@ -138,8 +138,6 @@ export const MultiselectFilterControl = <TItem,>({ | |||
const input = textInput?.toLowerCase(); | |||
|
|||
return renderSelectOptions((optionProps, groupName) => { | |||
if (!input) return false; |
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.
Needed to remove this to fix the select options not rendering on first render after converting the app name filter to multiselect for the app inventory table.
7d4d9d8
to
e3ce6bc
Compare
…tions Signed-off-by: ibolton336 <[email protected]>
Port over initial filter values change Properly serialize & deserialize filters to match server side implementation Signed-off-by: ibolton336 <[email protected]>
Signed-off-by: ibolton336 <[email protected]>
Signed-off-by: ibolton336 <[email protected]>
Signed-off-by: ibolton336 <[email protected]>
Signed-off-by: ibolton336 <[email protected]>
Signed-off-by: ibolton336 <[email protected]>
Signed-off-by: ibolton336 <[email protected]>
… same question Signed-off-by: ibolton336 <[email protected]>
Signed-off-by: ibolton336 <[email protected]>
Signed-off-by: ibolton336 <[email protected]>
Signed-off-by: ibolton336 <[email protected]>
Signed-off-by: ibolton336 <[email protected]>
9712c12
to
8a2c498
Compare
Signed-off-by: ibolton336 <[email protected]>
8a2c498
to
dd86b64
Compare
Signed-off-by: ibolton336 <[email protected]>
Signed-off-by: ibolton336 <[email protected]>
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.
Handful of minor non-blocking comments, but looks really good. Everything works in a dev env.
I can see a followup request for filtering on the identified risks table. Trying to look at a single assessment if multiple exist, especially if the assessment you want to look at is not alphabetically first, will be annoying. (Well that is assuming that mere users get annoyed at the same things I do...). To be enhanced in a future PR.
queryFn: () => | ||
archetypeId ? getArchetypeById(archetypeId) : undefined, | ||
enabled: !!archetypeId, |
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 filtering in place, archetypeId
will always be a real number, so this can be simplified:
queryFn: () => | |
archetypeId ? getArchetypeById(archetypeId) : undefined, | |
enabled: !!archetypeId, | |
queryFn: () => getArchetypeById(archetypeId), |
(not blocking)
<TextContent> | ||
<Text component="h3">{t("terms.currentLandscape")}</Text> | ||
<Flex> |
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.
<Card isExpanded={isRiskCardOpen}> | ||
<CardHeader | ||
onExpand={() => setIsRiskCardOpen((current) => !current)} | ||
> | ||
<CardTitle> |
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.
Since the expandy card is simply just always opened now, the extra layout around the header text doesn't make sense.
(not blocking)
<AssessmentLandscape | ||
questionnaire={null} | ||
assessmentRefs={ | ||
application?.assessments || archetype?.assessments | ||
} | ||
/> | ||
<IdentifiedRisksTable | ||
assessmentRefs={ | ||
application?.assessments || archetype?.assessments | ||
} |
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.
Followup changes to konveyor#1573: - Simplify the assessment risk query - Simplify the header for reports / identified risk card header - Fixup layout of the review page assessment summary card Signed-off-by: Scott J Dickerson <[email protected]>
Followup changes to #1573: - Simplify the assessment risk query - Simplify the header for reports / identified risk card header - Fixup layout of the review page assessment summary card Signed-off-by: Scott J Dickerson <[email protected]>
Resolves:
https://issues.redhat.com/browse/MTA-1723
https://issues.redhat.com/browse/MTA-1749
https://issues.redhat.com/browse/MTA-1754
https://issues.redhat.com/browse/MTA-1762
Resolves: #1568
Resolves: #1570
Resolves: #1569
Update-reports.mov