Skip to content

feat: add results count chip to film poster - #63

Merged
Nacchofer31 merged 3 commits into
masterfrom
feature/number-results
Jul 21, 2026
Merged

feat: add results count chip to film poster#63
Nacchofer31 merged 3 commits into
masterfrom
feature/number-results

Conversation

@Nacchofer31

Copy link
Copy Markdown
Owner

Summary

Add a results count chip to the film poster that displays the total number
of films in the current search pool.

Changes

  • Design: Added a green pill chip (film icon + count) as an overlay in
    the top-right corner of the poster, symmetric to the existing info button.
  • State: numberOfResults field already existed in RandomFilmState;
    now threaded from ViewModel → Screen → FilmDisplay → FilmPoster.
  • ViewModel: numberOfResults is set to cachedResultFilms.size on
    success and reset to 0 on error or new search.
  • UI: Chip only renders when numberOfResults > 0, using
    GreenAccent background with BackgroundDarkColor text/icon.

Files changed

  • FilmPoster.kt — chip overlay at Alignment.TopEnd
  • FilmDisplay.kt — forward numberOfResults param
  • RandomFilmScreen.kt — extract and pass numberOfResults from state
  • RandomFilmViewModel.kt — populate numberOfResults on fetch results
  • RandomFilmState.kt — add numberOfResults field
  • randomboxd.pen — design mockup updated

@Nacchofer31 Nacchofer31 self-assigned this Jul 21, 2026
@codecov

codecov Bot commented Jul 21, 2026

Copy link
Copy Markdown

@Nacchofer31
Nacchofer31 merged commit cbc46c3 into master Jul 21, 2026
7 checks passed
@Nacchofer31
Nacchofer31 deleted the feature/number-results branch July 21, 2026 09:17
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