Skip to content

Add Custom Preview Component for Warpcast Provider #802

@nevo-david

Description

@nevo-david

Overview

The Warpcast provider currently uses the default GeneralPreviewComponent instead of a platform-specific preview that matches Warpcast's UI/UX.

Current State

  • Provider file: apps/frontend/src/components/launches/providers/warpcast/warpcast.provider.tsx
  • Using: withProvider(WarpcastSettings, undefined, ...) - no custom preview component
  • Falls back to: GeneralPreviewComponent

Needed Implementation

Create a WarpcastPreview component that:

  • Matches Warpcast's cast design (purple-themed Farcaster protocol interface)
  • Shows proper cast layout with Farcaster protocol elements
  • Displays handle with proper Farcaster formatting
  • Shows Warpcast-specific elements like likes, recasts, replies
  • Includes decentralized protocol indicators
  • Shows proper character limits and threading
  • Handles Farcaster protocol specific features

Reference

See existing implementations:

  • apps/frontend/src/components/launches/providers/medium/medium.provider.tsx (MediumPreview)
  • apps/frontend/src/components/launches/providers/devto/devto.provider.tsx (DevtoPreview)

Technical Details

  • Component should be added as second parameter in withProvider(WarpcastSettings, WarpcastPreview, ...)
  • Should implement FC<{ maximumCharacters?: number }> interface
  • Use useIntegration() hook to access post content and settings
  • Access Warpcast-specific settings from WarpcastSettings

Priority

Medium - Warpcast is the main client for Farcaster decentralized protocol

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions