Skip to content

Commit 332c4fd

Browse files
committed
2 Open - Release
1 parent 4d24734 commit 332c4fd

4 files changed

Lines changed: 35 additions & 11 deletions

File tree

src/apps/news/AppNews.tsx

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from 'react';
22
import NextImage from 'next/image';
33
import TimeAgo from 'react-timeago';
44

5-
import { AspectRatio, Box, Button, Card, CardContent, CardOverflow, ColorPaletteProp, Container, Grid, Sheet, Typography, VariantProp } from '@mui/joy';
5+
import { AspectRatio, Box, Button, Card, CardContent, CardOverflow, ColorPaletteProp, Container, Divider, Grid, ListDivider, Sheet, Typography, VariantProp } from '@mui/joy';
66
import ArrowForwardRoundedIcon from '@mui/icons-material/ArrowForwardRounded';
77
import ArrowOutwardRoundedIcon from '@mui/icons-material/ArrowOutwardRounded';
88
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
@@ -107,7 +107,10 @@ function NewsCard(props: {
107107
const { addPadding, idx, newsItem: ni } = props;
108108

109109
return (
110-
<Card color={props.color} variant={props.variant ?? 'plain'} sx={{ mb: 3, minHeight: 32, gap: 1 }}>
110+
<Card color={props.color} variant={props.variant ?? 'plain'} sx={{
111+
mb: 3, minHeight: 32, gap: 1,
112+
boxShadow: !idx ? 'md' : undefined,
113+
}}>
111114
<CardContent sx={{ position: 'relative', pr: addPadding ? 4 : 0 }}>
112115
<Box sx={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
113116
<Typography level='title-sm' component='div'>
@@ -190,6 +193,7 @@ export function AppNews() {
190193
overflowY: 'auto',
191194
display: 'flex', justifyContent: 'center',
192195
p: { xs: 3, md: 6 },
196+
// backgroundColor: 'background.level2'
193197
}}>
194198

195199
<Box sx={{
@@ -231,7 +235,7 @@ export function AppNews() {
231235
}}
232236
>
233237
Big-AGI Pro
234-
{/*✨*/}
238+
235239
</Button>
236240
)}
237241
</Box>
@@ -242,8 +246,13 @@ export function AppNews() {
242246

243247
<Container disableGutters maxWidth='sm'>
244248

249+
{/* Inject the callout item here*/}
250+
{/*<Box sx={{ mb: 3 }}>*/}
251+
{/* <BigAgiProNewsCallout />*/}
252+
{/*</Box>*/}
253+
245254
{/* Development Notices */}
246-
{Release.TenantSlug === 'open' && <NewsCard variant='soft' color='warning' newsItem={DevNewsItem} idx={0} addPadding={false} />}
255+
{Release.TenantSlug === 'open' && Release.IsNodeDevBuild && <NewsCard variant='soft' color='warning' newsItem={DevNewsItem} idx={0} addPadding={false} />}
247256

248257
{news?.map((ni, idx) => {
249258
// const firstCard = idx === 0;
@@ -274,6 +283,8 @@ export function AppNews() {
274283
</Box>
275284
)}
276285

286+
{idx === 0 && <Divider sx={{ my: 6, mx: 6 }}/>}
287+
277288
</React.Fragment>;
278289
})}
279290

src/apps/news/news.data.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,12 @@ const _frontendPkgVersion = _frontendBuild.pkgVersion ?? 'open/main';
5959
export const newsFrontendTimestamp = _frontendBuild.timestamp;
6060

6161
export const DevNewsItem: NewsItem = {
62-
versionCode: _frontendPkgVersion,
62+
versionCode: 'DEV',
6363
versionName: 'Development Build',
6464
versionDate: undefined,
6565
items: [
6666
{ text: <>You&apos;re running an unsupported <B>developer build</B> of Big-AGI Open {_frontendPkgVersion}</> },
67-
{ text: <>This branch carries breaking features that are subject to change</> },
6867
{ text: <>Please report screenshots of breakages and console error messages</> },
69-
{ text: <>Do not use, no cloud backups</> },
7068
{ text: <ExternalLink href='https://big-agi.com'>Back to the official version</ExternalLink> },
7169
],
7270
} as const;
@@ -76,7 +74,7 @@ export const NewsItems: NewsItem[] = [
7674
{
7775
versionCode: '2.0.0',
7876
versionName: 'Open',
79-
versionDate: new Date('2025-10-06T15:00:00Z'),
77+
versionDate: new Date('2025-10-31T15:00:00Z'),
8078
versionCoverImage: coverV200,
8179
items: [
8280
{ text: <><B wow>Big-AGI Open</B> is ready and more productive and faster than ever, with:</> },

src/common/app.release.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ export const Release = {
6060

6161
export const BaseProduct = {
6262
ReleaseNotes: '',
63-
SupportForm: (_userId?: string) => 'https://github.com/enricoros/big-agi/issues',
63+
SupportForm: (_userId?: string) => 'https://github.com/enricoros/big-AGI/issues/new',
6464
} as const;

src/common/layout/optima/nav/DesktopNav.tsx

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import Router from 'next/router';
33

44
import type { SxProps } from '@mui/joy/styles/types';
55
import { Divider, Dropdown, ListDivider, ListItem, ListItemButton, ListItemDecorator, Menu, MenuButton, MenuItem, Tooltip, Typography } from '@mui/joy';
6+
import ArrowOutwardRoundedIcon from '@mui/icons-material/ArrowOutwardRounded';
67
import CodeIcon from '@mui/icons-material/Code';
78
import HistoryIcon from '@mui/icons-material/History';
89
import LightbulbOutlinedIcon from '@mui/icons-material/LightbulbOutlined';
@@ -20,6 +21,7 @@ import { FeatureBadge } from '~/common/components/FeatureBadge';
2021
import { GoodModal } from '~/common/components/modals/GoodModal';
2122
import { PhSquaresFour } from '~/common/components/icons/phosphor/PhSquaresFour';
2223
import { checkDivider, checkVisibileIcon, NavItemApp, navItems } from '~/common/app.nav';
24+
import { clientUtmSource } from '~/common/util/pwaUtils';
2325
import { themeZIndexDesktopNav } from '~/common/app.theme';
2426
import { useHasLLMs } from '~/common/stores/llms/llms.hooks';
2527
import { useOverlayComponents } from '~/common/layout/overlays/useOverlayComponents';
@@ -31,6 +33,9 @@ import { optimaActions, optimaOpenModels, optimaOpenPreferences, optimaToggleDra
3133
import { scratchClipSupported, useScratchClipVisibility } from '../scratchclip/store-scratchclip';
3234

3335

36+
export const bigAgiProUrl = 'https://big-agi.com' + clientUtmSource('upgrade-apps');
37+
38+
3439
const desktopNavBarSx: SxProps = {
3540
zIndex: themeZIndexDesktopNav,
3641
};
@@ -165,6 +170,16 @@ export function DesktopNav(props: { component: React.ElementType, currentApp?: N
165170
sx={{ minWidth: 260 }}
166171
>
167172

173+
<MenuItem component='a' variant='solid' color='primary' href={bigAgiProUrl} target='_blank' sx={{ minHeight: 40 }}>
174+
{/*<ListItemDecorator>New</ListItemDecorator>*/}
175+
{/*<ListItemDecorator><RocketLaunchRounded /></ListItemDecorator>*/}
176+
Big-AGI Pro
177+
{/*✨*/}
178+
<ArrowOutwardRoundedIcon sx={{ ml: 'auto' }}/>
179+
</MenuItem>
180+
181+
<ListDivider />
182+
168183
{/* APPS Section */}
169184
{overflowApps.length > 0 && (
170185
<>
@@ -207,10 +222,10 @@ export function DesktopNav(props: { component: React.ElementType, currentApp?: N
207222
Support
208223
</Typography>
209224
</ListItem>
210-
<ListItemButton component="a" href={BaseProduct.SupportForm()} target="_blank">
225+
<MenuItem component="a" href={BaseProduct.SupportForm()} target="_blank">
211226
<ListItemDecorator><LightbulbOutlinedIcon /></ListItemDecorator>
212227
I Have Feedback
213-
</ListItemButton>
228+
</MenuItem>
214229
{!!releaseNotesUrl && (
215230
<MenuItem onClick={handleShowReleaseNotes}>
216231
<ListItemDecorator>

0 commit comments

Comments
 (0)