Remove code duplication in ImageAdapters

Created on 4 September 2024, 12 days ago
Updated 14 September 2024, 2 days ago

Overview

There is 3x Image adapter in experience builder, they all extend AdapterBase but only change one function. Each image adapter has it's own constructors and create functions that do the same thing. Lets treat ImageAdapter as a base and have the other two extend off that one.

I refactored these as part of a POC that didn't end up getting merged. Extracting those changes out to this issue.

Proposed resolution

Image Adapter is no longer a final class
ImageUrl & ImageAndStyle adaptors now extend ImageAdapter

User interface changes

N/A

📌 Task
Status

Needs review

Component

Code

Created by

🇳🇿New Zealand DanielVeza Brisbane, AU

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024