adjustments per gemini suggestions

This commit is contained in:
trueheads
2025-12-16 22:09:24 -06:00
parent 64549f824c
commit d58bd782ef
3 changed files with 10 additions and 9 deletions

View File

@@ -164,13 +164,6 @@ export const KanbanCard = memo(function KanbanCard({
return getBlockingDependencies(feature, features);
}, [enableDependencyBlocking, feature, features]);
// Determine if a badge occupies the top-right position
const hasBadgeAtTopRight = useMemo(() => {
return feature.status === "backlog" &&
!feature.error &&
(feature.skipTests || blockingDependencies.length > 0);
}, [feature.status, feature.error, feature.skipTests, blockingDependencies.length]);
const showSteps =
kanbanCardDetailLevel === "standard" ||
kanbanCardDetailLevel === "detailed";

View File

@@ -92,7 +92,11 @@ export function resolveDependencies(features: Feature[]): DependencyResolutionRe
// Process features that depend on this one
for (const dependentId of adjacencyList.get(current.id) || []) {
const newDegree = (inDegree.get(dependentId) || 1) - 1;
const currentDegree = inDegree.get(dependentId);
if (currentDegree === undefined) {
throw new Error(`In-degree not initialized for feature ${dependentId}`);
}
const newDegree = currentDegree - 1;
inDegree.set(dependentId, newDegree);
if (newDegree === 0) {

View File

@@ -92,7 +92,11 @@ export function resolveDependencies(features: Feature[]): DependencyResolutionRe
// Process features that depend on this one
for (const dependentId of adjacencyList.get(current.id) || []) {
const newDegree = (inDegree.get(dependentId) || 1) - 1;
const currentDegree = inDegree.get(dependentId);
if (currentDegree === undefined) {
throw new Error(`In-degree not initialized for feature ${dependentId}`);
}
const newDegree = currentDegree - 1;
inDegree.set(dependentId, newDegree);
if (newDegree === 0) {