Skip to content
Merged
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
4 changes: 3 additions & 1 deletion patchnotes-web/src/api/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import {
useTriggerPackageSync,
getGetPackagesHealthQueryKey,
} from './generated/admin-packages/admin-packages'
import { useGetFeed } from './generated/feed/feed'
import { useGetFeed, getGetFeedQueryOptions } from './generated/feed/feed'
import { GetFeedResponse } from './generated/feed/feed.zod'

import {
Expand Down Expand Up @@ -401,3 +401,5 @@ export function useFeed(options?: FeedOptions) {
},
})
}

export { getGetFeedQueryOptions }
18 changes: 9 additions & 9 deletions patchnotes-web/src/routeTree.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const WatchlistRoute = WatchlistRouteImport.update({
id: '/watchlist',
path: '/watchlist',
getParentRoute: () => rootRouteImport,
} as any)
} as any).lazy(() => import('./routes/watchlist.lazy').then((d) => d.Route))
const SubscriptionSuccessRoute = SubscriptionSuccessRouteImport.update({
id: '/subscription-success',
path: '/subscription-success',
Expand All @@ -48,32 +48,32 @@ const SettingsRoute = SettingsRouteImport.update({
id: '/settings',
path: '/settings',
getParentRoute: () => rootRouteImport,
} as any)
} as any).lazy(() => import('./routes/settings.lazy').then((d) => d.Route))
const PrivacyRoute = PrivacyRouteImport.update({
id: '/privacy',
path: '/privacy',
getParentRoute: () => rootRouteImport,
} as any)
} as any).lazy(() => import('./routes/privacy.lazy').then((d) => d.Route))
const PricingRoute = PricingRouteImport.update({
id: '/pricing',
path: '/pricing',
getParentRoute: () => rootRouteImport,
} as any)
} as any).lazy(() => import('./routes/pricing.lazy').then((d) => d.Route))
const OnboardingRoute = OnboardingRouteImport.update({
id: '/onboarding',
path: '/onboarding',
getParentRoute: () => rootRouteImport,
} as any)
} as any).lazy(() => import('./routes/onboarding.lazy').then((d) => d.Route))
const LoginRoute = LoginRouteImport.update({
id: '/login',
path: '/login',
getParentRoute: () => rootRouteImport,
} as any)
} as any).lazy(() => import('./routes/login.lazy').then((d) => d.Route))
const AuthenticateRoute = AuthenticateRouteImport.update({
id: '/authenticate',
path: '/authenticate',
getParentRoute: () => rootRouteImport,
} as any)
} as any).lazy(() => import('./routes/authenticate.lazy').then((d) => d.Route))
const AdminRoute = AdminRouteImport.update({
id: '/admin',
path: '/admin',
Expand All @@ -83,12 +83,12 @@ const AboutRoute = AboutRouteImport.update({
id: '/about',
path: '/about',
getParentRoute: () => rootRouteImport,
} as any)
} as any).lazy(() => import('./routes/about.lazy').then((d) => d.Route))
const IndexRoute = IndexRouteImport.update({
id: '/',
path: '/',
getParentRoute: () => rootRouteImport,
} as any)
} as any).lazy(() => import('./routes/index.lazy').then((d) => d.Route))
const ReleasesReleaseIdRoute = ReleasesReleaseIdRouteImport.update({
id: '/releases/$releaseId',
path: '/releases/$releaseId',
Expand Down
6 changes: 6 additions & 0 deletions patchnotes-web/src/routes/about.lazy.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { createLazyFileRoute } from '@tanstack/react-router'
import { About } from '../pages/About'

export const Route = createLazyFileRoute('/about')({
component: About,
})
2 changes: 0 additions & 2 deletions patchnotes-web/src/routes/about.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { createFileRoute } from '@tanstack/react-router'
import { About } from '../pages/About'
import { seoHead } from '../seo'

export const Route = createFileRoute('/about')({
component: About,
head: () => ({
...seoHead({
title: 'About | My Release Notes',
Expand Down
6 changes: 6 additions & 0 deletions patchnotes-web/src/routes/authenticate.lazy.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { createLazyFileRoute } from '@tanstack/react-router'
import { Authenticate } from '../pages/Authenticate'

export const Route = createLazyFileRoute('/authenticate')({
component: Authenticate,
})
5 changes: 1 addition & 4 deletions patchnotes-web/src/routes/authenticate.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import { createFileRoute } from '@tanstack/react-router'
import { Authenticate } from '../pages/Authenticate'

export const Route = createFileRoute('/authenticate')({
component: Authenticate,
})
export const Route = createFileRoute('/authenticate')({})
6 changes: 6 additions & 0 deletions patchnotes-web/src/routes/index.lazy.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { createLazyFileRoute } from '@tanstack/react-router'
import { HomePage } from '../pages/HomePage'

export const Route = createLazyFileRoute('/')({
component: HomePage,
})
8 changes: 6 additions & 2 deletions patchnotes-web/src/routes/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { createFileRoute } from '@tanstack/react-router'
import { HomePage } from '../pages/HomePage'
import { getGetFeedQueryOptions } from '../api/hooks'
import { seoHead } from '../seo'

export const Route = createFileRoute('/')({
component: HomePage,
loader: ({ context: { queryClient } }) => {
queryClient.ensureQueryData(
getGetFeedQueryOptions({ excludePrerelease: true })
)
},
head: () => ({
...seoHead({
title: 'My Release Notes - Track GitHub Releases | myreleasenotes.ai',
Expand Down
6 changes: 6 additions & 0 deletions patchnotes-web/src/routes/login.lazy.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { createLazyFileRoute } from '@tanstack/react-router'
import { Login } from '../pages/Login'

export const Route = createLazyFileRoute('/login')({
component: Login,
})
2 changes: 0 additions & 2 deletions patchnotes-web/src/routes/login.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { createFileRoute } from '@tanstack/react-router'
import { Login } from '../pages/Login'
import { seoHead } from '../seo'

export const Route = createFileRoute('/login')({
component: Login,
validateSearch: (search: Record<string, unknown>) => ({
returnUrl:
typeof search.returnUrl === 'string' ? search.returnUrl : undefined,
Expand Down
6 changes: 6 additions & 0 deletions patchnotes-web/src/routes/onboarding.lazy.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { createLazyFileRoute } from '@tanstack/react-router'
import { OnboardingPage } from '../pages/OnboardingPage'

export const Route = createLazyFileRoute('/onboarding')({
component: OnboardingPage,
})
2 changes: 0 additions & 2 deletions patchnotes-web/src/routes/onboarding.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { createFileRoute } from '@tanstack/react-router'
import { OnboardingPage } from '../pages/OnboardingPage'
import { seoHead } from '../seo'

export const Route = createFileRoute('/onboarding')({
component: OnboardingPage,
head: () => ({
...seoHead({
title: 'Get Started | My Release Notes',
Expand Down
6 changes: 6 additions & 0 deletions patchnotes-web/src/routes/pricing.lazy.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { createLazyFileRoute } from '@tanstack/react-router'
import { Pricing } from '../pages/Pricing'

export const Route = createLazyFileRoute('/pricing')({
component: Pricing,
})
2 changes: 0 additions & 2 deletions patchnotes-web/src/routes/pricing.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { createFileRoute } from '@tanstack/react-router'
import { Pricing } from '../pages/Pricing'
import { seoHead } from '../seo'

export const Route = createFileRoute('/pricing')({
component: Pricing,
head: () => ({
...seoHead({
title: 'Pricing | My Release Notes',
Expand Down
6 changes: 6 additions & 0 deletions patchnotes-web/src/routes/privacy.lazy.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { createLazyFileRoute } from '@tanstack/react-router'
import { Privacy } from '../pages/Privacy'

export const Route = createLazyFileRoute('/privacy')({
component: Privacy,
})
2 changes: 0 additions & 2 deletions patchnotes-web/src/routes/privacy.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { createFileRoute } from '@tanstack/react-router'
import { Privacy } from '../pages/Privacy'
import { seoHead } from '../seo'

export const Route = createFileRoute('/privacy')({
component: Privacy,
head: () => ({
...seoHead({
title: 'Privacy Policy | My Release Notes',
Expand Down
6 changes: 6 additions & 0 deletions patchnotes-web/src/routes/settings.lazy.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { createLazyFileRoute } from '@tanstack/react-router'
import { Settings } from '../pages/Settings'

export const Route = createLazyFileRoute('/settings')({
component: Settings,
})
2 changes: 0 additions & 2 deletions patchnotes-web/src/routes/settings.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { createFileRoute } from '@tanstack/react-router'
import { Settings } from '../pages/Settings'
import { seoHead } from '../seo'

export const Route = createFileRoute('/settings')({
component: Settings,
head: () => ({
...seoHead({
title: 'Settings | My Release Notes',
Expand Down
6 changes: 6 additions & 0 deletions patchnotes-web/src/routes/watchlist.lazy.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { createLazyFileRoute } from '@tanstack/react-router'
import { WatchlistPage } from '../pages/WatchlistPage'

export const Route = createLazyFileRoute('/watchlist')({
component: WatchlistPage,
})
2 changes: 0 additions & 2 deletions patchnotes-web/src/routes/watchlist.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { createFileRoute } from '@tanstack/react-router'
import { WatchlistPage } from '../pages/WatchlistPage'
import { seoHead } from '../seo'

export const Route = createFileRoute('/watchlist')({
component: WatchlistPage,
head: () => ({
...seoHead({
title: 'Watchlist | My Release Notes',
Expand Down