Skip to content

refactor(image cropper): accept settings object instead of positional args#3754

Open
tvdeyen wants to merge 1 commit intomainfrom
refactor-image-cropper-settings-object
Open

refactor(image cropper): accept settings object instead of positional args#3754
tvdeyen wants to merge 1 commit intomainfrom
refactor-image-cropper-settings-object

Conversation

@tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Mar 16, 2026

What is this pull request for?

Replace the five positional constructor arguments with a single settings object. The ERB template now passes all cropper settings via a single .to_json call, resolving herb-lint erb-no-unsafe-script-interpolation warnings.

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

@tvdeyen tvdeyen added this to the 8.2 milestone Mar 16, 2026
@tvdeyen tvdeyen requested a review from a team as a code owner March 16, 2026 16:48
@codecov
Copy link

codecov bot commented Mar 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.46%. Comparing base (93033dc) to head (f15505c).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3754   +/-   ##
=======================================
  Coverage   97.46%   97.46%           
=======================================
  Files         317      317           
  Lines        8431     8431           
=======================================
  Hits         8217     8217           
  Misses        214      214           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

… args

Replace the five positional constructor arguments with a single settings
object. The ERB template now passes all cropper settings via a single
.to_json call, resolving herb-lint erb-no-unsafe-script-interpolation
warnings.
@tvdeyen tvdeyen force-pushed the refactor-image-cropper-settings-object branch from e60e10d to f15505c Compare March 16, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant