Skip to content

Resolve merge conflicts and enhance YouTube channel integration#17

Merged
mhaadiabu merged 25 commits into
papakwesi-creator:mainfrom
mhaadiabu:main
Mar 15, 2026
Merged

Resolve merge conflicts and enhance YouTube channel integration#17
mhaadiabu merged 25 commits into
papakwesi-creator:mainfrom
mhaadiabu:main

Conversation

@mhaadiabu

Copy link
Copy Markdown
Collaborator

This pull request introduces significant updates across the backend schema, analytics logic, and authentication flow, primarily to support a new channels-centric data model and improved YouTube integration. The changes modernize the schema, refactor analytics queries to operate on channels instead of influencers, add support for OAuth with Google/YouTube, and update the sign-in page for a more YouTube-focused experience.

Schema and Data Model Overhaul:

  • Migrated from an influencers-centric model to a new channels table, with expanded fields for YouTube channel metadata, compliance, and financials. New tables for OAuth connections, analytics syncs, manual financials, and tax estimates were introduced, supporting richer analytics and integrations. The previous influencers table is now legacy, with most queries and metrics operating on channels. [1] [2]

Analytics and Metrics Refactor:

  • All analytics queries now use the new channels model, updating metrics such as revenue, compliance, and top performers. Additional dashboard metrics were added, including counts for public-only channels, connected analytics, manual input, and action-required channels. Platform and regional distribution queries were removed.
  • Implemented a new getRevenueByMonth query that aggregates revenue and tax data from both analytics and manual financials, grouped by month, replacing the previous stubbed/empty implementation.

Authentication and OAuth Integration:

  • Added support for Google OAuth as a social provider, including YouTube and analytics scopes, enabling secure channel data integration.

Sign-in Page and User Experience:

  • Updated the sign-in page to handle returnTo and connectChannelId URL parameters, redirecting users appropriately after authentication, including directly to YouTube connect flows when needed. [1] [2]
  • Refreshed branding and statistics on the sign-in page to reflect the new YouTube channel focus, updating copy and visual elements. [1] [2] [3] [4]

Schema and Data Model Changes:

  • Introduced a new channels table with comprehensive YouTube metadata, compliance, and financial fields; added tables for OAuth connections, analytics syncs, manual financials, and tax estimates. The schema now supports richer analytics and integrations. [1] [2]

Analytics and Metrics Refactor:

  • Refactored dashboard and analytics queries to use the channels model, updated metrics, and removed platform/regional distribution queries. Added new metrics for channel connection/compliance status.
  • Implemented monthly revenue and tax aggregation across analytics and manual financials for the dashboard.

Authentication and OAuth:

  • Enabled Google OAuth login with YouTube and analytics scopes, supporting secure channel analytics integration.

Sign-in Page Improvements:

  • Enhanced sign-in flow to redirect users based on returnTo and connectChannelId parameters, supporting seamless YouTube channel connection after login. [1] [2]
  • Updated sign-in page branding and statistics to focus on YouTube creators and compliance monitoring. [1] [2] [3] [4]

Add default React import and remove leftover Git conflict markers.
Use api.influencers.upsertYoutubeInfluencer directly instead of casting
it to Parameters<typeof useMutation>[0].
Fix YouTube lookup safety and provenance handling
Refactor dashboard around source-aware YouTube channels
Replace text-accent with text-chart-5 and text-primary where accent
is used as a text color — accent is oklch(0.94) in light mode, making
text invisible on white backgrounds. Also remove conflicting
animate-page-enter + stagger-children double-animation on the overview
page and tighten max-width from 6400px to 1600px.
Add per-channel YouTube OAuth connection flow
@mhaadiabu mhaadiabu merged commit e7d92a6 into papakwesi-creator:main Mar 15, 2026
1 check failed
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.

1 participant