refactor: update graph view actions to include onViewDetails and remove onViewBranch

- Added onViewDetails callback to handle feature detail viewing.
- Removed onViewBranch functionality and associated UI elements for a cleaner interface.
This commit is contained in:
James
2025-12-22 19:18:52 -05:00
parent 4dd00a98e4
commit cc0405cf27
4 changed files with 14 additions and 29 deletions

View File

@@ -83,6 +83,12 @@ export function GraphView({
onViewOutput(feature);
}
},
onViewDetails: (featureId: string) => {
const feature = features.find((f) => f.id === featureId);
if (feature) {
onEditFeature(feature);
}
},
onStartTask: (featureId: string) => {
const feature = features.find((f) => f.id === featureId);
if (feature) {
@@ -101,15 +107,8 @@ export function GraphView({
onResumeTask?.(feature);
}
},
onViewBranch: (featureId: string) => {
const feature = features.find((f) => f.id === featureId);
if (feature?.branchName) {
// TODO: Implement view branch action
console.log('View branch:', feature.branchName);
}
},
}),
[features, onViewOutput, onStartTask, onStopTask, onResumeTask]
[features, onViewOutput, onEditFeature, onStartTask, onStopTask, onResumeTask]
);
return (