Skip to content

Add: ShieldIcon#1690

Open
KhushamBansal wants to merge 6 commits into
layer5io:masterfrom
KhushamBansal:add/ShieldIcon
Open

Add: ShieldIcon#1690
KhushamBansal wants to merge 6 commits into
layer5io:masterfrom
KhushamBansal:add/ShieldIcon

Conversation

@KhushamBansal

Copy link
Copy Markdown
Member

Notes for Reviewers

This PR fixes #1685

Signed commits

  • Yes, I signed my commits.

Signed-off-by: KhushamBansal <kbkhushambansal@gmail.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new ShieldIcon component and exports it. The reviewer pointed out that using an empty object literal as a default value for the style prop is a React anti-pattern because it creates a new object reference on every render, which can trigger unnecessary re-renders. They suggested removing the default value assignment.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread src/icons/Shield/ShieldIcon.tsx Outdated
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: Lee Calcote <leecalcote@gmail.com>
Comment thread src/icons/Shield/ShieldIcon.tsx Outdated
import {
DEFAULT_HEIGHT,
DEFAULT_WIDTH,
DEFAULT_FILL

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We don't have other props? Where is the secondary color, @KhushamBansal?

@leecalcote

Copy link
Copy Markdown
Member

Do the whole job, @KhushamBansal

Signed-off-by: KhushamBansal <kbkhushambansal@gmail.com>
@KhushamBansal

Copy link
Copy Markdown
Member Author

@leecalcote I have updated the PR. Now, the icon looks like this.

Image

@rishiraj38 rishiraj38 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me. One question, though: in MUI and Meshery Cloud we refer to this as SecurityIcon, while in Sistent it's named Shield. Since this is being introduced in Sistent and isn't used anywhere yet, nothing should break. I'm just wondering about the naming conventions: should we align it with SecurityIcon, or is Shield the preferred name?

@KhushamBansal

Copy link
Copy Markdown
Member Author

Looks good to me. One question, though: in MUI and Meshery Cloud we refer to this as SecurityIcon, while in Sistent it's named Shield. Since this is being introduced in Sistent and isn't used anywhere yet, nothing should break. I'm just wondering about the naming conventions: should we align it with SecurityIcon, or is Shield the preferred name?

@rishiraj38 Thanks for pointing this out. I too think we should follow same naming as used in meshery-cloud. I'll make the change.

Signed-off-by: KhushamBansal <kbkhushambansal@gmail.com>
@winkletinkle

Copy link
Copy Markdown

Thank you for treating Cloud as the source of truth.

@leecalcote leecalcote left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Lots o' feedback offered in Slack.

Like a broken record, I am. 😄

@rishiraj38 rishiraj38 dismissed leecalcote’s stale review July 8, 2026 22:25

Feedback incorporated.

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.

[Feature] Add ShieldIcon to Sistent

4 participants