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

Put deprecated notes on the Environment tab #3022

Merged
merged 2 commits into from
Jan 12, 2022
Merged

Put deprecated notes on the Environment tab #3022

merged 2 commits into from
Jan 12, 2022

Conversation

nakabonne
Copy link
Member

What this PR does / why we need it:
Whenever you hover over the Environment tab at the settings page, you will see the notes "deprecated".

image

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

NONE

@@ -76,6 +82,13 @@ export const SettingsIndexPage: FC = memo(function SettingsIndexPage() {
activeClassName={classes.activeNav}
>
<ListItemText primary={text} />
{link === PAGE_PATH_SETTINGS_ENV && (
Copy link
Member

Choose a reason for hiding this comment

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

not sure why do we need this check? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

Because this is only for the Environment tab, but am I correct?

Copy link
Member

Choose a reason for hiding this comment

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

If this condition check exists, when we click on other tabs on the left sidebar, the warning will disappear. I think it should keep be shown even if users click on other tabs on the left sidebar, wdyt?

Screen Shot 2022-01-12 at 18 50 54

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually it doesn't disappear even if you click on other tabs.
Kapture 2022-01-12 at 18 53 59

Copy link
Member Author

Choose a reason for hiding this comment

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

The variable name may be a bit confusing, but it just tells it to show the Icon only if it is a ListItem for Environment.

Copy link
Member

@khanhtc1202 khanhtc1202 Jan 12, 2022

Choose a reason for hiding this comment

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

Ah okay, I get the point 👍 Thank you.

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 31.58%. This pull request does not change code coverage.

Co-authored-by: Le Van Nghia <nghialv2607@gmail.com>
@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 31.58%. This pull request does not change code coverage.

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for javascript is 81.86%. This pull request does not change code coverage.

@khanhtc1202
Copy link
Member

Nice
/lgtm

@nghialv
Copy link
Member

nghialv commented Jan 12, 2022

/approve

@pipecd-bot
Copy link
Collaborator

APPROVE

This pull request is APPROVED by nghialv.

Approvers can cancel the approval by writing /approve cancel in a comment. Any additional commits also will change this pull request to be not-approved.

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