diff --git a/app/commit.json b/app/commit.json index 91446af..d109cab 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1 +1 @@ -{ "commit": "78505ed2f347dd3a7778b4c1c7c38c89ecacedd3" , "version": "" } +{ "commit": "6987ceae9e1e91bec301f9e25ed9e8e03449d806" , "version": "" } 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/settings/features/FeaturesTab.tsx b/app/components/settings/features/FeaturesTab.tsx index c5e1b3a..410f7ca 100644 --- a/app/components/settings/features/FeaturesTab.tsx +++ b/app/components/settings/features/FeaturesTab.tsx @@ -3,8 +3,8 @@ import { Switch } from '~/components/ui/Switch'; import { useSettings } from '~/lib/hooks/useSettings'; export default function FeaturesTab() { - - const { debug, enableDebugMode, isLocalModel, enableLocalModels, enableEventLogs, latestBranch, enableLatestBranch } = useSettings(); + const { debug, enableDebugMode, isLocalModel, enableLocalModels, enableEventLogs, latestBranch, enableLatestBranch } = + useSettings(); const handleToggle = (enabled: boolean) => { enableDebugMode(enabled); 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/app/lib/hooks/useSettings.tsx b/app/lib/hooks/useSettings.tsx index d093d5f..36eefb4 100644 --- a/app/lib/hooks/useSettings.tsx +++ b/app/lib/hooks/useSettings.tsx @@ -99,6 +99,7 @@ export function useSettings() { if (checkCommit === undefined) { checkCommit = commit.commit; } + if (savedLatestBranch === undefined || checkCommit !== commit.commit) { // If setting hasn't been set by user, check version checkIsStableVersion().then((isStable) => { 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