caelum0x 6801c08af9
Some checks failed
ci / cargo test (abacus) (push) Has been cancelled
ci / cargo test (agent-runtime) (push) Has been cancelled
ci / cargo test (context-passport) (push) Has been cancelled
ci / cargo test (game-economy) (push) Has been cancelled
ci / cargo test (ledgerline) (push) Has been cancelled
ci / cargo test (mint) (push) Has been cancelled
ci / cargo test (rago) (push) Has been cancelled
ci / cargo test (relay) (push) Has been cancelled
ci / node suites (push) Has been cancelled
ci / cargo test (toolgate) (push) Has been cancelled
ci / cargo test (turnstile) (push) Has been cancelled
ci / cargo test (vend) (push) Has been cancelled
feat(RIT-OPS,RIT-BRD): rename gitea -> rit everywhere we control, deployed + live-verified
apps/gitea -> apps/rithub-server; compose services/containers renamed
(rithub-server-app/postgres/act-runner) with explicit project name and
volume names pinned to the exact existing Docker volumes (no data loss);
our own GITEA_* compose/env var names -> RIT_*; new rit-admin CLI wrapper
on railyard-box; giteaSession.mjs/giteaOAuth.mjs/giteaInfo.mjs ->
ritSession/ritOAuth/ritInfo across 6 apps; GiteaForgeAdapter -> RitForgeAdapter
+ giteaSyncService/importGiteaRepos/syncGiteaRepos -> rit* in ritgram
(tsc clean); apps/console/lib/gitea.ts -> lib/ritProvision.ts; Go
internal/giteaclient -> internal/ritclient in rithub-async-import (go
build/test clean); new /auth/rit + /forges/rit/connect routes with
/gitea back-compat aliases; locale/swagger/footer/captcha template text
scrubbed of remaining "Gitea" strings.

Deployed to railyard-box: old containers stopped/removed, /srv/railyard-gitea
renamed to /srv/rithub-server with a symlink kept, docker compose up -d from
the new path, act_runner network-alias fix for its persisted instance URL.
Live-verified: docker compose config diff showed zero unintended value
changes, DB row counts unchanged (19 users, 635 repos), full route
regression 200/expected, 0 "gitea" in headers/bodies on every checked page,
real git clone+push over HTTPS and SSH with a disposable account (deleted
after). Deferred on purpose (documented in plans/railyard.md): the forge
discriminator / DB column names / Postgres role+volume names (data
migrations, not a naming change) and the upstream GITEA__ env-to-ini keys
and X-Gitea-* wire headers (hardcoded in the vendored engine binary).

See plans/railyard.md RIT-OPS/RIT-BRD entry for the full old->new map and
live evidence.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-12-01 16:34:39 +03:00

101 lines
4.0 KiB
TypeScript

import type { Metadata, Viewport } from 'next'
import './globals.css'
import { Providers } from './providers'
import ConditionalLayout from './ConditionalLayout'
import { RegisterSW } from './register-sw'
import { AppShortcutsProvider } from '@/components/AppShortcutsProvider'
import { RealtimeToast } from '@/components/RealtimeToast'
import { RITGRAM_SITE_URL } from '@/lib/site-config'
// `next/font/google` (Space_Grotesk) fetches the font over the network at
// *build* time; on a CPU-constrained box (railyard-box: 2 vCPU, shared with
// every other Railyard service) that fetch consistently timed out
// ("Failed to fetch `Space Grotesk` from Google Fonts") even though a plain
// `curl` to the same URL from the same host succeeded instantly — repro'd
// 4/4 times, including with `docker build --network=host`, blocking every
// production build. Dropped the network dependency: `globals.css` and
// `tailwind.config.js` already list 'Space Grotesk' first in a real CSS
// font-family stack (not the Next-generated CSS variable), so simply not
// injecting the Next font class falls straight through to the next listed
// system font (-apple-system/Segoe UI/sans-serif) with no further change.
export const viewport: Viewport = {
themeColor: '#0071E3',
}
export const metadata: Metadata = {
metadataBase: new URL(RITGRAM_SITE_URL),
title: {
default: 'Ritgram - Where Code Becomes Community',
template: '%s | Ritgram',
},
description: 'The social platform for developers. Share GitHub projects, discover trending repositories, connect with developers worldwide, and build your coding portfolio.',
keywords: ['developer social network', 'GitHub', 'code sharing', 'developer community', 'open source', 'coding portfolio'],
authors: [{ name: 'Ritgram' }],
manifest: '/manifest.json',
appleWebApp: {
capable: true,
statusBarStyle: 'black-translucent',
title: 'Ritgram',
},
openGraph: {
type: 'website',
locale: 'en_US',
url: RITGRAM_SITE_URL,
siteName: 'Ritgram',
title: 'Ritgram - Where Code Becomes Community',
description: 'The social platform for developers. Share GitHub projects, discover trending repositories, and connect with developers worldwide.',
// Real designed OG card (2026-11-17, wave5/8c), uploaded to Cloudflare
// R2 (bucket social-assets, key cards/ritgram-og-1200x630-1117b.png)
// and served from the same assets.scribase.com CDN domain the sibling
// Rithub card already uses -- verified 200 image/png 1200x630,
// 34680 bytes. Replaces the earlier `/og-image.png` reference (never a
// real file) and the dynamic app/opengraph-image.tsx placeholder route
// (deleted alongside this change) that rendered a plain blue "R" mark.
images: [
{
url: 'https://assets.scribase.com/cards/ritgram-og-1200x630-1117b.png',
width: 1200,
height: 630,
alt: 'Ritgram - Where Code Becomes Community',
},
],
},
twitter: {
card: 'summary_large_image',
title: 'Ritgram - Where Code Becomes Community',
description: 'The social platform for developers. Share GitHub projects, discover trending repositories, and connect with developers worldwide.',
// Explicit images array now that the URL is a real, permanent CDN
// asset (no more file-convention opengraph-image route to fall back
// to, since that route was deleted) -- same card as og:image above.
images: ['https://assets.scribase.com/cards/ritgram-og-1200x630-1117b.png'],
},
robots: {
index: true,
follow: true,
},
}
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
return (
<html lang="en">
<body>
<Providers>
<AppShortcutsProvider>
<ConditionalLayout>
{children}
</ConditionalLayout>
{/* Global SSE-driven toast stack — renders only when authenticated. */}
<RealtimeToast />
</AppShortcutsProvider>
</Providers>
<RegisterSW />
</body>
</html>
)
}