Skip to content

feat: Add picture-editor component#3538

Merged
tvdeyen merged 4 commits intomainfrom
picture-editor-component
Dec 24, 2025
Merged

feat: Add picture-editor component#3538
tvdeyen merged 4 commits intomainfrom
picture-editor-component

Conversation

@tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Dec 23, 2025

What is this pull request for?

Converts the ingredient picture editor into a custom element.
Also fix a bug that was introduced in #3509 e5d8896

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 requested a review from a team as a code owner December 23, 2025 16:19
@tvdeyen tvdeyen added this to the 8.1 milestone Dec 23, 2025
@tvdeyen tvdeyen force-pushed the picture-editor-component branch from 55aa272 to ebf9123 Compare December 23, 2025 16:36
No need to init from outside. The browser is very
good at this for custom elements.

Signed-off-by: Thomas von Deyen <vondeyen@blish.cloud>
When you press Enter in an input field inside a form,
browsers automatically submit the form by triggering
a click on the first button they find.
Since the deleteButton is a <button> element without
an explicit type attribute, it defaults to type="submit",
which makes it a target for Enter key submissions.

Signed-off-by: Thomas von Deyen <vondeyen@blish.cloud>
Signed-off-by: Thomas von Deyen <vondeyen@blish.cloud>
appendChild will not remove the existing placeholder.

Signed-off-by: Thomas von Deyen <vondeyen@blish.cloud>
@tvdeyen tvdeyen force-pushed the picture-editor-component branch from ebf9123 to 597db84 Compare December 23, 2025 16:54
@codecov
Copy link

codecov bot commented Dec 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.21%. Comparing base (9d456c9) to head (597db84).
⚠️ Report is 17 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3538   +/-   ##
=======================================
  Coverage   97.21%   97.21%           
=======================================
  Files         288      288           
  Lines        7608     7608           
=======================================
  Hits         7396     7396           
  Misses        212      212           

☔ 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.

@tvdeyen tvdeyen merged commit 42c9964 into main Dec 24, 2025
19 checks passed
@tvdeyen tvdeyen deleted the picture-editor-component branch December 24, 2025 09:04
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.

2 participants