21 Commits
Author SHA1 Message Date
bbeandClaude Opus 5.5 3172125ff9 feat: add moderation toggles for community content
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>
2026-10-13 01:46:11 +02:00
bbeandClaude Opus 5.5 f0a59c33a3 feat: server-render public pages for crawlers
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>
2026-10-13 01:05:29 +02:00
bbeandClaude Opus 5.5 14d44f1dea feat: improve crawlability of public pages
- 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>
2026-10-13 00:31:21 +02:00
bbeandClaude Opus 5.5 d8a7e6edc1 feat: add admin-managed URL redirects
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>
2026-10-13 00:31:17 +02:00
bbeandClaude Opus 5.5 e5cf247a58 feat: unify public page design with shared layout primitives
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>
2026-10-13 00:11:45 +02:00
bbeandClaude Opus 5.5 ca3eb2013c feat: add video archive with categories, submissions and admin review
- /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>
2026-10-12 23:17:16 +02:00
bbeandClaude Opus 5.5 cac1b261a2 feat: make featured event exclusive and expire it when over
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>
2026-10-12 23:17:16 +02:00
bbeandClaude Opus 5.5 cd1250b7e3 fix: wrap long event text and linkify event descriptions
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>
2026-10-12 23:17:15 +02:00
bbeandClaude Opus 5.5 6b0a637ab3 feat: redesign admin panel for usability
- 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>
2026-10-12 21:45:04 +02:00
bbeandCursor ede8817583 fix: harden deploys and close top security holes after /events outage
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>
2026-07-18 19:14:57 +02:00
bbeandCursor 495289232b feat: blog header images, npub display, and meetups load more
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>
2026-06-29 04:36:10 +02:00
bbeandCursor 2ef68222bf feat: resolve live Nostr references in blog posts and add embeds
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>
2026-06-29 03:57:32 +02:00
bbeandCursor 6023991f5c feat: add SEO metadata, llms.txt, and markdown page mirrors
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>
2026-06-29 00:59:41 +02:00
bbeandCursor 99380ef6aa fix: auto-publish approved blog submissions on approval
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>
2026-06-28 23:38:48 +02:00
bbeandCursor a6a2b113ee feat: add scoped API keys for programmatic site access
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>
2026-06-23 09:29:30 +02:00
bbeandCursor 70e3e0633d feat: roles/permissions system and Nostr profile display on admin users
Introduce granular role-based permissions with SuperAdmin env override, admin roles UI, and permission-gated API routes. Fix admin user Nostr metadata by batching relay profile fetches, normalizing npub pubkeys to hex, and adding reusable NostrAvatar/useNostrProfile components.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-23 08:46:56 +02:00
bbeandCursor 3bdd01dedf feat: user relay management, blog naddr sync, and OG image update
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>
2026-06-23 05:54:34 +02:00
bbe 78271ea110 feat: organizers, meetups UI, Plausible analytics, and migration tooling
- Add organizer model/API, admin and public organizer pages, meetup cards
- Refresh events/home/contact; add calendar dialog and carousel components
- Optional Plausible via NEXT_PUBLIC_PLAUSIBLE_* env vars in root layout
- Prisma migration, seed updates, baseline-and-migrate script

Made-with: Cursor
2026-04-04 21:55:34 +02:00
bbe 586b572f73 feat(board): Lightning-paid message board with LNbits and admin moderation
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
2026-04-03 18:37:52 +02:00
bbe 7acff1ae38 Remove storage/ from version control (keep local only)
Tracked media blobs and cache are dropped from the tree; paths remain gitignored.
2026-04-02 22:16:15 +02:00
bbe 2ddf6495fb Ignore local storage; admin users NIP-05, media, events, footer updates
- Add /storage/ and /backend/storage/ to .gitignore
- Track meetup time helper, logo asset, and assorted frontend/backend fixes
2026-04-02 22:13:28 +02:00