Skip to content

⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.

867 B
Raw Blame
'use client';

import { useWhatsNewQuery } from './services/whatsNew.service';
import WhatsNewOnceOnboarded from './components/WhatsNewOnceOnboarded';

// Shows the post-upgrade screen once per release, over whatever page the user
// landed on. Mounted for every signed-in page; the query it reads is disabled
// without a session, so the sign-in and invite screens ask for nothing.
export default function WhatsNew() {
  const { data } = useWhatsNewQuery();

  if (!data?.pending) return null;
  // Nothing to say: a build whose version is missing from the changelog and an
  // account that sees neither the backup nor the report.
  if (data.releases.length === 0 && !data.backup && !data.migration) return null;

  // Mounted only here, so the project list is read only when the screen has
  // something to show.
  return <WhatsNewOnceOnboarded data={data} />;
}