Update branding and improve YouTube channel functionality#15
Merged
Conversation
Remove duplicate hostname definition and replace the simple endsWith guard with an explicit isYouTubeHost check that accepts youtube.com, *.youtube.com and youtu.be
Add public YouTube channel lookup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request implements public YouTube channel lookup and import using the YouTube Data API v3, replacing mock data and extending the data model and backend logic to support public-only channel metadata. It also updates the UI, environment configuration, and documentation to reflect these changes, and improves the influencer persistence logic to support upserting by YouTube channel ID. Additionally, it introduces minor UI improvements and updates image configuration for profile images.
YouTube Public Lookup Integration:
PLAN.md).README.md. [1] [2]Backend and Data Model Enhancements:
customUrl,profileImageUrl,description,subscribers,uploadsPlaylistId,topicCategories,country,channelCreatedAt, and metadata fields for source tracking and refresh timestamps), and added a new upsert mutation for YouTube influencers (convex/schema.ts,convex/influencers.ts). [1] [2] [3] [4] [5] [6]channelIdfor efficient upserts and lookups in the influencer table (convex/schema.ts).Business Logic and Sorting:
totalViewsifestimatedAnnualRevenueis unavailable, ensuring meaningful ranking for public YouTube imports (convex/analytics.ts).Frontend and UI Improvements:
src/app/(auth)/sign-in/page.tsx). [1] [2] [3] [4] [5]next.config.ts).References:
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16]