Skip to content

Commit ecb363a

Browse files
talissoncostaclaude
andcommitted
feat(ui): add version column to environment table
- Add conditional Version column based on use_v2_feature_versioning - Display v1/v2 indicator per environment - Only show column when at least one environment uses v2 versioning Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent ef383eb commit ecb363a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/components/FlagsTab/EnvironmentTable.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ export const EnvironmentTable = ({
6363
const displayedEnvironments = environments.slice(0, MAX_ENVIRONMENTS);
6464
const hiddenCount = environments.length - MAX_ENVIRONMENTS;
6565

66+
// Check if any environment uses v2 versioning
67+
const hasVersioning = displayedEnvironments.some(env => env.use_v2_feature_versioning);
68+
6669
return (
6770
<>
6871
<Table size="small" className={classes.envTable}>
@@ -72,6 +75,7 @@ export const EnvironmentTable = ({
7275
<TableCell>Status</TableCell>
7376
<TableCell>Value</TableCell>
7477
<TableCell>Overrides</TableCell>
78+
{hasVersioning && <TableCell>Version</TableCell>}
7579
<TableCell>Last updated</TableCell>
7680
</TableRow>
7781
</TableHead>
@@ -128,6 +132,13 @@ export const EnvironmentTable = ({
128132
)}
129133
</Box>
130134
</TableCell>
135+
{hasVersioning && (
136+
<TableCell>
137+
<Typography variant="body2" color="textSecondary">
138+
{env.use_v2_feature_versioning ? 'v2' : 'v1'}
139+
</Typography>
140+
</TableCell>
141+
)}
131142
<TableCell>
132143
<Typography variant="body2" color="textSecondary">
133144
{new Date(feature.created_date).toLocaleDateString()}

0 commit comments

Comments
 (0)