-
Notifications
You must be signed in to change notification settings - Fork 0
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 features quantity in workspace list page #309
Conversation
Signed-off-by: tygao <[email protected]>
Signed-off-by: tygao <[email protected]>
Signed-off-by: tygao <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## workspace-pr-integr #309 +/- ##
=======================================================
- Coverage 67.04% 66.94% -0.10%
=======================================================
Files 3344 2603 -741
Lines 65011 49237 -15774
Branches 10496 8895 -1601
=======================================================
- Hits 43588 32964 -10624
+ Misses 18845 14105 -4740
+ Partials 2578 2168 -410
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: tygao <[email protected]>
Signed-off-by: tygao <[email protected]>
featuresConfig: string[], | ||
applications: PublicAppInfo[] | ||
) => { | ||
const visibleApplications = applications.filter( |
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 61 in 3a5648d
const features = apps |
Do we need to keep the filter logic consistent above these two cases?
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.
I refer to this logic, but i thought we may not need to filter management here because feature config returned contain management category
export function useApplications(application: ApplicationStart) { | ||
const applications = useObservable(application.applications$); | ||
export function useApplications(application?: ApplicationStart) { | ||
const applications = useObservable(application?.applications$ ?? of(new Map()), new Map()); | ||
return useMemo(() => { | ||
const apps: PublicAppInfo[] = []; | ||
applications?.forEach((app) => { |
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.
applications?.forEach((app) => { | |
applications.forEach((app) => { |
Signed-off-by: tygao <[email protected]>
Signed-off-by: tygao <[email protected]>
Description
Add features quantity in workspace list page
Issues Resolved
Screenshot
Testing the changes
Check List
yarn test:jest
yarn test:jest_integration