fix(platform): enable custom logo file upload (AAP-65130) #3908
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 221 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.323
Real PR Conversation Timeline
1 comments
"Review active on #3908"
general
weight: 0.35
redhat-chai-bot
Summary
Fixes AAP-65130: users could not upload a custom logo from Settings → Platform gateway → Edit.
Gateway OPTIONS exposes
custom_logoas a CharField (type: "string"), so the edit form rendered a plain text input with no Browse button. This PR special-casescustom_logoto usePageFormFileUploadand converts the selectedFileto a data URL before PUT.Type of Change
Risk Analysis - REQUIRED
Testing
Manual Testing
1. Log in as admin → Settings → Platform gateway → Edit
2. Under Custom Login, confirm Custom logo shows Browse / Clear
3. Upload a GIF, PNG, or JPEG → Save
4. Log out and confirm the custom logo appears on the login page
Screenshots
BEFORE:
AFTER:
JIRA: AAP-65130