fix: laat de beeldcarrousel via ImageService kiezen in plaats van zelf #559
No reviewers
Labels
No labels
accepted
bug
declined
docs
duplicate
enhancement
good first issue
in-progress
needs-info
privacy
security
triage
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
LibreKAT/Ocideck!559
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/carousel-web"
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
The carousel made its own
FilePickercall and read.pathfrom it. On web that is ablob:URL — it looks like a path, points nowhere, and the rest of the app expects amem:key there. The chosen image landed in the slide as a broken reference.Closes #526
Why this one is fixed rather than hidden
The logo picker (#506) was hidden, because a logo is stored as a filesystem path in the theme profile and a browser has nothing to put there. That reasoning does not transfer. A carousel exists to hand an image back to a slide, and
ImageService.pickImageDetailedalready does exactly that on both platforms — with the bytes branch for the browser, the size cap, and the check that the bytes really are an image.Maintaining a second
FilePickercall meant missing all three. The fix removes the duplicate rather than gating it.filePickerPathBaselinedrops from 8 to 7 — progress on #528 as a side effect, not by touching the baseline by hand.The new class ratchet earned its keep immediately
#518's per-class ratchet fired on my own comment: four lines over the ceiling for
_ImageCarouselPickerState. I shortened the comment rather than raising the baseline. That is what the gate is for, and it is worth saying out loud — the tempting move is always the other one.Verification
make checkgreen. No new test: the broken branch is the web one, andkIsWebis alwaysfalseunderflutter test— the same structural limit recorded in #505/#506. What guards it now is that the call site is gone entirely, whichcheck_conventionsconfirms by no longer finding it.