Skip to content

Simplify manual forms with direct helper binding - #45

Merged
josbeir merged 2 commits into
mainfrom
feature/direct-form-binding
Oct 18, 2026
Merged

josbeir merged 2 commits into
mainfrom
feature/direct-form-binding

Conversation

@josbeir

@josbeir josbeir commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Manually arranged forms can now start with $this->Form->bind($article), followed by the existing open(), control(), submit(), and close() calls. form() remains the fluent builder for both manual bindings and complete forms. Configured manual forms continue to use form(...)->method(...)->url(...)->bind(); reusable configs remain optional.

Expose the existing binding implementation directly rather than adding another wrapper. Direct binding, builders, and standalone actions share context selection, factory injection, session extensions, and security bookkeeping. Update the homepage, introductory examples, and reference to distinguish the two entry points and show optional immutable FormConfig settings.

Validation:

  • composer validate --strict and composer check: 806 tests, 3,174 assertions; analysis, lint, Rector, and formatting pass.
  • composer test-coverage with Xdebug: 100% line coverage (2,511/2,511).
  • npm ci, npm run docs:build, and npm run test:browser: all 53 browser tests pass using the direct binding entry point in the main form fixture. Documentation API calls, imports, links, anchors, and populated homepage code tabs also checked.

@codecov-commenter

codecov-commenter commented Oct 18, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (1a42e99) to head (fc5069a).

Additional details and impacted files
@@             Coverage Diff             @@
##                main       #45   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity      1088      1088           
===========================================
  Files            120       120           
  Lines           2935      2935           
===========================================
  Hits            2935      2935           

☔ View full report in Codecov by Harness.
📢 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.

@josbeir
josbeir merged commit 64a47db into main Oct 18, 2026
6 checks passed
@josbeir
josbeir deleted the feature/direct-form-binding branch October 18, 2026 19:02
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