Skip to content

Conversation

@Maphikza
Copy link
Member

Changes Made

Major Updates

  1. Improved MIME type handling in relay settings:

    • Implemented direct MIME type mappings instead of file extensions
    • Added consistent handling across all media types (images, videos, audio)
    • Fixed checkbox state persistence for media types
  2. Enhanced mode switching behavior:

    • Added state preservation when switching between smart/unlimited modes
    • Users can now switch between modes without losing their settings
    • No page reload required when switching modes
  3. Added Subscription Tiers Management:

    • Implemented new SubscriptionTiersManager component
    • Added support for data limits and pricing configuration
    • Basic styling implemented (would appreciate UI/UX improvements from @anthony)

Technical Improvements

  • Refactored useRelaySettings hook for better type safety
  • Improved transformation logic between frontend and backend data structures
  • Fixed whitelist/blacklist handling in both smart and unlimited modes
  • Added proper state management for mode switching

UI/UX Notes

@anthony - I've implemented basic styling for the SubscriptionTiersManager component, but would greatly appreciate your expertise in improving its look and feel to match our design system.

Testing

  • Tested mode switching behavior
  • Verified MIME type selections persist correctly
  • Confirmed subscription tier changes save properly
  • Checked whitelist/blacklist behavior in both modes

Additional Notes

  • All existing functionality maintained
  • Improved error handling
  • Added type safety throughout
  • Enhanced user experience with seamless mode switching

AnthonyMarin and others added 30 commits September 2, 2024 13:38
…d-transactions

Adding replacement transactions
…ing to be based on the fee rate selected by the user
…event actioning trsactions that would not be successful
…d-transactions

Feat UI/unconfirmed transactions
AnthonyMarin and others added 14 commits September 19, 2024 12:38
…replacement transactions so that we do not present fee rates that are lower than the initial fee rate.
- Add SubscriptionTiersManager component for configuring relay subscription plans
- Integrate subscription tiers with existing relay settings interface
- Update Settings type to include subscription_tiers
- Add UI for adding, removing, and editing subscription tiers
- Match styling with existing dark theme components
- Handle price values as strings for backend compatibility
Maphikza and others added 13 commits December 11, 2024 12:28
- Update useBitcoinRates hook to properly parse TimestampHornets field
- Fix data transformation to correctly display historical price data
- Resolve invalid date display issues in chart visualization

The hook now correctly converts backend timestamps to valid JavaScript dates,
ensuring proper chronological display of Bitcoin price data in the chart.
- Fixed subscription tiers mapping between frontend and backend
- Added proper interfaces for BackendSubscriptionTier with correct field names
- Updated transformFromBackendSettings and transformToBackendSettings to handle lowercase fields
- Added isFileStorageActive field mapping in settings transformations
- Add useTrendingCreators hook for fetching paid subscriber profiles
- Implement automatic fallback to dummy profiles when no paid subscribers exist
- Add proper authentication handling with token support
- Update TrendingCreators component to use new hook
- Fix profile image display by using imported assets
- Add error handling and loading states
- Add debug logging for troubleshooting

This change improves the trending creators section by showing dummy profiles
until paid subscribers are available, then seamlessly transitioning to real
subscriber profiles once they exist.
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.

3 participants