mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-01 20:23:36 +00:00
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:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user