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
2 changes: 1 addition & 1 deletion apps/web/app/(auth)/login/new/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { signIn } from "@lib/auth"
import { usePostHog } from "@lib/posthog"
import { TextSeparator } from "@repo/ui/components/text-separator"
import { TextSeparator } from "@ui/components/text-separator"
import { ExternalAuthButton } from "@ui/button/external-auth"
import { Button } from "@ui/components/button"
import { Badge } from "@ui/components/badge"
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(navigation)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function NavigationLayout({
const [showAddMemoryView, setShowAddMemoryView] = useState(false)
const pathname = usePathname()
const router = useRouter()
const flagEnabled = useFeatureFlagEnabled("nova-alpha-access")
const flagEnabled = true

useEffect(() => {
if (flagEnabled && !pathname.includes("/new")) {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(navigation)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { useFeatureFlagEnabled } from "posthog-js/react"
export default function Page() {
const { user, session } = useAuth()
const router = useRouter()
const flagEnabled = useFeatureFlagEnabled("nova-alpha-access")
const flagEnabled = true

// TODO: remove this flow after the feature flag is removed
// Old app: localStorage-backed onboarding
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/new/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { MobileBanner } from "@/components/new/mobile-banner"

export default function NewLayout({ children }: { children: React.ReactNode }) {
const router = useRouter()
const flagEnabled = useFeatureFlagEnabled("nova-alpha-access")
const flagEnabled = true

useEffect(() => {
if (!flagEnabled) {
Expand Down
7 changes: 2 additions & 5 deletions apps/web/components/menu.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
"use client"

import { useIsMobile } from "@hooks/use-mobile"
import {
fetchConsumerProProduct,
fetchMemoriesFeature,
} from "@repo/lib/queries"
import { fetchApiProProduct, fetchMemoriesFeature } from "@repo/lib/queries"
import { Button } from "@repo/ui/components/button"
import { ConnectAIModal } from "./connect-ai-modal"
import { HeadingH2Bold } from "@repo/ui/text/heading/heading-h2-bold"
Expand Down Expand Up @@ -74,7 +71,7 @@ function Menu({ id }: { id?: string }) {
const memoriesUsed = memoriesCheck?.usage ?? 0
const memoriesLimit = memoriesCheck?.included_usage ?? 0

const { data: proCheck } = fetchConsumerProProduct(autumn)
const { data: proCheck } = fetchApiProProduct(autumn)

useEffect(() => {
if (memoriesCheck) {
Expand Down
7 changes: 3 additions & 4 deletions apps/web/components/new/add-document/connections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ export function ConnectContent({ selectedProject }: ConnectContentProps) {
useEffect(() => {
if (!autumn.isLoading) {
setIsProUser(
autumn.customer?.products.some(
(product) => product.id === "consumer_pro",
) ?? false,
autumn.customer?.products.some((product) => product.id === "api_pro") ??
false,
)
}
}, [autumn.isLoading, autumn.customer])
Expand All @@ -70,7 +69,7 @@ export function ConnectContent({ selectedProject }: ConnectContentProps) {
setIsUpgrading(true)
try {
await autumn.attach({
productId: "consumer_pro",
productId: "api_pro",
successUrl: window.location.href,
})
} catch (error) {
Comment on lines 69 to 75

This comment was marked as outdated.

Expand Down
Loading
Loading