Skip to content

Commit eda8b84

Browse files
talissoncostaclaude
andcommitted
refactor(FlagsTab): remove misleading enabled/disabled counts
Remove the summary stats (X Enabled, Y Disabled) from the header as they were based on default_enabled which doesn't reflect actual per-environment status. A flag could be enabled in Production but disabled in Development, making this count confusing. Following LaunchDarkly plugin pattern of showing only project name and total flag count. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent c8de7e4 commit eda8b84

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

src/components/FlagsTab.tsx

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,6 @@ const useStyles = makeStyles(theme => ({
5858
border: `1px solid ${theme.palette.divider}`,
5959
borderRadius: theme.shape.borderRadius,
6060
},
61-
legend: {
62-
display: 'flex',
63-
alignItems: 'center',
64-
gap: theme.spacing(2),
65-
marginTop: theme.spacing(1),
66-
fontSize: '0.75rem',
67-
color: theme.palette.text.secondary,
68-
},
69-
legendItem: {
70-
display: 'flex',
71-
alignItems: 'center',
72-
gap: theme.spacing(0.5),
73-
},
7461
showMoreButton: {
7562
display: 'flex',
7663
alignItems: 'center',
@@ -557,10 +544,6 @@ export const FlagsTab = () => {
557544
);
558545
}, [features, searchQuery]);
559546

560-
// Count enabled/disabled
561-
const enabledCount = features.filter(f => f.default_enabled).length;
562-
const disabledCount = features.length - enabledCount;
563-
564547
// Build project dashboard URL
565548
const dashboardUrl = buildProjectUrl(
566549
projectId || '',
@@ -598,17 +581,6 @@ export const FlagsTab = () => {
598581
<Typography variant="body2" color="textSecondary">
599582
{projectInfo?.name} ({features.length} flags)
600583
</Typography>
601-
{/* Summary stats */}
602-
<Box className={classes.legend}>
603-
<Box className={classes.legendItem}>
604-
<FlagStatusIndicator enabled size="small" />
605-
<span>{enabledCount} Enabled</span>
606-
</Box>
607-
<Box className={classes.legendItem}>
608-
<FlagStatusIndicator enabled={false} size="small" />
609-
<span>{disabledCount} Disabled</span>
610-
</Box>
611-
</Box>
612584
</Grid>
613585
<Grid item xs={12} md={6}>
614586
<Box className={classes.headerActions}>

0 commit comments

Comments
 (0)