Author SHA1 Message Date
gosangam 0334e03c3c feat: add webpush and sadhna tracker 2026-06-08 15:48:12 +05:30
gosangam ecb32d2e85 wip: sadhna streak 2026-06-07 22:32:34 +05:30
gosangam d5fb350652 fix: rybbit blocking using next rewrite 2026-06-07 00:52:49 +05:30
gosangam bcffe9684f feat: add websocket and analytics 2026-06-07 00:23:54 +05:30
gosangam 0db339254d fix: text selection 2026-06-05 14:13:13 +05:30
gosangam 684ea2ae97 feat: social graph features 2026-06-04 19:30:50 +05:30
gosangam 0f433c5708 fix: audio player 2026-06-03 23:01:33 +05:30
gosangam 48dd450a15 fix: post reshare and audio player enhancements 2026-06-03 14:41:34 +05:30
gosangam ddc6d3c7bf feat: avatar opener 2026-06-03 00:49:58 +05:30
gosangam fd333159f6 fix: font size revert 2026-06-02 23:51:42 +05:30
gosangam 0bcda5a791 fix: ui fixes minor 2026-06-02 23:14:34 +05:30
gosangam c89cc8b779 fix: tailwind fix 2026-06-02 22:57:22 +05:30
gosangam ec67ddf852 feat: social auth account linking 2026-06-02 22:55:09 +05:30
gosangam 086f1dd8aa fix: type fix 2026-06-02 19:38:23 +05:30
gosangam b61c3df473 feat: add google auth 2026-06-02 18:44:43 +05:30
gosangam cb70a84dd5 feat: add password reset email 2026-06-02 18:37:38 +05:30
gosangam dc01d09f09 login with facebook added 2026-06-02 15:21:47 +05:30
gosangam 84d86c45b5 post cards overlay enhancements 2026-06-02 15:13:02 +05:30
gosangam 4d45e20cb1 post cards overlay enhancements 2026-06-02 15:02:17 +05:30
gosangam e72679d1b6 oauth hidden 2026-06-02 12:20:50 +05:30
gosangam 91d5d272d2 feat: add policy pages 2026-06-02 01:57:08 +05:30
gosangam 0352cb2003 search target fix 2026-06-02 00:42:26 +05:30
gosangam 8a8ce24479 fix: reshared posts should be shown in feed 2026-05-31 14:54:48 +05:30
gosangam 7d76afe102 collection drawer ui fix 2026-05-31 11:41:18 +05:30
gosangam 8c1f3a1b7b ui fixes in bottom nav 2026-05-31 11:23:55 +05:30
gosangam 3624c19d2d search page ui fixes 2026-05-31 11:19:35 +05:30
gosangam 5988d02373 search page ui fixes 2026-05-31 11:16:50 +05:30
gosangam 17fb83087f search page ui fixes 2026-05-31 11:09:43 +05:30
gosangam 489adb0eeb feat: send icon fix 2026-05-31 10:53:21 +05:30
gosangam d8de0a18e5 feat: add user search 2026-05-31 10:43:30 +05:30
gosangam c20d6bffe8 feat: share sheet update 2026-05-31 10:25:39 +05:30
gosangam 01bcc057fa feat: share sheet update 2026-05-31 10:24:32 +05:30
gosangam 8bd82a0e8a feat: image compress before upload 2026-05-31 09:56:53 +05:30
gosangam 5506afa758 feat: share post to other apps 2026-05-31 08:44:29 +05:30
gosangam 88f1b08675 feat: share post to other apps 2026-05-31 08:20:06 +05:30
gosangam 336f478f8b feat: share post to other apps 2026-05-31 08:04:46 +05:30
gosangam 03b8f85e06 feat: add reading settings sync 2026-05-31 07:07:50 +05:30
gosangam 0ff8005df2 ui fixes 2026-05-31 06:50:05 +05:30
gosangam 0ae3334d98 type fixes 2026-05-31 00:35:00 +05:30
gosangam ec20eb996b ui enhancements 2026-05-31 00:26:05 +05:30
250 changed files with 13766 additions and 10205 deletions
+18
View File
@@ -0,0 +1,18 @@
# BFF API Server (server-side fetches)
BFF_URL=http://localhost:8080
# BFF API Server (browser-side fetches; must be publicly reachable in prod)
NEXT_PUBLIC_BFF_URL=http://localhost:8080
# RTF Viewer (development only)
ALLOW_RTF=true
NEXT_PUBLIC_OAUTH_ENABLED=true
# SOKETI
NEXT_PUBLIC_SOKETI_KEY=spsays
NEXT_PUBLIC_SOKETI_HOST=ws.prabhupadasays.org
NEXT_PUBLIC_SOKETI_PORT=443
NEXT_PUBLIC_SOKETI_FORCE_TLS=true
# Analytics
NEXT_PUBLIC_RYBBIT_HOST=https://analytics.krispire.cloud
+1 -1
View File
@@ -31,7 +31,7 @@ yarn-error.log*
.pnpm-debug.log* .pnpm-debug.log*
# env files (can opt-in for committing if needed) # env files (can opt-in for committing if needed)
.env* .env
# vercel # vercel
.vercel .vercel
+60
View File
@@ -0,0 +1,60 @@
"use client";
/**
* Shared layout for the auth pages (login, signup, forgot-password,
* reset-password). Provides the centered card frame so each page only
* has to render its own form.
*
* Also gates the routes: a signed-in user landing on any /login, /signup,
* etc. URL is bounced to /u/me (or the `next` query param if present).
* The check happens client-side because auth state lives in
* AuthProvider — there's no server-side cookie inspection here yet, and
* the redirect is purely cosmetic (logged-in users don't gain anything
* from re-seeing these forms, and signing in over an existing session
* would just no-op).
*/
import { Suspense, useEffect } from "react";
import { useRouter, useSearchParams } from "next/navigation";
import { useAuth } from "@/components/auth/auth-provider";
export default function AuthLayout({
children,
}: {
children: React.ReactNode;
}) {
// useSearchParams forces a CSR bailout during prerender, so Next.js
// requires a Suspense boundary anywhere it's read. The gate is the
// only consumer here — isolate it so the rest of the layout can still
// SSR normally.
return (
<main className="flex items-center justify-center px-4 py-12 min-h-[90vh]">
<Suspense fallback={<AuthShell>{children}</AuthShell>}>
<AuthGate>{children}</AuthGate>
</Suspense>
</main>
);
}
function AuthShell({ children }: { children: React.ReactNode }) {
return <div className="w-full max-w-md">{children}</div>;
}
function AuthGate({ children }: { children: React.ReactNode }) {
const { user, loading } = useAuth();
const router = useRouter();
const params = useSearchParams();
useEffect(() => {
if (loading || !user) return;
const next = params.get("next");
router.replace(next && next.startsWith("/") ? next : "/u/me");
}, [loading, user, router, params]);
// Don't flash the form for an instant before the redirect fires.
if (!loading && user) {
return <p className="text-sm text-muted-foreground">Redirecting…</p>;
}
return <AuthShell>{children}</AuthShell>;
}
+63
View File
@@ -0,0 +1,63 @@
"use client";
import { Suspense } from "react";
import { useRouter, useSearchParams } from "next/navigation";
import { AuthCard, AuthFooterLink } from "@/components/auth/auth-card";
import { LoginForm } from "@/components/auth/login-form";
function LoginContent() {
const router = useRouter();
const params = useSearchParams();
const next = params.get("next") ?? "/u/me";
const oauthError = params.get("oauth_error");
return (
<AuthCard
title="Welcome back"
description="Log in to access your bookmarks, notes, and collections."
footer={
<AuthFooterLink prefix="No account?" href="/signup" label="Create one" />
}
>
{oauthError ? (
<p className="text-sm text-destructive">
{oauthErrorMessage(oauthError)}
</p>
) : null}
<LoginForm
oauthNext={next}
onSuccess={() => {
router.push(next);
router.refresh();
}}
/>
</AuthCard>
);
}
function oauthErrorMessage(code: string): string {
switch (code) {
case "invalid_state":
case "missing_state":
return "Your sign-in link expired. Please try again.";
case "exchange_failed":
case "profile_failed":
return "Sign-in failed while talking to the provider. Please try again.";
case "unknown_provider":
return "That sign-in provider isn't configured. Please use email or another method.";
case "unavailable":
return "Social sign-in is temporarily unavailable. Please use email/password.";
case "server":
return "Something went wrong on our side. Please try again in a moment.";
default:
return "Sign-in failed. Please try again.";
}
}
export default function LoginPage() {
return (
<Suspense fallback={null}>
<LoginContent />
</Suspense>
);
}
@@ -15,6 +15,7 @@ export default function SignUpPage() {
} }
> >
<SignUpForm <SignUpForm
oauthNext="/u/me"
onSuccess={() => { onSuccess={() => {
router.push("/u/me"); router.push("/u/me");
router.refresh(); router.refresh();
@@ -3,7 +3,7 @@ import Link from "next/link";
import { PageHeader } from "@/components/page-header"; import { PageHeader } from "@/components/page-header";
import { notFound } from "next/navigation"; import { notFound } from "next/navigation";
import { getBookMeta, getSingleVerse, getChapterVerseIndex } from "@/lib/api"; import { getBookMeta, getSingleVerse, getChapterVerseIndex } from "@/lib/api";
import { ChapterViewer } from "@/app/books/chapter-viewer"; import { ChapterViewer } from "@/app/(app)/books/chapter-viewer";
import type { MobileNavGroup } from "@/components/mobile-nav"; import type { MobileNavGroup } from "@/components/mobile-nav";
import { ogForVerse, extractQuoteFromHl, buildOgMeta } from "@/lib/og"; import { ogForVerse, extractQuoteFromHl, buildOgMeta } from "@/lib/og";
@@ -11,7 +11,7 @@ import {
type VerseIndexEntry, type VerseIndexEntry,
type VerseRecord, type VerseRecord,
} from "@/lib/api"; } from "@/lib/api";
import { ChapterViewer } from "@/app/books/chapter-viewer"; import { ChapterViewer } from "@/app/(app)/books/chapter-viewer";
import type { MobileNavGroup } from "@/components/mobile-nav"; import type { MobileNavGroup } from "@/components/mobile-nav";
import { ogForVerse, extractQuoteFromHl, buildOgMeta } from "@/lib/og"; import { ogForVerse, extractQuoteFromHl, buildOgMeta } from "@/lib/og";
@@ -5,7 +5,7 @@ import Link from "next/link";
import { PageHeader } from "@/components/page-header"; import { PageHeader } from "@/components/page-header";
import { notFound } from "next/navigation"; import { notFound } from "next/navigation";
import { getBookMeta, getSingleVerse, getChapterVerseIndex } from "@/lib/api"; import { getBookMeta, getSingleVerse, getChapterVerseIndex } from "@/lib/api";
import { ChapterViewer } from "@/app/books/chapter-viewer"; import { ChapterViewer } from "@/app/(app)/books/chapter-viewer";
import type { MobileNavGroup } from "@/components/mobile-nav"; import type { MobileNavGroup } from "@/components/mobile-nav";
import { ogForVerse, extractQuoteFromHl, buildOgMeta } from "@/lib/og"; import { ogForVerse, extractQuoteFromHl, buildOgMeta } from "@/lib/og";
@@ -10,7 +10,7 @@ import {
type VerseIndexEntry, type VerseIndexEntry,
type VerseRecord, type VerseRecord,
} from "@/lib/api"; } from "@/lib/api";
import { ChapterViewer } from "@/app/books/chapter-viewer"; import { ChapterViewer } from "@/app/(app)/books/chapter-viewer";
import type { MobileNavGroup } from "@/components/mobile-nav"; import type { MobileNavGroup } from "@/components/mobile-nav";
import type { Metadata } from "next"; import type { Metadata } from "next";
import { ogForVerse, extractQuoteFromHl, buildOgMeta } from "@/lib/og"; import { ogForVerse, extractQuoteFromHl, buildOgMeta } from "@/lib/og";
@@ -14,7 +14,7 @@ import {
type VerseRecord, type VerseRecord,
} from "@/lib/api"; } from "@/lib/api";
import { ogForVerse, extractQuoteFromHl, buildOgMeta } from "@/lib/og"; import { ogForVerse, extractQuoteFromHl, buildOgMeta } from "@/lib/og";
import { ChapterViewer } from "@/app/books/chapter-viewer"; import { ChapterViewer } from "@/app/(app)/books/chapter-viewer";
import type { MobileNavGroup } from "@/components/mobile-nav"; import type { MobileNavGroup } from "@/components/mobile-nav";
type NbsMeta = { type NbsMeta = {
@@ -5,7 +5,7 @@ import Link from "next/link";
import { PageHeader } from "@/components/page-header"; import { PageHeader } from "@/components/page-header";
import { notFound } from "next/navigation"; import { notFound } from "next/navigation";
import { getBookMeta, getSingleVerse, getChapterVerseIndex } from "@/lib/api"; import { getBookMeta, getSingleVerse, getChapterVerseIndex } from "@/lib/api";
import { ChapterViewer } from "@/app/books/chapter-viewer"; import { ChapterViewer } from "@/app/(app)/books/chapter-viewer";
import type { MobileNavGroup } from "@/components/mobile-nav"; import type { MobileNavGroup } from "@/components/mobile-nav";
import { ogForVerse, extractQuoteFromHl, buildOgMeta } from "@/lib/og"; import { ogForVerse, extractQuoteFromHl, buildOgMeta } from "@/lib/og";
@@ -3,7 +3,7 @@ import Link from "next/link";
import { PageHeader } from "@/components/page-header"; import { PageHeader } from "@/components/page-header";
import { notFound } from "next/navigation"; import { notFound } from "next/navigation";
import { getBookMeta, getSingleVerse, getChapterVerseIndex } from "@/lib/api"; import { getBookMeta, getSingleVerse, getChapterVerseIndex } from "@/lib/api";
import { ChapterViewer } from "@/app/books/chapter-viewer"; import { ChapterViewer } from "@/app/(app)/books/chapter-viewer";
import type { MobileNavGroup } from "@/components/mobile-nav"; import type { MobileNavGroup } from "@/components/mobile-nav";
import { ogForVerse, extractQuoteFromHl, buildOgMeta } from "@/lib/og"; import { ogForVerse, extractQuoteFromHl, buildOgMeta } from "@/lib/og";
@@ -6,7 +6,6 @@ import { notFound } from "next/navigation";
import { import {
getVaContent, getVaContent,
getVaSidebarItems, getVaSidebarItems,
type VaChapter,
type VaSidebarItem, type VaSidebarItem,
} from "@/lib/va"; } from "@/lib/va";
import { getProseChapter } from "@/lib/api"; import { getProseChapter } from "@/lib/api";
@@ -61,8 +60,6 @@ export default async function VaChapterPage({
const next = const next =
currentIdx < sidebarItems.length - 1 ? sidebarItems[currentIdx + 1] : null; currentIdx < sidebarItems.length - 1 ? sidebarItems[currentIdx + 1] : null;
const chapterNum = (content as VaChapter).chapter;
return ( return (
<div className="min-h-screen bg-background"> <div className="min-h-screen bg-background">
<PageHeader sticky> <PageHeader sticky>
@@ -7,7 +7,6 @@
*/ */
import { use, useEffect, useState } from "react"; import { use, useEffect, useState } from "react";
import Link from "next/link";
import { notFound } from "next/navigation"; import { notFound } from "next/navigation";
import { Globe, Lock, FolderPlus } from "lucide-react"; import { Globe, Lock, FolderPlus } from "lucide-react";
import { import {
@@ -29,7 +28,6 @@ export default function PublicCollectionPage(props: {
useEffect(() => { useEffect(() => {
let cancelled = false; let cancelled = false;
setLoading(true);
collections collections
.get(id) .get(id)
.then(({ collection, posts }) => { .then(({ collection, posts }) => {
+51
View File
@@ -0,0 +1,51 @@
"use client";
/**
* /chat — placeholder for the Kautilya AI study companion.
*
* The actual chat surface (an AI tuned on Śrīla Prabhupāda's books,
* letters, and lectures) isn't built yet. Until it ships we render a
* coming-soon page so the nav entries (sidebar + bottom bar) have a
* real route to point at. When the feature lands, swap this file for
* the real chat UI — nav wiring stays the same.
*/
import Link from "next/link";
import { Compass } from "lucide-react";
import { KautilyaIcon } from "@/components/selection-toolbar/shared";
export default function ChatPage() {
return (
<main className="flex-1 max-w-2xl w-full mx-auto px-4 sm:px-6 py-16 sm:py-24">
<div className="flex flex-col items-center text-center gap-5">
<span
aria-hidden
className="inline-flex size-14 items-center justify-center rounded-full bg-primary/10 text-primary"
>
<KautilyaIcon className="size-7" />
</span>
<h1 className="font-[family-name:var(--font-title)] font-semibold text-2xl sm:text-3xl text-foreground leading-tight text-balance">
Kautilya is coming soon
</h1>
<p className="text-sm text-muted-foreground leading-relaxed max-w-md">
An AI study companion tuned on Śrīla Prabhupāda&apos;s books,
letters, and lectures — ask any question, get answers grounded in
his own words with citations back to the source passages. Until
it lands, the full library is already waiting.
</p>
<div className="flex flex-col sm:flex-row items-center gap-3 mt-2">
<Link
href="/search"
className="inline-flex items-center justify-center gap-2 rounded-lg bg-primary text-primary-foreground px-5 h-11 text-sm font-medium hover:bg-primary/90 transition-colors min-w-[12rem]"
>
<Compass className="size-4" />
Explore Knowledgebase
</Link>
</div>
</div>
</main>
);
}

Some files were not shown because too many files have changed in this diff Show More