Skip to content

refactor(permissions): extract PermissionShieldContent component and export card styles - #1764

Draft
rishiraj38 wants to merge 1 commit into
layer5io:masterfrom
rishiraj38:seprate-permission-content
Draft

refactor(permissions): extract PermissionShieldContent component and export card styles#1764
rishiraj38 wants to merge 1 commit into
layer5io:masterfrom
rishiraj38:seprate-permission-content

Conversation

@rishiraj38

Copy link
Copy Markdown
Member

Description

This PR refactors PermissionShield by extracting its tooltip content rendering logic into a separate standalone component, PermissionShieldContent.

Key Changes

  • Extracted PermissionShieldContent: Separated the tooltip content layout and context metadata rendering from PermissionShield into its own component in src/custom/PermissionShieldContent.tsx.
  • Exported PERMISSION_SHIELD_CARD_SX: Exported the common tooltip styling object for reuse across custom tooltips or popovers.
  • Root Barrel Exports: Re-exported PermissionShieldContent, PermissionShieldContentProps, and PERMISSION_SHIELD_CARD_SX in src/index.tsx.

Testing

  • Verified PermissionShield tooltip rendering remains identical.
  • Verified build passes and barrel exports are present in dist/index.d.ts.

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Rishi Raj <rishiraj438gt@gmail.com>
@rishiraj38
rishiraj38 marked this pull request as draft August 4, 2026 06:04
@coderabbitai

coderabbitai Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: a75676fd-93bb-4926-baf2-c16b9d52aa6e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant