Skip to content

Add Custom Preview Component for Nostr Provider #806

@nevo-david

Description

@nevo-david

Overview

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

Current State

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

Needed Implementation

Create a NostrPreview component that:

  • Matches Nostr's note design (minimalist decentralized protocol interface)
  • Shows proper note layout with cryptographic identity indicators
  • Displays public key/npub formatting
  • Shows Nostr-specific elements like zaps, reactions, reposts
  • Includes decentralized protocol styling with cryptographic themes
  • Shows proper relay and protocol information
  • Handles Nostr's unique decentralized 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(null, NostrPreview, ...)
  • Should implement FC<{ maximumCharacters?: number }> interface
  • Use useIntegration() hook to access post content and settings

Priority

Medium - Nostr is an innovative decentralized social media 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