From db93ea736b0af04d9205de81f5d0b44de8fe1af6 Mon Sep 17 00:00:00 2001 From: Taylor Mullen Date: Sun, 18 May 2025 22:16:57 -0700 Subject: feat(cli): Add ShellModeIndicator component This commit introduces a new ShellModeIndicator component to visually signify when shell mode is active. - Displays "shell mode enabled (! to toggle)" in the UI. - The AutoAcceptIndicator is now hidden when shell mode is active to prevent UI clutter. --- packages/cli/src/ui/components/ShellModeIndicator.tsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 packages/cli/src/ui/components/ShellModeIndicator.tsx (limited to 'packages/cli/src/ui/components/ShellModeIndicator.tsx') diff --git a/packages/cli/src/ui/components/ShellModeIndicator.tsx b/packages/cli/src/ui/components/ShellModeIndicator.tsx new file mode 100644 index 00000000..e4147035 --- /dev/null +++ b/packages/cli/src/ui/components/ShellModeIndicator.tsx @@ -0,0 +1,18 @@ +/** + * @license + * Copyright 2025 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ + +import React from 'react'; +import { Box, Text } from 'ink'; +import { Colors } from '../colors.js'; + +export const ShellModeIndicator: React.FC = () => ( + + + shell mode enabled + (! to toggle) + + +); -- cgit v1.2.3