feat: PORTAL_BLOG_SHOW_MAIN_IMAGE - #1154
Conversation
Review Summary by Qodo(Agentic_describe updated until commit 1c162b3)Add configurable auto main image display with semantic figure elements
WalkthroughsDescription• Add PORTAL_BLOG_SHOW_AUTO_MAIN_IMAGE setting to control article main image display • Replace <div> with semantic <figure> elements for blog images • Fix alt="None" bug by making alt text conditional • Add optional <figcaption> support for article main images • Adjust figure margin styling for news feed items Diagramflowchart LR
A["PORTAL_BLOG_SHOW_AUTO_MAIN_IMAGE<br/>Setting Added"] --> B["post_detail.html<br/>Conditional Rendering"]
B --> C["figure Element<br/>Replaces div"]
C --> D["Alt Text Fix<br/>Avoid alt=None"]
C --> E["figcaption<br/>Optional Caption"]
F["blog_item.html<br/>Thumbnail Images"] --> C
G["CSS Styling<br/>Figure Margin"] --> C
File Changes1. taccsite_cms/settings/settings.py
|
Code Review by Qodo
1. Default disables blog visuals
|
Co-authored-by: Cursor <cursoragent@cursor.com>
b68c533 to
eb8896c
Compare
|
/agentic_review |
|
Persistent review updated to latest commit 15d8e12 |
|
/agentic_review |
|
Persistent review updated to latest commit e4d5a3c |
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
|
/agentic_review |
|
Persistent review updated to latest commit 1813b38 |
|
Qodo review is mostly stale (1–3, 5). 4 is not a big issue (setting is in public repo) and the comment helps dev; that is what an HTML comment is for. /ask Qodo, why are your comments based on stale code? Are the force-pushes confusing you? |
…fix alt="None" Co-authored-by: Cursor <cursoragent@cursor.com>
…fix alt="None" Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…SS hide rule Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Wesley B <62723358+wesleyboar@users.noreply.github.com>
|
Persistent review updated to latest commit 1c162b3 |
|
Qodo still reviewing out-of-date work. I reviewed with better AI on local machine as and after we worked. All good. |
## Overview A mixin calling another mixin that already contained `@media (--medium-and-above)` produced duplicate nested at-rules in compiled CSS. ## Related - noticed during #1154 ## Changes - **fixed** double `@media` in compiled output for `.blog-visual` float layout - **restructured** `.blog-visual` rule block for consistent nesting convention ## Testing 1. `make start` 2. Open a blog post with a banner image and one with a portrait image. 3. At ≥992 px, banner centers, portrait floats right. 4. At <992 px, both center. 5. Confirm no duplicate `@media (min-width: 992px)` nesting in compiled CSS. ## UI … --------- Co-authored-by: Cursor <cursoragent@cursor.com>
Overview
PORTAL_BLOG_SHOW_AUTO_MAIN_IMAGE(default:False).False, will not render auto main image..blog-visual.<figure>.altvalue.<figcaption>.<figure>.altvalue.Related
Changes
PORTAL_BLOG_SHOW_AUTO_MAIN_IMAGEpost_detail.html<div>to<figure>for news images<figcaption>for auto main imagealt="None"in news imagesTesting
Note
Tested on new pprd.cfde-cms.tacc.utexas.edu.
FalseTrue& No duplicate image
UI
Skipped. I tested much more than is listed: images would be cumbersome to annotate, and without annotation most comparison images would look very similar; videos would be long and many.