Content rating overides#1336
Merged
Merged
Conversation
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.
What type of PR is this?
Description
Title
Add content-rating overlay overrides, preview controls, and Common Sense preview fixes
Summary
This branch extends the overlay override system to the content-rating families and brings their preview behavior in line with the bundled Kometa defaults. It adds override support for US movie/show, UK, DE, AU, NZ, and Common Sense content-rating overlays, copies the bundled preview assets into Quickstart’s static overlay defaults, and wires the Libraries canvas to render those badges through the shared overlay preview pipeline.
It also fixes the Common Sense-specific preview contract. Quickstart now treats the Common Sense text value as internal preview state, exposes a preview selector driven by the enabled use_* toggles, and keeps post_text as the YAML-facing field. The unrated edge case now matches the local Kometa default: NR renders without the + suffix.
What changed
Added source_overrides support for the content-rating overlay families in static/json/quickstart_overlays.json.
Added bundled content-rating preview assets under static/images/overlay-defaults/content_rating/.
Extended static/local-js/overlayHandler.js to:support content-rating preview dropdowns
resolve content-rating override images
refresh the canvas correctly on initial load and on preview changes
handle Common Sense preview rendering through the same pipeline
special-case Common Sense NR so preview matches Kometa defaults
Added hidden template-variable rendering in templates/partials/_macros.html so preview-only state can exist without showing a visible input row.
Common Sense behavior
text is now preview-only UI state for Common Sense.
Preview rating is the visible control.
Post Text still persists to final YAML.
NR preview renders as NR, not nr+.
Related Issues [optional]
Which Environment Did You Test On?
python quickstart.py)