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

Hide dashboard overview and make dashboards management available #329

Conversation

yubonluo
Copy link

Description

When users create a new workspace, they can not choose dashboard overview and can choose dashboards management.

Issues Resolved

Screenshot

image

Testing the changes

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Signed-off-by: yubonluo <yubonluo@amazon.com>
Signed-off-by: yubonluo <yubonluo@amazon.com>
…shboards into workspace-hide-dashboard-overview

Signed-off-by: yubonluo <yubonluo@amazon.com>

# Conflicts:
#	src/core/public/application/types.ts
Signed-off-by: yubonluo <yubonluo@amazon.com>
Signed-off-by: yubonluo <yubonluo@amazon.com>
return {
status: AppStatus.inaccessible,
navLinkStatus: AppNavLinkStatus.hidden,
workspaceAccessibility: WorkspaceAccessibility.NO,
Copy link
Collaborator

@SuZhou-Joe SuZhou-Joe Apr 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have deleted the useless code.

!chromeless &&
workspaceAccessibility !== WorkspaceAccessibility.NO;
if (category?.id === DEFAULT_APP_CATEGORIES.management.id) {
return filterCondition && id === 'management';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add some comment here to elaborate?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment has been added

Comment on lines 84 to 86
} else {
return filterCondition;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
} else {
return filterCondition;
}
return filterCondition;

Nit: better to remove useless else.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have deleted else

Signed-off-by: yubonluo <yubonluo@amazon.com>
Signed-off-by: yubonluo <yubonluo@amazon.com>
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 35.39%. Comparing base (0f34d69) to head (7dfaca8).
Report is 19 commits behind head on workspace-pr-integr.

❗ Current head 7dfaca8 differs from pull request most recent head 74ca667. Consider uploading reports for the commit 74ca667 to get more accurate results

Additional details and impacted files
@@                   Coverage Diff                   @@
##           workspace-pr-integr     #329      +/-   ##
=======================================================
+ Coverage                35.17%   35.39%   +0.22%     
=======================================================
  Files                     1885     1890       +5     
  Lines                    36421    36573     +152     
  Branches                  6672     6708      +36     
=======================================================
+ Hits                     12810    12946     +136     
- Misses                   22761    22777      +16     
  Partials                   850      850              
Flag Coverage Δ
_4 35.39% <ø> (+0.22%) ⬆️

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.

Signed-off-by: yubonluo <yubonluo@amazon.com>
Signed-off-by: yubonluo <yubonluo@amazon.com>
@ruanyl
Copy link
Owner

ruanyl commented Apr 19, 2024

@yubonluo do we still need to get this PR merged? There are some conflicts

@yubonluo
Copy link
Author

@yubonluo do we still need to get this PR merged? There are some conflicts

I will close this PR and submit the PR directly to OSD main.

@yubonluo yubonluo closed this Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants