diff --git a/.github/workflows/commit.yaml b/.github/workflows/commit.yaml index d6b3193..150948a 100644 --- a/.github/workflows/commit.yaml +++ b/.github/workflows/commit.yaml @@ -29,7 +29,7 @@ jobs: - name: Update commit file run: | - echo CURRENT_VERSION=$(node -p "require('./package.json').version") >> $GITHUB_ENV + echo "CURRENT_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV echo "{ \"commit\": \"$COMMIT_HASH\" , \"version\": \"$CURRENT_VERSION\" }" > app/commit.json - name: Commit and push the update diff --git a/app/commit.json b/app/commit.json index f7acd08..54c81df 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1 +1 @@ -{ "commit": "19a3a03d455a5042cd3f8c654b0498c4cde2ea75" } +{ "commit": "bb941802094c6186e805f99a6c165431ae86d216" } diff --git a/app/components/chat/Messages.client.tsx b/app/components/chat/Messages.client.tsx index f81ae09..3b61918 100644 --- a/app/components/chat/Messages.client.tsx +++ b/app/components/chat/Messages.client.tsx @@ -73,8 +73,8 @@ export const Messages = React.forwardRef((props: {!isUserMessage && (
- - {messageId && ( + {messageId && ( +
+
+

Device Type

+

{systemInfo.deviceType}

+

Browser

{systemInfo.browser}

+
+

Display

+

+ {systemInfo.screen} ({systemInfo.colorDepth}) @{systemInfo.pixelRatio}x +

+
+
+

Connection

+

+ + + {systemInfo.online ? 'Online' : 'Offline'} + +

+

Screen Resolution

{systemInfo.screen}

diff --git a/app/components/ui/IconButton.tsx b/app/components/ui/IconButton.tsx index 4eef7fb..1e830bb 100644 --- a/app/components/ui/IconButton.tsx +++ b/app/components/ui/IconButton.tsx @@ -1,4 +1,4 @@ -import { memo } from 'react'; +import { memo, forwardRef, type ForwardedRef } from 'react'; import { classNames } from '~/utils/classNames'; type IconSize = 'sm' | 'md' | 'lg' | 'xl' | 'xxl'; @@ -25,41 +25,48 @@ type IconButtonWithChildrenProps = { type IconButtonProps = IconButtonWithoutChildrenProps | IconButtonWithChildrenProps; +// Componente IconButton com suporte a refs export const IconButton = memo( - ({ - icon, - size = 'xl', - className, - iconClassName, - disabledClassName, - disabled = false, - title, - onClick, - children, - }: IconButtonProps) => { - return ( - - ); - }, + onClick?.(event); + }} + > + {children ? children :
} + + ); + }, + ), ); function getIconSize(size: IconSize) { diff --git a/app/components/ui/Tooltip.tsx b/app/components/ui/Tooltip.tsx index 4e22f54..278fa1e 100644 --- a/app/components/ui/Tooltip.tsx +++ b/app/components/ui/Tooltip.tsx @@ -1,8 +1,9 @@ import * as Tooltip from '@radix-ui/react-tooltip'; +import { forwardRef, type ForwardedRef, type ReactElement } from 'react'; interface TooltipProps { tooltip: React.ReactNode; - children: React.ReactNode; + children: ReactElement; sideOffset?: number; className?: string; arrowClassName?: string; @@ -12,62 +13,67 @@ interface TooltipProps { delay?: number; } -const WithTooltip = ({ - tooltip, - children, - sideOffset = 5, - className = '', - arrowClassName = '', - tooltipStyle = {}, - position = 'top', - maxWidth = 250, - delay = 0, -}: TooltipProps) => { - return ( - - {children} - - -
{tooltip}
- , + ) => { + return ( + + {children} + + - - - - ); -}; + sideOffset={sideOffset} + style={{ + maxWidth, + ...tooltipStyle, + }} + > +
{tooltip}
+ +
+
+
+ ); + }, +); export default WithTooltip; diff --git a/public/apple-touch-icon-precomposed.png b/public/apple-touch-icon-precomposed.png new file mode 100644 index 0000000..ef0af66 Binary files /dev/null and b/public/apple-touch-icon-precomposed.png differ diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png new file mode 100644 index 0000000..ef0af66 Binary files /dev/null and b/public/apple-touch-icon.png differ