mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-30 06:12:03 +00:00
adjustments per gemini suggestions
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user