• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MushroomObserver / mushroom-observer / 26544194847
97%

Build:
DEFAULT BRANCH: main
Ran 27 May 2026 11:15PM UTC
Jobs 1
Files 1019
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 May 2026 11:11PM UTC coverage: 96.449% (+0.001%) from 96.448%
26544194847

push

github

web-flow
ApplicationForm field helpers: accept String name for non-bound fields + sweep callers (#4382)

* ApplicationForm field helpers: accept String field_name for non-bound fields

Generalize the pattern `hidden_field` has carried alone: every
`*_field` helper now accepts either a Symbol (model-bound; field
reads/writes through the form's model / FormObject) or a String
(raw HTML `name` attribute; value carried via the `value:` option).
This lets non-bound fields — operation state under nested namespaces
like `member[lat]`, `list[members]`, `member[notes][Cap]` — go
through the same helpers as model attributes, instead of forcing
callers into `Components::ApplicationForm::FieldProxy.new(...)` +
`render(Components::ApplicationForm::TextField.new(proxy, ...))`
boilerplate at every site.

Pattern in callers, before:

    proxy = Components::ApplicationForm::FieldProxy.new(
      "member", :specimen, "1"
    )
    render(Components::ApplicationForm::CheckboxField.new(
      proxy, checked: @member_specimen, label: ...
    ))

After:

    checkbox_field("member[specimen]", value: "1",
                                       checked: @member_specimen,
                                       label: ...)

## How it works

`FieldProxy` already mirrored most of `Superform::Rails::Field`'s
shape (`.dom.{id,name}`, `.value`, `.key`, `.parent`). It was
missing the factory methods (`.text`, `.textarea`, `.checkbox`,
`.select`, `.radio`, `.autocompleter`, `.date`, `.file`,
`.read_only`, `.static`) that `Field` overrides to build the
Bootstrap-styled MO field components. The fix:

- Extract those factory methods into `FieldFactoryMethods` (one
  module, single source). Both `Field` and `FieldProxy` include it.
  `AUTOCOMPLETER_OPTIONS` moves to the module alongside the
  autocompleter method that uses it.
- Each `*_field` helper grows one line: `f = resolve_field(name,
  value:)` — Symbol → `field(name)`, String → `FieldProxy.new(nil,
  name, value)`. Downstream `.text/.tex... (continued)

79 of 79 new or added lines in 11 files covered. (100.0%)

39111 of 40551 relevant lines covered (96.45%)

665.19 hits per line

Jobs
ID Job ID Ran Files Coverage
1 26544194847.1 27 May 2026 11:15PM UTC 1019
96.45
GitHub Action Run
Source Files on build 26544194847
  • Tree
  • List 1019
  • Changed 11
  • Source Changed 11
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26544194847
  • dcff3807 on github
  • Prev Build on main (#26528462558)
  • Next Build on main (#26547492548)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc