fix: swap logo JPEG for transparent PNGs + optimize coach photos (#107) #108
No reviewers
Labels
No labels
domain:backend
domain:devops
domain:frontend
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/westside-landing!108
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "107-fix-logo-and-coach-assets"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Replace the opaque
logo.jpegwith transparent PNG variants across all 9 files that reference the logo, and swap 4 oversized coach photos for optimized 800w copies on the staff page. Onlysrcattribute values changed -- no HTML structure, CSS, or layout modifications.Changes
src/routes/(public)/+layout.svelte: nav logologo.jpeg->logo-transparent.pngsrc/routes/(public)/+page.svelte: hero logologo.jpeg->logo-hero-transparent.pngsrc/routes/(app)/+layout.svelte: authenticated nav logologo.jpeg->logo-transparent.pngsrc/routes/(app)/signin/+page.svelte: sign-in logologo.jpeg->logo-transparent.pngsrc/routes/(app)/register/+page.svelte: registration logologo.jpeg->logo-transparent.pngsrc/routes/(app)/forgot-password/+page.svelte: forgot-password logologo.jpeg->logo-transparent.pngsrc/routes/(app)/reset-password/+page.svelte: reset-password logologo.jpeg->logo-transparent.pngsrc/routes/(app)/checkout/+page.svelte: checkout logologo.jpeg->logo-transparent.pngsrc/routes/(app)/jersey/+page.svelte: jersey page logologo.jpeg->logo-transparent.pngsrc/routes/(public)/staff/+page.svelte: 4 coach photos swapped to-800w.jpgoptimized variants (james-taylor,ken-seka,kj-ng,abbie-sa);marcus.jpgunchanged (already 44KB)Test Plan
marcus.jpgis unchanged on the staff pagelogo.jpegin the codebaseReview Checklist
srcattribute values changed -- no HTML structure, CSS, or layout touchedRelated Notes
forgejo_admin/westside-app #107-- Bug: wrong logo assetsPR #108 Review
DOMAIN REVIEW
Tech stack: SvelteKit (static adapter), HTML/CSS, external image assets via MinIO.
This PR is a pure asset-reference change: 13 lines added, 13 lines removed, all modifying
srcattribute values on<img>tags. No HTML structure, CSS, JavaScript logic, or component architecture changes.Correctness:
logo.jpeg) have been replaced: 8 files uselogo-transparent.png, 1 file (hero on+page.svelte) correctly uses the largerlogo-hero-transparent.pngvariant. Verified via codebase grep -- zero remaininglogo.jpegreferences.-800w.jpgoptimized variants (james-taylor,ken-seka,kj-ng,abbie-sa).marcus.jpgcorrectly left unchanged.widthandheightattributes preserved on all<img>tags -- no layout shift (CLS) regressions introduced.Accessibility:
altattributes unchanged and appropriate. The emptyalt=""on the app layout nav logo is correct (decorative image adjacent to text "Westside" which provides the accessible name).alt="Westside Kings & Queens"-- correct.Performance:
.png/.jpegto.jpgfor coaches is fine (lossy format appropriate for photos).Pre-existing observation (not introduced by this PR):
The MinIO base URL
https://minio-api.tail5b443a.ts.net/assets/westside/is hardcoded across 22 occurrences in 12.sveltefiles. Extracting this to a constant or environment variable would reduce future maintenance burden and make asset host migration a one-line change. This is not scope for this PR -- noting for future consideration.BLOCKERS
None.
This is a pure asset-reference swap with no new functionality, no logic changes, and no user input handling. None of the BLOCKER criteria apply:
NITS
width/heightaccuracy after resize: Thewidth="400" height="266"onkj-ng-800w.jpgandwidth="400" height="711"onabbie-sa-800w.jpgreflect the original aspect ratios. If the 800w resize changed the aspect ratio, these attributes should be updated to match. If the resize was proportional (which is typical), these are fine. Worth a quick visual check.SOP COMPLIANCE
107-fix-logo-and-coach-assetsreferences issue #107Closes #107PROCESS OBSERVATIONS
srcattributes. The only failure mode is a 404 if the new assets do not exist in MinIO at the referenced paths -- this is validated by the Test Plan's visual checks rather than automated tests, which is appropriate for static assets.VERDICT: APPROVED