Skip to content

Conversation

chaimann
Copy link
Contributor

@chaimann chaimann commented Jul 5, 2025

Important

blocked by #6294

Summary

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

The following are not always needed:

  • 📖 I have updated the README to account for my changes.
  • 📑 I have documented new code with YARD.
  • 🛣️ I have opened a PR to update the guides.
  • ✅ I have added automated tests to cover my changes.
  • 📸 I have attached screenshots to demo visual changes.

chaimann added 15 commits June 30, 2025 18:35
This will allow to clean up existing forms and write more concise forms
in the future.
Custom form builder encapsulates all the calls to "render", "component()"
initializations, and assumes some defaults, e.g. if "checked" is not
passed to "f.checkbox" we get it by calling @object.send(method)
Inherit from resources controller, define necessary overriding methods.
Render links in the table.
Removes row_url and replaces it with edit_path and usages of new routing
paths.
For validation errors to be shown correctly we need a proper
identifier for turbo stream to replace, default one used by resources
controller is :resource_modal but this name does not fit for our page so
we use a custom name.
@chaimann chaimann force-pushed the admin-payment-methods-crud branch from 9bc04e4 to e701f96 Compare July 5, 2025 10:58
Copy link

codecov bot commented Jul 5, 2025

Codecov Report

❌ Patch coverage is 89.70588% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.97%. Comparing base (bbca5cc) to head (e701f96).
⚠️ Report is 123 commits behind head on main.

Files with missing lines Patch % Lines
admin/app/lib/solidus_admin/form_builder.rb 79.41% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6302      +/-   ##
==========================================
+ Coverage   86.65%   88.97%   +2.31%     
==========================================
  Files         521      867     +346     
  Lines       11943    18471    +6528     
==========================================
+ Hits        10349    16434    +6085     
- Misses       1594     2037     +443     

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant