Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified assets/full-stack-chat-ui-cognito-auth-04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions full-stack-chat-ui-cognito-auth/user-interface/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
},
"dependencies": {
"@aws-amplify/ui-react": "^6.1.3",
"@cloudscape-design/chat-components": "^1.0.12",
"@cloudscape-design/components": "^3.0.611",
"@cloudscape-design/design-tokens": "^3.0.35",
"@cloudscape-design/global-styles": "^1.0.27",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
import { ReactElement, useState } from "react";
import styles from "../../styles/chat-ui.module.scss";
import { CopyWithPopoverButton } from "./CopyButton";
import { Avatar } from "./Avatar";
import Avatar from "@cloudscape-design/chat-components/avatar";
import * as awsui from "@cloudscape-design/design-tokens";

export function BaseChatMessage(props: {
Expand All @@ -31,10 +31,11 @@ export function BaseChatMessage(props: {
}}
>
<Avatar
name={props.name}
content={props.avatarElement}
waiting={props.waiting}
role={props.role}
ariaLabel={props.name || props.role}
tooltipText={props.name || props.role}
color={props.role === 'ai' ? "gen-ai" : 'default'}
loading={props.waiting}
iconName={props.role === 'ai' ? 'gen-ai':'user-profile'}
/>
{props.children && (
<div
Expand Down