- // const rejectAllButton =
- const acceptAllButton =
+ {/* Accept All / Reject All buttons that appear when the vertical ellipsis is clicked */}
+ {showAcceptRejectAllButtons && showAcceptRejectAll && (
+
+
+
+
{
+ onAcceptFile();
+ setShowAcceptRejectAllButtons(false);
+ }}
+ />
+ {
+ onRejectFile();
+ setShowAcceptRejectAllButtons(false);
+ }}
+ />
+
+
+
+ )}
- const rejectAllButton =
+
- const acceptRejectAllButtons =
- {acceptAllButton}
- {rejectAllButton}
-
+ {/* Diff Navigation Group */}
+
+
+
+ {isADiffInThisFile
+ ? `Diff ${(currDiffIdx ?? 0) + 1} of ${sortedDiffIds.length}`
+ : streamState === 'streaming'
+ ? 'No changes yet'
+ : 'No changes'
+ }
- // const closeCommandBar = useCallback(() => {
- // commandService.executeCommand('void.hideCommandBar');
- // }, [commandService]);
+
+
+
- // const hideButton =
- const leftRightUpDownButtons =
-
- {/* Changes in file */}
-
- {upButton}
- {downButton}
-
- {isADiffInThisFile ?
- `Diff ${(currDiffIdx ?? 0) + 1} of ${sortedDiffIds.length}`
- : streamState === 'streaming' ?
- 'No changes yet'
- : `No changes`
- }
-
-
- {/* Files */}
-
- {leftButton}
- {/*
*/}
- {rightButton}
- {/*
*/}
-
- {currFileIdx !== null ?
- `File ${currFileIdx + 1} of ${sortedCommandBarURIs.length}`
- : `${sortedCommandBarURIs.length} file${sortedCommandBarURIs.length === 1 ? '' : 's'} changed`
- }
-
+ {/* File Navigation Group */}
+
+
+
+ {currFileIdx !== null
+ ? `File ${currFileIdx + 1} of ${sortedCommandBarURIs.length}`
+ : `${sortedCommandBarURIs.length} file${sortedCommandBarURIs.length === 1 ? '' : 's'}`
+ }
+
+
+
+
+
+ {/* Accept/Reject buttons - only shown when appropriate */}
+ {showAcceptRejectAll && (
+
+ )}
+ {/* Triple colon menu button */}
+ {showAcceptRejectAll &&
+
+ setShowAcceptRejectAllButtons(!showAcceptRejectAllButtons)}
+ />
+
+
}
-
-
- return
- {showAcceptRejectAll && acceptRejectAllButtons}
- {leftRightUpDownButtons}
-
-
+ )
}
+
+
+
+