diff --git a/src/common/app.release.ts b/src/common/app.release.ts index 6702d1c39..07e0a917b 100644 --- a/src/common/app.release.ts +++ b/src/common/app.release.ts @@ -16,7 +16,6 @@ export const Release = { App: { versionCode: '2.0.0-open-rc3', // 1.92.0 sequentially... versionName: 'Big-AGI 2', - releaseNotes: '', }, // Future compatibility @@ -65,5 +64,6 @@ export const Release = { export const BaseProduct = { + ReleaseNotes: '', SupportForm: (_userId?: string) => 'https://github.com/enricoros/big-agi/issues', } as const; diff --git a/src/common/layout/optima/bar/OptimaBar.tsx b/src/common/layout/optima/bar/OptimaBar.tsx index cbd5d98e4..30982bd08 100644 --- a/src/common/layout/optima/bar/OptimaBar.tsx +++ b/src/common/layout/optima/bar/OptimaBar.tsx @@ -1,35 +1,22 @@ import * as React from 'react'; import type { SxProps } from '@mui/joy/styles/types'; -import { Box, Dropdown, IconButton, ListDivider, ListItem, ListItemDecorator, Menu, MenuButton, MenuItem, Typography } from '@mui/joy'; +import { Box, IconButton, Typography } from '@mui/joy'; import ArrowBackIcon from '@mui/icons-material/ArrowBack'; -import EngineeringIcon from '@mui/icons-material/Engineering'; -import FeedbackIcon from '@mui/icons-material/Feedback'; -import HistoryIcon from '@mui/icons-material/History'; -import LightbulbOutlinedIcon from '@mui/icons-material/LightbulbOutlined'; import MenuIcon from '@mui/icons-material/Menu'; import MoreVertIcon from '@mui/icons-material/MoreVert'; import NavigateNextIcon from '@mui/icons-material/NavigateNext'; -import NewReleasesIcon from '@mui/icons-material/NewReleases'; - -import { BuildInfoCard } from '../../../../apps/news/AppNews'; -import { blocksRenderHTMLIFrameCss } from '~/modules/blocks/code/code-renderers/RenderCodeHtmlIFrame'; import { BigAgiSquircleIcon } from '~/common/components/icons/big-agi/BigAgiSquircleIcon'; import { Brand } from '~/common/app.config'; -import { GoodModal } from '~/common/components/modals/GoodModal'; import { LayoutSidebarRight } from '~/common/components/icons/LayoutSidebarRight'; import { Link } from '~/common/components/Link'; -import { Release } from '~/common/app.release'; -import { TooltipOutlined } from '~/common/components/TooltipOutlined'; import { checkVisibleNav, NavItemApp } from '~/common/app.nav'; import { navigateToIndex, ROUTE_INDEX } from '~/common/app.routes'; -import { useOverlayComponents } from '~/common/layout/overlays/useOverlayComponents'; import { InvertedBar, InvertedBarCornerItem } from '../InvertedBar'; import { PopupPanel } from '../panel/PopupPanel'; import { optimaOpenDrawer, optimaOpenPanel, optimaTogglePanel, useOptimaPanelOpen } from '../useOptima'; -import { scratchClipSupported, useScratchClipVisibility } from '../scratchclip/store-scratchclip'; import { useOptimaPortalHasInputs } from '../portals/useOptimaPortalHasInputs'; import { useOptimaPortalOutRef } from '../portals/useOptimaPortalOutRef'; @@ -95,51 +82,12 @@ export function OptimaBar(props: { component: React.ElementType, currentApp?: Na const appMenuAnchor = React.useRef(null); // external state - /** - * NOTE: shall we fall back to the 'standard' release notes when not available on the tenant? - * - prob not because this could be a per-company deployment, and we don't know the tenant's release notes - */ - const releaseNotesUrl = Release.App.releaseNotes; - const { showPromisedOverlay } = useOverlayComponents(); const hasDrawerContent = useOptimaPortalHasInputs('optima-portal-drawer'); const { panelAsPopup, panelHasContent, panelShownAsPanel, panelShownAsPopup } = useOptimaPanelOpen(props.isMobile, props.currentApp); - const { isVisible: isScratchClipVisible, toggleVisibility: toggleScratchClipVisibility } = useScratchClipVisibility(); // derived state const navIsShown = checkVisibleNav(props.currentApp); - - // Handlers - - const handleShowReleaseNotes = React.useCallback(async () => { - if (!releaseNotesUrl) return; - return await showPromisedOverlay('app-recent-changes', { rejectWithValue: false }, ({ onResolve, onUserReject }) => - -