-
Notifications
You must be signed in to change notification settings - Fork 27
Story 2455: Library Highlight Carousel on Homepage #2510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
f7b7929
feat: add libraries highlight carousel card
julhoang 79bd813
style: apply dark mode styling override
julhoang 2455ad0
style: improve library carousel card height
julhoang 8d51fdd
refactor: use union, count on queryset, build URL on BE (PR feedback)
julhoang 5eeccc6
refactor: improve first_boost_version query
julhoang 4effb64
style: improve edge case styling
julhoang 57444dc
style: add missing line-height, letter-spacing and naming preference
julhoang b2c46ff
feat: improve fallback documentation link and remove dummy fallback
julhoang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
24 changes: 24 additions & 0 deletions
24
core/migrations/0009_homepagesettings_highlighted_libraries.py
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # Generated by Django 6.0.2 on 2026-06-30 16:03 | ||
|
|
||
| from django.db import migrations, models | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ("core", "0008_popularsearchterm_popularsearchtermexclusion"), | ||
| ("libraries", "0041_category_short_description"), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AddField( | ||
| model_name="homepagesettings", | ||
| name="highlighted_libraries", | ||
| field=models.ManyToManyField( | ||
| blank=True, | ||
| help_text="Libraries shown in the homepage 'Explore battle tested libraries' carousel. Only flagship and core libraries present in the latest stable release are listed. If empty, a random selection of flagship or core libraries is used.", | ||
| related_name="+", | ||
| to="libraries.library", | ||
| ), | ||
| ), | ||
| ] |
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: boostorg/website-v2
Length of output: 14477
🏁 Script executed:
Repository: boostorg/website-v2
Length of output: 31226
🏁 Script executed:
Repository: boostorg/website-v2
Length of output: 10171
🏁 Script executed:
Repository: boostorg/website-v2
Length of output: 25228
🏁 Script executed:
Repository: boostorg/website-v2
Length of output: 9783
Preserve stale homepage selections in the queryset.
HomepageSettingsFormnarrows both chooser querysets tolibrary_version__version=latest; ifFeaturedLibraryorhighlighted_librariesalready references a library that is missing from the latest release, it disappears from the form and can’t be edited back. Include currently selected IDs in both querysets using.distinct()so existing selections remain editable while future saves still require a currentLibraryVersion.🤖 Prompt for AI Agents