Repository navigation
feat(campus): support Campuskino Heilbronn alongside TU Film (#389) - #390
Merged
Merged
Conversation
jakobkoerber
requested changes
Nov 22, 2026
Member
There was a problem hiding this comment.
Hey @gerovonmanstein, thanks for your contribution! That's a nice addition to the app. The code looks good and reuses most of the components in place. I added some comments to make the code a bit more coherent. Give them a look and let me know if you have questions
Contributor
Author
|
Habe gerade die Vorschläge gesehen. Bin dran :) Re-request review kommt nochmals |
- extract _parseMovie and use .map().whereType().toList() - use null date instead of falling back to currentDate when date can't be parsed - guard date display in MovieCardView with hasDate() - filter out past screenings for Campuskino Heilbronn to match TU Film behaviour - replace _cinemaNames/_cinemaWebsites lists with a readable-key Map - consolidate into _readSavedCinema()/setCinema(int?) with null for Closest - log preference errors with debugPrint instead of swallowing them
Contributor
Author
|
Hey @jakobkoerber, thanks for the review! I've addressed all the points and also noticed that Campuskino Heilbronn was showing past screenings unlike TU Film. So I added a .where() to filter those out. Here is what you recommended and what I changed:
|
jakobkoerber
approved these changes
Nov 22, 2026
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.
Summary
Closes #389
This PR introduces support for Campuskino Heilbronn alongside the existing TU Film program under the Campus tab and the Home screen movie carousel.
Changes
UserPreference.cinemaso user selection is persisted across app sessions and resets cleanly to "Closest".Icons.filter_list) inMovieScreenusing the sharedPreferenceSelectionView, matching the existing Cafeteria and Departures behavior.MovieScreentitle and website action adapt to the currently active cinema (tu-film.devs.unifilm.de/studentenkinos/heilbronn).MovieWidgetViewsection header updates dynamically.CampusScreenshortcut chip uses the localized stringmovies("Filme").unifilm.de/studentenkinos/heilbronnviadioandhtml, with an automatic fallback card to the website if the cinema is currently on semester break.Verification
dio,html,material_ui).filterinde.jsonanden.json).MovieCardViewandCampusCollectionView.