Skip to content

OpenStock is an open-source alternative to expensive market platforms. Track real-time prices, set personalized alerts, and explore detailed company insights — built openly, for everyone, forever free.

feat: changelog timeline, and a banner that always opens the latest update

ravixalgorithm1b2d36fa9337
diff --git a/app/(marketing)/changelog/page.tsx b/app/(marketing)/changelog/page.tsx
new file mode 100644
index 0000000..a09183a
--- /dev/null
+++ b/app/(marketing)/changelog/page.tsx
@@ -0,0 +1,84 @@
+import Link from "next/link";
+import PageHero from "@/components/marketing/PageHero";
+import { REPO_URL } from "@/lib/constants";
+import { RELEASES } from "@/lib/changelog";
+import { cn } from "@/lib/utils";
+
+export const metadata = {
+ title: 'Changelog',
+ description: 'Everything that changed in OpenStock, release by release, since it started in September 2025.',
+};
+
+// "#123" in an item becomes a link to that pull request
+const ItemText = ({ text }: { text: string }) => (
+ <>
+ {text.split(/\s*(#\d+)/).map((part, i) =>
+ /^#\d+$/.test(part) ? (
+ <a key={i} href={`${REPO_URL}/pull/${part.slice(1)}`} target="_blank" rel="noreferrer" className="mono ml-1.5 text-[12px] text-faint transition-colors hover:text-brand-ink">
+ {part}
+ </a>
+ ) : (
+ <span key={i}>{part}</span>
+ ),
+ )}
+ </>
+);
+
+export default function ChangelogPage() {
+ return (
+ <>
+ <PageHero
+ kicker="Changelog"
+ title="Everything that changed in OpenStock."
+ sub="Every release since we started in September 2025, in plain words. Each change links to its pull request on GitHub."
+ >
+ <Link href="/dashboard" className="btn btn-primary h-11 px-5 text-[15px]">Open dashboard</Link>
+ <a href={`${REPO_URL}/pulls?q=is%3Apr+is%3Amerged`} target="_blank" rel="noreferrer" className="btn btn-ghost h-11 px-5 text-[15px]">All merged pull requests</a>
+ </PageHero>
+
+ <ol className="mx-auto mt-16 max-w-[1200px] px-5">
+ {RELEASES.map((release, i) => {
+ const latest = i === 0;
+ const last = i === RELEASES.length - 1;
+ return (
+ <li key={release.id} className="grid gap-3 md:grid-cols-[150px_minmax(0,1fr)] md:gap-8">
+ <div className="md:sticky md:top-24 md:self-start md:pt-0.5 md:text-right">
+ <p className="kicker text-foreground">{release.date}</p>
+ {latest && <span className="pill is-brand mt-2">Latest</span>}
+ </div>
+
+ {/* The timeline: a line down the left of each release, with a dot at its title */}
+ <section aria-labelledby={`release-${release.id}`} className={cn('relative pl-8', !last && 'pb-16')}>
+ {!last && <span className="absolute left-[5px] top-3 bottom-0 w-px bg-line" aria-hidden />}
+ <span
+ className={cn('absolute left-0 top-1.5 size-[11px] rounded-full ring-4 ring-page', latest ? 'bg-brand' : 'bg-line-strong')}
+ aria-hidden
+ />
+ <h2 id={`release-${release.id}`} className="text-[24px] font-bold leading-tight tracking-[-0.03em] md:text-[28px]">{release.title}</h2>
+ <p className="mt-1.5 text-[15px] text-muted-foreground">{release.summary}.</p>
+
+ <div className={cn('mt-6 grid gap-3', release.sections.length > 1 && 'lg:grid-cols-2')}>
+ {release.sections.map((section) => (
+ <div key={section.title} className="hatch">
+ <div className="card h-full p-5">
+ <h3 className="kicker">{section.title}</h3>
+ <ul className="mt-3 flex flex-col gap-2.5 text-[14px] leading-relaxed">
+ {section.items.map((item) => (
+ <li key={item} className="flex gap-2.5">
+ <span className="mt-[9px] size-1 flex-none rounded-full bg-brand" aria-hidden />
+ <span className="text-muted-foreground"><ItemText text={item} /></span>
+ </li>
+ ))}
+ </ul>
+ </div>
+ </div>
+ ))}
+ </div>
+ </section>
+ </li>
+ );
+ })}
+ </ol>
+ </>
+ );
+}
diff --git a/app/(marketing)/layout.tsx b/app/(marketing)/layout.tsx
index 5222db7..519a692 100644
--- a/app/(marketing)/layout.tsx
+++ b/app/(marketing)/layout.tsx
@@ -15,7 +15,7 @@ const FOOTER_LINKS = [
{ href: '/terms', label: 'Terms' },
{ href: '/sponsor', label: 'Sponsor' },
{ href: '/love', label: 'Wall of love' },
- { href: '/whats-new', label: 'What’s new' },
+ { href: '/changelog', label: 'Changelog' },
{ href: REPO_URL, label: 'GitHub' },
{ href: DISCORD_URL, label: 'Discord' },
{ href: 'https://www.linkedin.com/company/opendevsociety-in/', label: 'LinkedIn' },
diff --git a/app/(marketing)/whats-new/page.tsx b/app/(marketing)/whats-new/page.tsx
deleted file mode 100644
index 58de590..0000000
--- a/app/(marketing)/whats-new/page.tsx
+++ /dev/null
@@ -1,53 +0,0 @@
-import Link from "next/link";
-import { Check } from "lucide-react";
-import PageHero from "@/components/marketing/PageHero";
-import { REPO_URL } from "@/lib/constants";
-import { UPDATES } from "@/lib/updates";
-
-export const metadata = {
- title: 'What’s new',
- description: 'What changed in OpenStock, release by release.',
-};
-
-export default function WhatsNewPage() {
- return (
- <>
- <PageHero
- kicker="What’s new"
- title="What changed in OpenStock."
- sub="Every release, in plain words. OpenStock is open source, so each change is also on GitHub."
- >
- <Link href="/dashboard" className="btn btn-primary h-11 px-5 text-[15px]">Open dashboard</Link>
- <a href={`${REPO_URL}/pulls?q=is%3Apr+is%3Amerged`} target="_blank" rel="noreferrer" className="btn btn-ghost h-11 px-5 text-[15px]">Every change on GitHub</a>
- </PageHero>
-
- <div className="mx-auto mt-16 flex max-w-[1200px] flex-col gap-16 px-5">
- {UPDATES.map((update) => (
- <section key={update.id} aria-labelledby={`update-${update.id}`}>
- <p className="kicker text-brand-ink">{update.date}</p>
- <h2 id={`update-${update.id}`} className="mt-2 text-[28px] font-bold tracking-[-0.04em] md:text-[34px]">{update.title}</h2>
- <p className="mt-2 max-w-2xl text-[16px] text-muted-foreground">{update.headline}.</p>
-
- <div className="mt-8 grid gap-3 md:grid-cols-2">
- {update.sections.map((section) => (
- <div key={section.title} className="hatch">
- <div className="card h-full p-5">
- <h3 className="text-[16px] font-bold">{section.title}</h3>
- <ul className="mt-3 flex flex-col gap-2.5 text-[14px] leading-relaxed">
- {section.items.map((item) => (
- <li key={item} className="flex gap-2.5">
- <Check className="mt-1 size-4 flex-none text-brand-ink" />
- <span className="text-muted-foreground">{item}</span>
- </li>
- ))}
- </ul>
- </div>
- </div>
- ))}
- </div>
- </section>
- ))}
- </div>
- </>
- );
-}
diff --git a/components/UpdateBanner.tsx b/components/UpdateBanner.tsx
index 81d39cf..62fd252 100644
--- a/components/UpdateBanner.tsx
+++ b/components/UpdateBanner.tsx
@@ -1,45 +1,53 @@
'use client';
-import { useEffect, useState } from "react";
import Link from "next/link";
-import { ArrowRight, X } from "lucide-react";
-import { LATEST_UPDATE } from "@/lib/updates";
+import { ArrowRight, Check } from "lucide-react";
+import { Dialog, DialogClose, DialogContent, DialogDescription, DialogTitle, DialogTrigger } from "@/components/ui/dialog";
+import { LATEST_RELEASE } from "@/lib/changelog";
import { cn } from "@/lib/utils";
-const STORAGE_KEY = 'openstock:update-seen';
-
-// Announces the latest release until it's dismissed or opened. Rendered only after mount, so people who already
-// closed it never see it flash in.
+// Always shows the latest release. The whole strip opens a short summary; the full history is on /changelog.
export default function UpdateBanner({ className }: { className?: string }) {
- const [visible, setVisible] = useState(false);
- useEffect(() => {
- try { setVisible(localStorage.getItem(STORAGE_KEY) !== LATEST_UPDATE.id); } catch { setVisible(true); }
- }, []);
-
- if (!visible) return null;
-
- const markSeen = () => {
- setVisible(false);
- try { localStorage.setItem(STORAGE_KEY, LATEST_UPDATE.id); } catch { /* private mode: hidden for this visit */ }
- };
-
return (
- <div
- role="region"
- aria-label="What's new"
- className={cn('flex items-center gap-2.5 rounded-[12px] bg-brand-soft/50 py-1.5 pl-2 pr-1.5 text-[13px] shadow-[inset_0_0_0_1px_oklch(0.8_0.13_176/0.25)]', className)}
- >
- <span className="pill is-brand shrink-0">New</span>
- <p className="min-w-0 flex-1 truncate">
- <span className="font-semibold text-foreground">{LATEST_UPDATE.title}:</span>{' '}
- <span className="text-muted-foreground">{LATEST_UPDATE.headline}</span>
- </p>
- <Link href="/whats-new" onClick={markSeen} className="flex shrink-0 items-center gap-1 font-semibold text-brand-ink hover:underline">
- What’s new <ArrowRight className="size-3.5" />
- </Link>
- <button type="button" onClick={markSeen} className="icon-btn size-7 shrink-0" aria-label="Dismiss update banner" title="Dismiss">
- <X className="size-3.5" />
- </button>
- </div>
+ <Dialog>
+ <DialogTrigger
+ className={cn(
+ 'group flex w-full items-center gap-2.5 rounded-[12px] bg-brand-soft/50 py-1.5 pl-2 pr-3 text-left text-[13px] shadow-[inset_0_0_0_1px_oklch(0.8_0.13_176/0.25)] transition-colors hover:bg-brand-soft/80',
+ className,
+ )}
+ >
+ <span className="pill is-brand shrink-0">New</span>
+ <span className="min-w-0 flex-1 truncate">
+ <span className="font-semibold text-foreground">{LATEST_RELEASE.title}:</span>{' '}
+ <span className="text-muted-foreground">{LATEST_RELEASE.summary}</span>
+ </span>
+ <span className="flex shrink-0 items-center gap-1 font-semibold text-brand-ink">
+ <span className="max-sm:hidden">See what’s new</span>
+ <ArrowRight className="size-3.5 transition-transform group-hover:translate-x-0.5" />
+ </span>
+ </DialogTrigger>
+
+ <DialogContent className="sm:max-w-md">
+ <div>
+ <p className="kicker text-brand-ink">{LATEST_RELEASE.date}</p>
+ <DialogTitle className="mt-1.5 text-[22px] font-bold tracking-[-0.03em]">{LATEST_RELEASE.title}</DialogTitle>
+ <DialogDescription className="mt-1 text-[14px] text-muted-foreground">{LATEST_RELEASE.summary}.</DialogDescription>
+ </div>
+ <ul className="flex flex-col gap-2.5 text-[14px] leading-relaxed">
+ {(LATEST_RELEASE.highlights ?? []).map((item) => (
+ <li key={item} className="flex gap-2.5">
+ <Check className="mt-1 size-4 flex-none text-brand-ink" />
+ <span>{item}</span>
+ </li>
+ ))}
+ </ul>
+ {/* Closes the modal too: the banner stays mounted across navigations */}
+ <DialogClose asChild>
+ <Link href="/changelog" className="btn btn-primary h-10 w-full">
+ Read the full changelog <ArrowRight />
+ </Link>
+ </DialogClose>
+ </DialogContent>
+ </Dialog>
);
}
diff --git a/lib/changelog.ts b/lib/changelog.ts
new file mode 100644
index 0000000..87b8126
--- /dev/null
+++ b/lib/changelog.ts
@@ -0,0 +1,217 @@
+// OpenStock's changelog, newest first. The banner and its modal show RELEASES[0]; /changelog shows the whole timeline.
+// Write "#123" in an item to link that pull request.
+export type Release = {
+ id: string;
+ date: string;
+ title: string;
+ summary: string;
+ highlights?: string[]; // the short list in the banner's modal (latest release only)
+ sections: { title: string; items: string[] }[];
+};
+
+export const RELEASES: Release[] = [
+ {
+ id: '2026-10-18',
+ date: '18 Oct 2026',
+ title: 'October update',
+ summary: 'Draw on charts, keep your indicators, and safer sign-in',
+ highlights: [
+ 'Draw trend lines, Fibonacci and text on any stock chart.',
+ 'The indicators you pick stay on every chart.',
+ 'Tickers like M&M, Bajaj-Auto and Ericsson B now chart correctly.',
+ 'Sign-in and password reset are rate-limited, and a reset signs out your other devices.',
+ 'A prebuilt Docker image for self-hosting.',
+ ],
+ sections: [
+ {
+ title: 'Charts',
+ items: [
+ 'Draw on the stock chart: trend lines, horizontal lines, Fibonacci, shapes and text. #118',
+ 'The indicators you pick (SMA, EMA, Bollinger Bands, VWAP, RSI, MACD, Stochastic, ATR) stay on every chart, after a reload and in fullscreen. #119',
+ 'Tickers with a - or & now chart correctly: M&M and Bajaj-Auto in India, Ericsson B in Stockholm, Novo Nordisk B in Copenhagen. #117',
+ ],
+ },
+ {
+ title: 'Watchlist',
+ items: [
+ 'Watchlists hold up to 50 stocks, and you’re told when yours is full. #127',
+ 'The Watching list in the sidebar scrolls on its own instead of pushing the page. #110',
+ ],
+ },
+ {
+ title: 'Security',
+ items: [
+ 'Sign-in, sign-up and password reset are rate-limited, so nobody can guess passwords or flood inboxes. #126',
+ 'Resetting your password signs you out on every other device. #125',
+ 'Welcome emails can no longer carry links or markup injected at sign-up. #122',
+ 'A background job no longer risks emailing the whole newsletter list, and subscriber addresses stay out of the logs. #120',
+ 'Next.js security update covering about 30 advisories. #121',
+ ],
+ },
+ {
+ title: 'Self-hosting',
+ items: [
+ 'A prebuilt Docker image for amd64 and arm64: ghcr.io/open-dev-society/openstock, on Node 22 LTS. #128',
+ 'Docker builds need no database or secrets, and no key is stored in the image. #123',
+ 'docker compose no longer publishes MongoDB on your network, and its password comes from .env. #124',
+ 'One-click deploys on RepoCloud, ZopDay and Railway. #111 #115 #94',
+ ],
+ },
+ {
+ title: 'Community',
+ items: [
+ 'A Wall of love: our sponsors and supporters, and the posts, videos and articles people have made about OpenStock.',
+ 'Orbit and RapidProxy joined as sponsors.',
+ ],
+ },
+ ],
+ },
+ {
+ id: '2026-09-25',
+ date: '25 Sep 2026',
+ title: 'The redesign',
+ summary: 'A new look, a public landing page, more markets and a lot of fixes',
+ sections: [
+ {
+ title: 'New',
+ items: [
+ 'A redesigned app: floating shell, browser-style tabs and a warmer palette. #106',
+ 'A public landing page with a live NYSE session dial, and a Sponsor page. #106',
+ 'More markets on the dashboard: US, India, Germany, Canada, Australia, Crypto and Forex. #106',
+ 'A profile page to edit your details, see connected sign-ins and change your password, and sign-in with Google or GitHub. #106',
+ ],
+ },
+ {
+ title: 'Changed',
+ items: [
+ 'Quotes refresh hourly for everyone on the free site. #106',
+ 'Price alerts are now part of OpenStock Cloud and self-hosting.',
+ 'Server functions run in Mumbai, next to the database, so pages respond faster.',
+ ],
+ },
+ {
+ title: 'Fixed',
+ items: [
+ 'Watchlist and alert changes are tied to the signed-in user; before, one user could change another’s. #106',
+ 'Welcome emails, price alerts and the weekly digest run again, and password reset completes. #106',
+ 'Pages no longer hang when market data is slow, and email addresses with + are accepted. #106',
+ 'Charts no longer get stuck on exchanges TradingView blocks, or on Hong Kong stocks.',
+ 'A clearer environment check for self-hosters. #104',
+ ],
+ },
+ ],
+ },
+ {
+ id: '2026-08',
+ date: 'Jun – Aug 2026',
+ title: 'Summer fixes',
+ summary: 'A market support guide, sturdier emails and a newer AI model',
+ sections: [
+ {
+ title: 'Changes',
+ items: [
+ 'A Market Support guide explaining which exchanges chart, quote and alert, and why. #84',
+ 'Email features are optional: the app runs without mail settings, and warning messages no longer show garbled characters. #85',
+ 'Personalised emails use MiniMax’s newer M3 model by default. #87',
+ ],
+ },
+ ],
+ },
+ {
+ id: '2026-05',
+ date: 'Apr – May 2026',
+ title: 'Password reset',
+ summary: 'Reset your password, see the password rules as you type, and better search',
+ sections: [
+ {
+ title: 'Changes',
+ items: [
+ 'Forgot your password? Reset it by email. #71',
+ 'Sign-up shows the password rules and ticks them off as you type. #79',
+ 'Charts show the right time zone. #72',
+ 'Search shows the correct exchange and company details. #73',
+ ],
+ },
+ ],
+ },
+ {
+ id: '2026-03',
+ date: 'Mar 2026',
+ title: 'Sentiment and 40+ exchanges',
+ summary: 'What the crowd thinks, and many more markets',
+ sections: [
+ {
+ title: 'Changes',
+ items: [
+ 'Sentiment on every stock page: buzz and bullishness from Reddit, X, news and Polymarket. #64',
+ 'Charts for 40+ international exchanges. #65',
+ 'MiniMax as an alternative AI provider for personalised emails. #61',
+ 'Updated dependencies and background jobs. #63',
+ ],
+ },
+ ],
+ },
+ {
+ id: '2026-02',
+ date: 'Feb 2026',
+ title: 'China and Hong Kong charts',
+ summary: 'Shanghai, Shenzhen and Hong Kong stocks chart correctly',
+ sections: [
+ {
+ title: 'Changes',
+ items: ['Shanghai, Shenzhen and Hong Kong tickers are converted to TradingView’s format, so their charts load. #57'],
+ },
+ ],
+ },
+ {
+ id: '2026-01',
+ date: 'Jan 2026',
+ title: 'Watchlist, alerts and news',
+ summary: 'Save stocks, get alerted, and read the news that matters to you',
+ sections: [
+ {
+ title: 'New',
+ items: [
+ 'A Watchlist page to save stocks and follow their prices, sortable by symbol. #40 #46',
+ 'Price alerts when a stock goes above or below your target. #40',
+ 'A news feed for the stocks on your watchlist. #40',
+ 'Fullscreen charts. #45',
+ 'About, Help and API docs pages, and Siray.ai as a fallback AI provider. #40',
+ ],
+ },
+ ],
+ },
+ {
+ id: '2025-12',
+ date: 'Dec 2025',
+ title: 'Security and support',
+ summary: 'A critical framework fix and a way to support the project',
+ sections: [
+ {
+ title: 'Changes',
+ items: [
+ 'Fixed a critical React Server Components vulnerability. #30',
+ 'Vercel Web Analytics. #31',
+ 'A way to donate to the project. #32',
+ ],
+ },
+ ],
+ },
+ {
+ id: '2025-10',
+ date: 'Oct 2025',
+ title: 'OpenStock launches',
+ summary: 'Free, open-source market tracking for everyone',
+ sections: [
+ {
+ title: 'Launch',
+ items: [
+ 'Started on 28 Sep 2025 and first deployed on 4 Oct 2025: accounts, stock search and a TradingView-powered dashboard. #1 #9',
+ 'Docker and Docker Compose support. #17',
+ ],
+ },
+ ],
+ },
+];
+
+export const LATEST_RELEASE = RELEASES[0];
diff --git a/lib/updates.ts b/lib/updates.ts
deleted file mode 100644
index aa0314f..0000000
--- a/lib/updates.ts
+++ /dev/null
@@ -1,60 +0,0 @@
-// What changed in each release, newest first. The banner announces UPDATES[0] until it's dismissed, and /whats-new
-// lists everything. Give each update a new id so a dismissed banner comes back for the next release.
-export type Update = {
- id: string;
- date: string;
- title: string;
- headline: string;
- sections: { title: string; items: string[] }[];
-};
-
-export const UPDATES: Update[] = [
- {
- id: '2026-10-18',
- date: '18 October 2026',
- title: 'October update',
- headline: 'Draw on charts, keep your indicators, and safer sign-in',
- sections: [
- {
- title: 'Charts',
- items: [
- 'Draw on the stock chart: trend lines, horizontal lines, Fibonacci, shapes and text.',
- 'The indicators you pick (SMA, EMA, Bollinger Bands, VWAP, RSI, MACD, Stochastic, ATR) stay on every chart, after a reload and in fullscreen.',
- 'Tickers with a - or & now chart correctly, such as M&M and Bajaj-Auto in India, Ericsson B in Stockholm and Novo Nordisk B in Copenhagen.',
- ],
- },
- {
- title: 'Watchlist',
- items: [
- 'Watchlists hold up to 50 stocks, and you’re told when yours is full instead of seeing a generic error.',
- ],
- },
- {
- title: 'Community',
- items: [
- 'A new Wall of love: our sponsors and supporters, plus the posts, videos and articles people have made about OpenStock.',
- ],
- },
- {
- title: 'Security',
- items: [
- 'Sign-in, sign-up and password reset are rate-limited, so nobody can guess passwords or flood inboxes.',
- 'Resetting your password signs you out on every other device.',
- 'Welcome emails can no longer carry links or markup injected at sign-up.',
- 'Next.js security update covering about 30 advisories.',
- ],
- },
- {
- title: 'Self-hosting',
- items: [
- 'A prebuilt Docker image for amd64 and arm64: ghcr.io/open-dev-society/openstock.',
- 'Docker builds need no database or secrets, and no key is stored in the image.',
- 'docker compose no longer publishes MongoDB on your network, and its password comes from .env.',
- 'The image runs on Node 22 LTS.',
- ],
- },
- ],
- },
-];
-
-export const LATEST_UPDATE = UPDATES[0];
diff --git a/middleware.ts b/middleware.ts
index d859ebc..5218238 100644
--- a/middleware.ts
+++ b/middleware.ts
@@ -1,7 +1,7 @@
import { NextRequest, NextResponse } from 'next/server';
import { getSessionCookie } from "better-auth/cookies";
-const PUBLIC_PATHS = new Set(['/', '/about', '/help', '/terms', '/api-docs', '/sponsor', '/love', '/whats-new']);
+const PUBLIC_PATHS = new Set(['/', '/about', '/help', '/terms', '/api-docs', '/sponsor', '/love', '/changelog']);
export async function middleware(request: NextRequest) {
// The marketing site is public
diff --git a/next.config.ts b/next.config.ts
index a7ad7d5..3d9c422 100644
--- a/next.config.ts
+++ b/next.config.ts
@@ -2,6 +2,10 @@ import type { NextConfig } from "next";
const nextConfig: NextConfig = {
devIndicators: false,
+ // /whats-new was live briefly before the changelog replaced it
+ async redirects() {
+ return [{ source: '/whats-new', destination: '/changelog', permanent: true }];
+ },
turbopack: {
root: process.cwd(),
},