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

UI v2 bug fixes #1353

Merged
merged 9 commits into from
Jul 19, 2023
Merged

UI v2 bug fixes #1353

merged 9 commits into from
Jul 19, 2023

Conversation

milan-deepfence
Copy link
Contributor

@milan-deepfence milan-deepfence requested a review from manV as a code owner July 18, 2023 11:25
@@ -380,6 +380,16 @@ export const useIntegrationTableColumn = (
},
),
];
case IntegrationType.email:
return [
Copy link
Member

Choose a reason for hiding this comment

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

use columnHelper.display

@@ -69,7 +69,7 @@ const Header = () => {
};

function processLabel(labelKey: string) {
return labelKey.replaceAll('_', ' ').replaceAll('id', 'ID');
return labelKey.replaceAll('_', ' ').replace(new RegExp('\\bid', 'g'), 'ID');
Copy link
Member

Choose a reason for hiding this comment

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

use functions instead of regex. see metadata.tsx in topology.

in the metadata.tsx also use === instead of .includes()

@@ -68,8 +69,19 @@ const Header = () => {
);
};

const UPPERCASE_WORDS = ['id'];
Copy link
Member

Choose a reason for hiding this comment

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

this we need to do in all node details modals.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes we need in all details modals

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