Beautiful, AI-native markdown IDE and LLM wiki
TypeScript 2nd-brainagent-skillsclaudecodexcompany-braindocsknowledge-knowledge-baseknowledge-managementllmllm-wikillm-wiki-karpathymarkdownmarkdown-editormdmdxnotespkmsecond-brainskills
chore(open-knowledge): remove dead docs SubscribeForm
sarah_inkeep6864c7dfed06
diff --git a/docs/src/app/d/[encoded]/splash-share-view.tsx b/docs/src/app/d/[encoded]/splash-share-view.tsxindex ad45c3d26..dc4834134 100644--- a/docs/src/app/d/[encoded]/splash-share-view.tsx+++ b/docs/src/app/d/[encoded]/splash-share-view.tsx@@ -93,7 +93,7 @@ export function SplashShareView({ encoded, view }: { encoded: string; view: OkSp</section><div className="relative z-10">- <SiteFooter showSubscribe={false} />+ <SiteFooter /></div></main>);@@ -149,7 +149,7 @@ export function SplashFallback({ heading }: { heading: string }) {</section><div className="relative z-10">- <SiteFooter showSubscribe={false} />+ <SiteFooter /></div></main>);diff --git a/docs/src/components/footer.tsx b/docs/src/components/footer.tsxindex 480ebf967..b802d258f 100644--- a/docs/src/components/footer.tsx+++ b/docs/src/components/footer.tsx@@ -3,7 +3,6 @@ import { DiscordIcon } from '@/components/icons/discord';import { GitHubIcon } from '@/components/icons/github';import { XIcon } from '@/components/icons/x';import { InkeepLogo } from '@/components/inkeep-logo';-import { SubscribeForm } from '@/components/subscribe-form';import { BRAND_ROUTE } from '@/lib/brand-assets';import { DISCORD_URL, GITHUB_URL, X_URL } from '@/lib/site';import { DotTexture } from './dot-texture';@@ -24,15 +23,10 @@ const legalLinks = [{ href: 'https://inkeep.com/policies/privacy', label: 'Privacy', external: true },];-export function SiteFooter({ showSubscribe = true }: { showSubscribe?: boolean }) {+export function SiteFooter() {return (<footer className="relative space-y-16 overflow-hidden px-6 py-10"><DotTexture variant="left" className="bottom-0 left-0 w-32 sm:w-60 lg:w-96" />- {showSubscribe ? (- <div className="container relative z-10 mx-auto">- <SubscribeForm />- </div>- ) : null}<div className="container relative z-10 mx-auto mt-8 grid grid-cols-1 items-center gap-6 min-[24rem]:grid-cols-[auto_auto] min-[24rem]:justify-between sm:grid-cols-3 sm:justify-normal"><div className="flex items-center justify-center gap-5 min-[24rem]:justify-start">{socialLinks.map(({ href, label, Icon }) => (diff --git a/docs/src/components/product-updates-form.tsx b/docs/src/components/product-updates-form.tsxindex 8d38ef98a..7b6e822fc 100644--- a/docs/src/components/product-updates-form.tsx+++ b/docs/src/components/product-updates-form.tsx@@ -13,8 +13,8 @@ const subscribeSchema = z.object({type SubscribeValues = z.infer<typeof subscribeSchema>;-// Compact variant of the marketing SubscribeForm, sized for the docs-// "On this page" TOC column. POSTs to /api/subscribe, which the microfrontends+// Compact email-capture form for the docs "On this page" TOC column. POSTs to+// /api/subscribe, which the microfrontends// group routes to the ok-marketing app (see docs/microfrontends.json).export function ProductUpdatesForm() {const [submitFailed, setSubmitFailed] = useState(false);diff --git a/docs/src/components/slide-page.tsx b/docs/src/components/slide-page.tsxindex bc5c4a987..2641556ea 100644--- a/docs/src/components/slide-page.tsx+++ b/docs/src/components/slide-page.tsx@@ -39,7 +39,7 @@ export function SlidePageShell({ children }: { children: ReactNode }) {</section><div className="relative z-10">- <SiteFooter showSubscribe={false} />+ <SiteFooter /></div></main>);diff --git a/docs/src/components/subscribe-form.tsx b/docs/src/components/subscribe-form.tsxdeleted file mode 100644index 7d9197d83..000000000--- a/docs/src/components/subscribe-form.tsx+++ /dev/null@@ -1,101 +0,0 @@-'use client';--import { zodResolver } from '@hookform/resolvers/zod';-import { useState } from 'react';-import { Controller, useForm } from 'react-hook-form';-import { z } from 'zod';-import { MarketingButton } from '@/components/marketing-button';-import { Field, FieldError, FieldLabel } from '@/components/ui/field';-import { Input } from '@/components/ui/input';--const subscribeSchema = z.object({- email: z.email({ message: 'Please enter a valid email address.' }),-});--type SubscribeValues = z.infer<typeof subscribeSchema>;--export function SubscribeForm() {- const [submitFailed, setSubmitFailed] = useState(false);- const [subscribed, setSubscribed] = useState(false);-- const form = useForm<SubscribeValues>({- resolver: zodResolver(subscribeSchema),- defaultValues: { email: '' },- });-- async function onSubmit(values: SubscribeValues) {- setSubmitFailed(false);- try {- const response = await fetch('/api/subscribe', {- method: 'POST',- headers: { 'content-type': 'application/json' },- body: JSON.stringify(values),- });- if (response.ok) {- form.reset();- setSubscribed(true);- } else {- setSubmitFailed(true);- }- } catch (err) {- console.error(- `[subscribe-form] fetch failed: ${err instanceof Error ? err.message : String(err)}`,- );- setSubmitFailed(true);- }- }-- if (subscribed) {- return (- <p className="text-sm text-slide-muted" role="status">- Thanks for subscribing. Watch your inbox for product updates.- </p>- );- }-- return (- <form onSubmit={form.handleSubmit(onSubmit)} className="flex w-full max-w-2xl flex-col gap-2">- <Controller- control={form.control}- name="email"- render={({ field, fieldState }) => (- <Field data-invalid={fieldState.invalid}>- <FieldLabel className="text-lg leading-tight tracking-tight" htmlFor={field.name}>- Stay in the loop- </FieldLabel>- <div className="relative h-14 w-full">- <Input- {...field}- id={field.name}- type="email"- inputMode="email"- autoComplete="email"- spellCheck={false}- placeholder="[email protected]"- aria-invalid={fieldState.invalid}- className="h-full w-full rounded-full border bg-fd-background pr-36 pl-6 text-gray-900 placeholder:text-slide-muted/60 focus-visible:ring-2 focus-visible:ring-slide-accent focus-visible:ring-offset-2 shadow-none"- />- <div className="absolute inset-y-0 right-2 flex items-center">- <MarketingButton- type="submit"- variant="primary"- size="md"- disabled={form.formState.isSubmitting}- className="h-10"- >- Subscribe- </MarketingButton>- </div>- </div>- <FieldError className="text-red-500" errors={[fieldState.error]} />- </Field>- )}- />- {submitFailed ? (- <p className="text-sm text-red-500" role="alert">- Something went wrong. Please try again.- </p>- ) : null}- </form>- );-}