Skip to content

Implement cross-posting MVP with WebSub and real-time updates - #238

Draft
kualta wants to merge 14 commits into
mainfrom
cross-posting-mvp
Draft

Implement cross-posting MVP with WebSub and real-time updates#238
kualta wants to merge 14 commits into
mainfrom
cross-posting-mvp

Conversation

@kualta

@kualta kualta commented Jun 5, 2025

Copy link
Copy Markdown
Contributor
  • Add cross-posting settings UI with RSS source management
  • Implement WebSub subscriptions for real-time post detection
  • Add RSS parsing with platform detection (Medium, Substack, Ghost, etc.)
  • Create webhook endpoint for WebSub notifications
  • Add Server-Sent Events for real-time UI updates
  • Show cross-posted content list with original/Fountain links
  • Include Account Manager placeholder for future auto-publishing
  • Add comprehensive documentation in rss-crosspost.md

Features:

  • Real-time post detection when publishing on external platforms
  • Platform-specific RSS URL validation and detection
  • WebSub hub detection and subscription
  • Live updates in settings UI when new posts are detected
  • Toast notifications for imported content
  • Status tracking (draft/published/failed) for cross-posted articles

- Add cross-posting settings UI with RSS source management
- Implement WebSub subscriptions for real-time post detection
- Add RSS parsing with platform detection (Medium, Substack, Ghost, etc.)
- Create webhook endpoint for WebSub notifications
- Add Server-Sent Events for real-time UI updates
- Show cross-posted content list with original/Fountain links
- Include Account Manager placeholder for future auto-publishing
- Add comprehensive documentation in rss-crosspost.md

Features:
- Real-time post detection when publishing on external platforms
- Platform-specific RSS URL validation and detection
- WebSub hub detection and subscription
- Live updates in settings UI when new posts are detected
- Toast notifications for imported content
- Status tracking (draft/published/failed) for cross-posted articles
@vercel

vercel Bot commented Jun 5, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 6, 2025 9:01am

@fountain-ink

fountain-ink Bot commented Jun 5, 2025

Copy link
Copy Markdown

The preview deployment failed. 🔴

Open Build Logs

Last updated at: 2025-06-05 13:30:40 CET

- Move helper functions out of API route files to fix Next.js export restrictions
- Create separate utility modules for cross-posted content storage and SSE broadcasting
- Fix TypeScript errors for undefined types and missing properties
- Remove invalid props from Lucide icons

All build errors resolved, ready for Vercel deployment.
- Document project architecture, commands, and development workflow
- Add branch and PR strategy requiring draft PRs for all new work
- Include code style guidelines and commit/PR best practices
- Make CLAUDE.md trackable in git for team collaboration
Minor documentation update to test deployment with new env vars
Allow any valid URL and let server validate if it's actually an RSS feed.
Previous validation was too strict and rejected valid RSS URLs.
- Add better error handling in SSE events endpoint
- Improve client-side SSE connection logging
- Add connection state monitoring
- Handle ping messages properly
- Add safety checks for blogAddress
jounih added 2 commits June 5, 2025 15:46
- Improve WebSub notification logging with timestamps and content preview
- Add detailed WebSub subscription success/failure logging
- Create health check endpoint at /api/webhooks/health for testing
- Add better error details for WebSub subscription failures
- Create /api/debug/webhook-logs endpoint to store webhook activity logs
- Add /debug/webhook-logs page to view logs in browser without server access
- Log all WebSub subscription attempts, verifications, and notifications
- Include detailed error information and timestamps
- Auto-refresh logs every 5 seconds for real-time monitoring
- Move addWebhookLog function from API route to separate utility module
- Create /lib/cross-posting/webhook-logs.ts for shared logging functionality
- Fix 'Route export field' validation errors preventing deployment
- Build now completes successfully with only expected dynamic route warnings
- Create /settings/subscriptions page for newsletter subscriptions
- Create /settings/editor page for editor preferences
- Create /settings/stats page for analytics dashboard
- Create /settings/layouts page for blog themes and layouts
- Create /settings/team page for team collaboration
- All pages show 'Coming Soon' placeholders to fix 404 errors
- Move webhook logs to shared memory storage to persist across function calls
- Add console logging for all webhook log entries
- Add test log endpoint for debugging logging system
- Add explicit logging when RSS source addition starts
- Use same storage pattern as RSS sources for consistency
- Show SSE connection status
- Display last check time and WebSub hub URL
- Add quick link to webhook logs
- Remove server logs attempt (won't work with serverless)
- Improve visibility without needing Vercel access
- Remove debug/webhook-logs page and all debug API endpoints
- Remove webhook logging utility and storage
- Clean up all addWebhookLog calls from API routes
- Remove debug status card from UI
- Keep console.log statements for Vercel logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants