Skip to content

Commit e2ccc22

Browse files
committed
fix(MessageBar): removed gradient and thinking animation
1 parent 03cb751 commit e2ccc22

4 files changed

Lines changed: 0 additions & 45 deletions

File tree

packages/module/patternfly-docs/content/extensions/chatbot/examples/UI/ChatbotMessageBarIndicatorThinking.tsx

Lines changed: 0 additions & 15 deletions
This file was deleted.

packages/module/patternfly-docs/content/extensions/chatbot/examples/UI/UI.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -329,16 +329,6 @@ To enable the stop button, set `hasStopButton` to `true` and pass in a `handleSt
329329

330330
```
331331

332-
### Message bar with AI indicator styles
333-
334-
To add a more pronounced AI indicator style to the message bar, pass `hasAiIndicator` to the `<MessageBar>` component. You can also enable a "thinking" animation by passing in `isThinking`.
335-
336-
This example shows a simplified method of handling the "thinking" animation: after a user sends a message, the `isThinking` property is set to `true` to trigger the animation, then returns to `false` after 10 seconds to halt the animation.
337-
338-
```ts file="./ChatbotMessageBarIndicatorThinking.tsx" isBeta
339-
340-
```
341-
342332
## Chat history
343333

344334
### Chat history drawer

packages/module/src/MessageBar/MessageBar.test.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -477,18 +477,6 @@ describe('Message bar', () => {
477477
expect(container.querySelector('.pf-m-primary')).toBeTruthy();
478478
});
479479

480-
it('Renders with class pf-v6-m-ai-indicator when hasAiIndicator is true', () => {
481-
render(<MessageBar onSendMessage={jest.fn} hasAiIndicator />);
482-
483-
expect(screen.getByRole('textbox').closest('.pf-chatbot__message-bar')).toHaveClass('pf-v6-m-ai-indicator');
484-
});
485-
486-
it('Renders with class pf-v6-m-thinking when isThinking is true', () => {
487-
render(<MessageBar onSendMessage={jest.fn} isThinking />);
488-
489-
expect(screen.getByRole('textbox').closest('.pf-chatbot__message-bar')).toHaveClass('pf-v6-m-thinking');
490-
});
491-
492480
it('Renders with flex-basis of auto by default', () => {
493481
render(<MessageBar onSendMessage={jest.fn} />);
494482

packages/module/src/MessageBar/MessageBar.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,6 @@ export interface MessageBarProps extends Omit<TextAreaProps, 'innerRef'> {
122122
additionalActions?: React.ReactNode;
123123
/** Flag indicating whether a multiline layout for the message input and actions should be forced. This can be used to always render actions below the message input. */
124124
forceMultilineLayout?: boolean;
125-
/** @beta Flag indicating whether the message bar has an AI indicator border. */
126-
hasAiIndicator?: boolean;
127-
/** @beta Flag indicating whether the chatbot is thinking in response to a query, adding an animation to the message bar. */
128-
isThinking?: boolean;
129125
}
130126

131127
export const MessageBarBase: FunctionComponent<MessageBarProps> = ({
@@ -160,8 +156,6 @@ export const MessageBarBase: FunctionComponent<MessageBarProps> = ({
160156
isPrimary,
161157
additionalActions,
162158
forceMultilineLayout = false,
163-
hasAiIndicator,
164-
isThinking,
165159
...props
166160
}: MessageBarProps) => {
167161
// Text Input
@@ -539,8 +533,6 @@ export const MessageBarBase: FunctionComponent<MessageBarProps> = ({
539533
className={css(
540534
'pf-chatbot__message-bar',
541535
isPrimary && 'pf-m-primary',
542-
hasAiIndicator && 'pf-v6-m-ai-indicator',
543-
isThinking && 'pf-v6-m-thinking',
544536
isMultiline && 'pf-m-multiline',
545537
className
546538
)}

0 commit comments

Comments
 (0)