1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-04 13:48:56 +02:00

chore: rename feature -> flag

This commit is contained in:
Thomas Heartman 2025-06-20 10:44:24 +02:00
parent 08951fe1a3
commit 7200f5875f
3 changed files with 6 additions and 6 deletions

View File

@ -16,7 +16,7 @@ export const ArchiveFeatureChange: FC<IArchiveFeatureChange> = ({
actions, actions,
}) => ( }) => (
<ChangeItemWrapper> <ChangeItemWrapper>
<ArchiveBox>Archiving feature</ArchiveBox> <ArchiveBox>Archiving flag</ArchiveBox>
{actions} {actions}
</ChangeItemWrapper> </ChangeItemWrapper>
); );

View File

@ -70,7 +70,7 @@ test('Add single archive feature change to change request', async () => {
expect(screen.getByText('Archive feature flag')).toBeInTheDocument(); expect(screen.getByText('Archive feature flag')).toBeInTheDocument();
await screen.findByText( await screen.findByText(
'Archiving features with dependencies will also remove those dependencies.', 'Archiving flags with dependencies will also remove those dependencies.',
); );
const button = await screen.findByText('Add change to draft'); const button = await screen.findByText('Add change to draft');
@ -100,7 +100,7 @@ test('Add multiple archive feature changes to change request', async () => {
await screen.findByText('Archive feature flags'); await screen.findByText('Archive feature flags');
await screen.findByText( await screen.findByText(
'Archiving features with dependencies will also remove those dependencies.', 'Archiving flags with dependencies will also remove those dependencies.',
); );
const button = await screen.findByText('Add to change request'); const button = await screen.findByText('Add to change request');
@ -163,7 +163,7 @@ test('Show error message when multiple parents of orphaned children are archived
); );
expect( expect(
screen.queryByText( screen.queryByText(
'Archiving features with dependencies will also remove those dependencies.', 'Archiving flags with dependencies will also remove those dependencies.',
), ),
).not.toBeInTheDocument(); ).not.toBeInTheDocument();
}); });
@ -189,7 +189,7 @@ test('Show error message when 1 parent of orphaned children is archived', async
); );
expect( expect(
screen.queryByText( screen.queryByText(
'Archiving features with dependencies will also remove those dependencies.', 'Archiving flags with dependencies will also remove those dependencies.',
), ),
).not.toBeInTheDocument(); ).not.toBeInTheDocument();
}); });

View File

@ -26,7 +26,7 @@ interface IFeatureArchiveDialogProps {
const RemovedDependenciesAlert = () => { const RemovedDependenciesAlert = () => {
return ( return (
<Alert severity='warning' sx={{ m: (theme) => theme.spacing(2, 0) }}> <Alert severity='warning' sx={{ m: (theme) => theme.spacing(2, 0) }}>
Archiving features with dependencies will also remove those Archiving flags with dependencies will also remove those
dependencies. dependencies.
</Alert> </Alert>
); );