Skip to content

Feat/home engagement redesign#474

Merged
lui7henrique merged 19 commits intomainfrom
feat/home-engagement-redesign
Feb 7, 2026
Merged

Feat/home engagement redesign#474
lui7henrique merged 19 commits intomainfrom
feat/home-engagement-redesign

Conversation

@lui7henrique
Copy link
Member

Describe your changes

Issue ticket number and link

Checklist before requesting a review

  • I have performed a self-review of my code
  • If it's an essential feature, I've tested it thoroughly.
  • Do we need to implement analytics?
  • Will this be part of a product update? If yes, please write one phrase about this update.

lui7henrique and others added 19 commits February 7, 2026 10:46
…onboarding engagement

Leverage onboarding data (content types, genres) to deliver a personalized
home experience inspired by Apple TV+ design patterns.

New sections:
- Featured Hero Card: full-width backdrop card from trending content
- For You: genre-based recommendations using onboarding preferences
- Trending This Week: Apple Music-style ranked horizontal list
- Anime/Dorama: conditional sections based on content type selection
- In Theaters / Airing Today: contextual sections per user preferences
- Top Rated: curated top-rated content based on preferred media type

Also includes:
- HomeDataCache extended with 8 new cache slots
- Localization keys added for all 7 languages
- Visual polish: larger headers (.title3.bold), 32pt section spacing

Co-authored-by: Cursor <cursoragent@cursor.com>
- Add hdBackdropURL property to SearchResult for original resolution backdrops
- FeaturedHeroCard now uses hdBackdropURL instead of w780 backdrop
- Prefetch backdrop image with high priority for instant display

Co-authored-by: Cursor <cursoragent@cursor.com>
…dges

TrendingCard now uses backdrop images (like the featured hero card) with
a gradient overlay, rank badge (#1, #2...), title, and year/type info.
Cards occupy 80% of the viewport width so the next item peeks through,
encouraging horizontal scroll discovery.

Co-authored-by: Cursor <cursoragent@cursor.com>
…s shown

Avoids redundant sections with overlapping content. Popular Movies is
hidden when "In Theaters" (Now Playing) is active, and Popular TV Series
is hidden when "Airing Today" is active.

Co-authored-by: Cursor <cursoragent@cursor.com>
Previously, users who selected only Anime or Dorama during onboarding
would see a generic home with Popular Movies/TV Series and trending
content unrelated to their preferences.

Now:
- Featured Hero shows popular anime/dorama instead of generic trending
- For You section includes anime/dorama content via discover endpoints
- Popular Movies/TV Series hidden when user didn't select those types
- Top Rated adapts to show top rated anime or dorama accordingly
- All sections respect the user's content type preferences from onboarding

Co-authored-by: Cursor <cursoragent@cursor.com>
Adds a subtle "Debug: Open Onboarding" button below "Create Account"
on the login view. Only visible in DEBUG builds. Resets onboarding
state and navigates to the onboarding flow for testing.

Co-authored-by: Cursor <cursoragent@cursor.com>
…rences

Previously, Featured Hero and Trending This Week always used
`getTrending(mediaType: "all")` which mixed movies, TV, anime, and dorama
regardless of what the user selected during onboarding.

Now both sections use a shared `loadContentForPreferences()` helper that
fetches only the content types the user actually selected (e.g. anime-only
users see only anime in trending). Each content type is fetched in parallel
for performance.

Co-authored-by: Cursor <cursoragent@cursor.com>
Excludes items the user already has in their collection (watchlist,
watching, watched, dropped) from the "For You" recommendations so
they only see fresh content they haven't interacted with yet.

For authenticated users, fetches all statuses in parallel via the API.
For guest mode, uses local saved titles from onboarding.

Co-authored-by: Cursor <cursoragent@cursor.com>
Changes all home screen section titles from Title Case to sentence case
(only first letter capitalized) across all 6 languages (EN, PT, ES, FR,
DE, IT). Japanese is unaffected as it has no letter casing.

German nouns remain capitalized per language rules.

Co-authored-by: Cursor <cursoragent@cursor.com>
… error

The function accesses @State properties and uses try? await in a guard
statement, which requires MainActor context.

Co-authored-by: Cursor <cursoragent@cursor.com>
Swift doesn't support try? await inside guard-let conditions.
Extracted the async getCurrentUser() call to a separate let binding.

Co-authored-by: Cursor <cursoragent@cursor.com>
… home

Previously, anime and dorama content ignored the user's genre preferences
and always showed generic popular content. Now:

- TMDBService.discoverByGenres accepts an optional originCountry parameter
- Onboarding title selector filters anime (JP) and dorama (KR) by the
  user's selected genres via the discover API
- Home "For You" section applies the same genre-based filtering for
  anime and dorama content

Falls back to popular content when no genres are selected.

Co-authored-by: Cursor <cursoragent@cursor.com>
The title was built by concatenating topRated + animes which produced
incorrect word order in Portuguese ("Mais bem avaliados Animes" instead
of "Animes mais bem avaliados"). Added topRatedAnimes and topRatedDoramas
as dedicated strings with correct grammar in all 7 languages.

Co-authored-by: Cursor <cursoragent@cursor.com>
…rompt

Previously, action buttons (review, status, mark as watched) were
completely hidden for non-authenticated users. Now they are always
visible but tapping them as a guest triggers the login prompt sheet.

Changes across 4 files:
- MediaDetailView: shows review + status buttons, prompts login on tap
- SeasonDetailView: shows review button + episode progress bar for all
  users, prompts login on review tap and episode checkbox toggle
- EpisodeDetailView: shows watched + review buttons, prompts login
- MediaDetailViewActions: added onLoginRequired callback for status button

After successful login via the prompt, user data is automatically
reloaded so the UI updates immediately.

Co-authored-by: Cursor <cursoragent@cursor.com>
Changed trending card height from 190 to 230 and container from 200 to
240, bringing the aspect ratio closer to the featured hero card instead
of the previous 16:9-like proportion.

Co-authored-by: Cursor <cursoragent@cursor.com>
The login prompt was using onboarding-specific text ("Save your progress"
/ "Sign in to sync across devices") which didn't make sense when
triggered from review/status/watched buttons.

Updated to universal text that works everywhere:
- Title: "Sign in to Plotwist" (brand-focused)
- Subtitle: explains all benefits (review, track, sync)
- Icon: changed from icloud.and.arrow.up to person.crop.circle

Updated across all 7 languages.

Co-authored-by: Cursor <cursoragent@cursor.com>
On iOS 26 (Liquid Glass), .presentationBackground(.clear) as a
ShapeStyle doesn't fully remove the system glass material behind sheets.

Fixed by:
- Using the view-based .presentationBackground { Color.clear } overload
  which explicitly renders a transparent view instead of a style hint
- Adding .presentationCornerRadius(0) to prevent the system from
  applying its own rounded corner chrome/material layer

The FloatingSheetContainer already handles its own corner radius and
background, so the system-level ones are unnecessary.

Co-authored-by: Cursor <cursoragent@cursor.com>
…login prompt height

Use presentationBackground with solid color to override iOS 26 Liquid Glass
on all floating sheets. Simplify FloatingSheetContainer to a pass-through
since system now handles sheet styling. Reduce login prompt sheet height
from 450 to 390 to better fit content. Bump build to 19.

Co-authored-by: Cursor <cursoragent@cursor.com>
…d SearchTabView

- Reduced padding in ReviewSheet for a more compact layout.
- Updated floating sheet presentation heights for better content fit.
- Enhanced SearchTabView to conditionally display HomeSectionView components only when items are available, improving UI responsiveness.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel
Copy link

vercel bot commented Feb 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
plotwist Building Building Preview, Comment Feb 7, 2026 3:17pm

Request Review

@lui7henrique lui7henrique merged commit 5d027c9 into main Feb 7, 2026
1 of 3 checks passed
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