Admin settings now control moderation per content type: video and blog
submissions (off = auto-publish), board messages (on = held as pending
after payment), and blog comments/likes (on = only admin-approved Nostr
events are shown, via a new approval queue on the Moderation page).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Event and blog detail pages, the homepage and the community and contact
pages now ship their real content in the server HTML instead of loading
it in the browser, so crawlers see events, posts and deep links.
- Event detail renders fully on the server (ISR, 5 minutes); missing
events return 404. Only the upcoming-events carousel stays client side.
- Blog posts render title, author, date, image and the markdown body on
the server. The backend fills the body of indexed posts from the Nostr
event cache. Likes, replies and the profile avatar stay client islands,
and unresolved slugs keep the in-browser relay fallback. Markdown
headings shift down one level so the title is the only h1.
- Homepage is a server component with real links to upcoming meetups
and a new "Latest from the blog" section.
- Social links come from server-fetched settings, with SOCIAL_LINKS as a
fallback, so no card links to "#" and sameAs lists every profile.
- One pageMetadata helper sets title, canonical, og and twitter tags.
Section layouts keep the site-name title template alive for nested
pages, and toMetaDescription cleans event and post descriptions.
- Sitemap: static pages drop lastModified, /board is added, only
published meetups are listed, and it revalidates hourly.
- Server-side API calls go to the backend on loopback, and the deploy
script points build-time prerendering at it.
- scripts/seo-check.mjs (npm run seo-check) verifies all of the above.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Fill indexed blog post bodies from the Nostr event cache (4s cap) so
posts render on the server instead of only in the browser
- Mark the footer disclaimer data-nosnippet
- Server-side API calls prefer the backend over loopback (BACKEND_PORT)
before falling back to the public API hostname
- Collapse whitespace in imported post excerpts
- Add lib/text.ts plain-text cleanup helpers for meta tags
- Add scripts/seo-check.mjs crawler-view check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Admins can now create, edit, toggle and delete redirects from
/admin/redirects without a rebuild. Rules support exact or prefix
(/old/* -> /new/*) matching, 301/302, internal paths or external URLs,
optional query-string passthrough, notes and a hit counter.
- Redirect model + migration; grants redirects.manage to admin
- /api/redirects CRUD (redirects.manage) plus public /active and /:id/hit
- Server validation rejects reserved paths (/api, /_next, /admin, /media,
/.well-known), the homepage, loops, duplicates and non-http(s) targets
- frontend/middleware.ts caches active rules for 30s, serves stale rules
while refreshing, and fails open so a backend outage never blocks pages
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Public pages each hand-rolled their own widths, gutters, header sizes,
card surfaces and accent colors, so they drifted slightly apart. They now
share one small design system:
- PageLayout.tsx: Container, PageShell, PageHeader, SectionHeader,
BackLink, EmptyState, ErrorState and CardGrid
- globals.css component classes for card, badge, chip, field, skeleton,
plus a default focus ring and reduced-motion handling
- buttonClass() so links and buttons share one set of variants
Also:
- Load Inter through next/font; the old CSS @import came after other
rules and was dropped by browsers, so the site fell back to system fonts
- Navbar matches the page background, keeps the active link from
shifting, and gets an accessible mobile menu
- Hero shows a loading skeleton or a "coming soon" state instead of
placeholder meetup data
- Homepage reuses MeetupCard and FaqAccordion instead of private copies
- Footer reorganised into link columns
- Blog category filter collapses behind a "+N more" toggle
- Restyle login, board, gallery, legal, 404 and error pages to match
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- /videos archive: featured video, BBE Productions section, category
filter chips and search (both in the URL), load more
- /videos/[slug]: click-to-play player, speaker/date/duration, linked
event, category chips, related videos, VideoObject JSON-LD
- Providers: YouTube, Vimeo and Rumble embed (metadata via oEmbed from
fixed hosts only); direct https video files play natively; any other
link gets a "Watch on <site>" card
- Categories: many-to-many VideoCategory with starter set; admins pick
or create them in a combobox; submitters pick up to 3 existing ones
(BBE Productions is staff-only)
- Dashboard "Videos" tab: submit a link for review, auto-filled details,
optional categories and event, withdraw while pending
- Admin /admin/videos: status tabs, search, approve/reject with note,
edit sheet (thumbnail upload, event, slug, featured), pending badge
in sidebar and overview
- New videos.manage permission (admin + moderator by default)
- Migrations: add_videos, add_video_categories
- Nav, footer and sitemap link to /videos
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only one meetup can be featured at a time: featuring one unfeatures the
rest (backend transaction, mirrored in the admin list). Featuring an event
that is already over is refused, and a featured event loses the flag once
it ends (same end rule as the ICS feed). The homepage hero shows the
featured event while it's still on, otherwise the next upcoming one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Long titles, organizer names, locations and URLs no longer overflow event
cards, the event page or the upcoming-events carousel on narrow screens.
URLs in event descriptions are now clickable links (trailing punctuation
and unbalanced closing parens are left out of the link).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Grouped, compact sidebar so all sections fit; mobile top bar + drawer
- Shared admin UI kit (dialogs, confirm, menus, tooltips, toasts, fields,
empty/error/loading states) on Radix + sonner
- Every page: page header, search/filter tabs with counts, skeletons,
confirm dialogs instead of window.confirm, success/error toasts,
labelled forms in sheets/dialogs with unsaved-changes guard
- Events: upcoming-first default, search, status menu, bulk action bar,
client-side validation; split into components
- Overview: clickable stats, needs-attention list, correct post total
- Blog: filters, searchable category picker, import dialog
- Users, Gallery, FAQ, Submissions, Board, Moderation, Relays, API keys,
Roles, Settings, Nostr tools rebuilt on the kit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Isolate next dev from production .next, add build-guard/atomic deploy/health
watchdog, error boundaries, and fix JWT startup, meetup leaks, media path
traversal, SVG/memory uploads, and JSON-LD escaping.
Co-authored-by: Cursor <cursoragent@cursor.com>
Show longform image tags on posts, use shortened npubs for author names,
and paginate the homepage meetups section with responsive load more.
Co-authored-by: Cursor <cursoragent@cursor.com>
Support naddr/nevent/note slugs for unindexed posts, cache naddr lookups,
render Nostr embeds in markdown, and add a consistency check for events mirrors.
Co-authored-by: Cursor <cursoragent@cursor.com>
Centralize site metadata and social URLs for JSON-LD, expose llmstxt.org
content and per-page .md routes for LLM crawlers, and refactor blog/FAQ/events
pages with shared components.
Co-authored-by: Cursor <cursoragent@cursor.com>
Approved user submissions now import into the blog automatically, with a
backfill script for existing approvals and a WebSocket polyfill so backend
Nostr relay queries work on Node 20.
Co-authored-by: Cursor <cursoragent@cursor.com>
Introduce ApiKey model, CRUD endpoints, and admin UI so agents can
authenticate with permission-scoped keys. Normalize pubkeys to hex on login,
dedupe legacy npub/hex user rows, and ignore .cursor in git.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add UserRelay API and dashboard relays tab with NIP-65 import, store post
naddr for Nostr articles, and ship Prisma migrations for board tables,
user relays, and post metadata.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add public /board flow: create invoice, webhook + confirm reconciliation, list
active messages, likes (Nostr), zap fallbacks. Admin table for hide/delete.
Include LNbits webhook body normalization (double-encoded JSON), POST
/api/messages/confirm/:hash, and root npm db:push script. Prisma models for
pending invoices and board messages.
Made-with: Cursor
- next.config: development-only rewrite /api/:path* to 127.0.0.1:4000; move
sharp to experimental.serverComponentsExternalPackages for Next 14
- media/[id]/route: resolve storage at request time, fallbacks for
backend/storage/media vs storage/media, async params, force-dynamic
Made-with: Cursor
Use dotenv-cli for db:push, db:seed, db:studio, and migrate:deploy so they
match the API (root .env). Load dotenv in seed.ts for direct runs.
Document absolute DATABASE_URL in .env.example.
Made-with: Cursor
Use same-origin /api in the browser so builds are not stuck with baked-in
localhost. Server-side fetches use INTERNAL_API_URL, NEXT_PUBLIC_API_URL, or
loopback. Centralize logic in lib/api-base.ts.
Made-with: Cursor