-
Notifications
You must be signed in to change notification settings - Fork 399
upcoming: [UIE-9730] - Add Beta/New Feature Chip Support for RuleSets and Prefix Lists #13164
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
Merged
pmakode-akamai
merged 11 commits into
linode:develop
from
pmakode-akamai:UIE-9730-add-beta-new-feature-chip-support-for-ruleset-prefixlist
Dec 5, 2025
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
cf48ad5
Update tests and fix typo
pmakode-akamai d794264
Added changeset: Integrate Prefix List details drawer with Edit and Aβ¦
pmakode-akamai 4dbf5f8
Add tests for handleOpenPrefixListDrawer call on click of View Details
pmakode-akamai 52b356f
Update ruleset details drawer button text from cancel to close
pmakode-akamai 30abe45
Change from Link to LinkButton
pmakode-akamai bc06cf0
Update mock protocol
pmakode-akamai 79f6163
Add beta or new feature chip support for firewall RS & PL
pmakode-akamai e21d9cd
Resolve merge conflicts
pmakode-akamai 996c01f
Merge branch 'develop' into UIE-9730-add-beta-new-feature-chip-supporβ¦
pmakode-akamai fa94279
Add tests and do not display chip for edit mode
pmakode-akamai c942b82
Added changeset: Add Beta/New feature Chip support for RuleSets and Pβ¦
pmakode-akamai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
packages/manager/.changeset/pr-13164-upcoming-features-1764838771826.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@linode/manager": Upcoming Features | ||
| --- | ||
|
|
||
| Add Beta/New feature Chip support for RuleSets and Prefix Lists ([#13164](https://github.com/linode/manager/pull/13164)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,10 @@ import * as React from 'react'; | |
|
|
||
| import { SelectionCard } from 'src/components/SelectionCard/SelectionCard'; | ||
|
|
||
| import { useIsFirewallRulesetsPrefixlistsEnabled } from '../../shared'; | ||
| import { | ||
| getFeatureChip, | ||
| useIsFirewallRulesetsPrefixlistsEnabled, | ||
| } from '../../shared'; | ||
| import { | ||
| formValueToIPs, | ||
| getInitialFormValues, | ||
|
|
@@ -50,8 +53,11 @@ export const FirewallRuleDrawer = React.memo( | |
| ruleToModifyOrView, | ||
| } = props; | ||
|
|
||
| const { isFirewallRulesetsPrefixlistsFeatureEnabled } = | ||
| useIsFirewallRulesetsPrefixlistsEnabled(); | ||
| const { | ||
| isFirewallRulesetsPrefixlistsFeatureEnabled, | ||
| isFirewallRulesetsPrefixListsBetaEnabled, | ||
| isFirewallRulesetsPrefixListsGAEnabled, | ||
| } = useIsFirewallRulesetsPrefixlistsEnabled(); | ||
|
|
||
| /** | ||
| * State for the type of entity being created: either a firewall 'rule' or | ||
|
|
@@ -189,8 +195,23 @@ export const FirewallRuleDrawer = React.memo( | |
| return errors; | ||
| }; | ||
|
|
||
| const featureChip = | ||
| getFeatureChip({ | ||
| isFirewallRulesetsPrefixlistsFeatureEnabled, | ||
| isFirewallRulesetsPrefixListsBetaEnabled, | ||
| isFirewallRulesetsPrefixListsGAEnabled, | ||
| }) ?? undefined; | ||
|
|
||
| // Do not show the Firewall RS & PL feature chip in Edit mode drawer title | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good that we commented the condition π |
||
| const titleSuffix = mode === 'edit' ? undefined : featureChip; | ||
|
|
||
| return ( | ||
| <Drawer onClose={onClose} open={isOpen} title={title}> | ||
| <Drawer | ||
| onClose={onClose} | ||
| open={isOpen} | ||
| title={title} | ||
| titleSuffix={titleSuffix} | ||
| > | ||
| {mode === 'create' && isFirewallRulesetsPrefixlistsFeatureEnabled && ( | ||
| <Grid container spacing={2}> | ||
| {firewallRuleCreateOptions.map((option) => ( | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.