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

MushroomObserver / mushroom-observer / 22119095372
96%
main: 96%

Build:
Build:
LAST BUILD BRANCH: dependabot/bundler/solid_queue-1.3.2
DEFAULT BRANCH: main
Ran 17 Feb 2026 11:02PM UTC
Jobs 1
Files 900
Run time 3min
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

17 Feb 2026 10:56PM UTC coverage: 95.329% (-0.6%) from 95.951%
22119095372

Pull #3938

github

JoeCohen
Convert Translation Edit form to Phlex, Claude 1st draft

New files
 - form_object/translation.rb — Minimal FormObject with tag attribute and persisted? = true (forces PATCH method)
- translation_form.rb — Phlex form component using Pattern B (internal FormObject creation) with FieldProxy for dynamic textareas

Modified files
- edit.erb — Renders Components::TranslationForm instead of the _form partial
- index.erb — Same change for the index page

Key design decisions
- FieldProxy for dynamic fields: The translation form has dynamic textarea fields (tag_#{ttag}) with flat parameter names (not nested under a model namespace). FieldProxy with nil namespace generates the correct flat name="tag_one" attributes that the controller expects
- Pattern B form: The form creates its own FormObject internally since there's no ActiveRecord model backing translation edits
- Official section fix: The original ERB had a silent no-op where render(partial: "translations/official") was inside <% %> (no output). The Phlex component properly renders the official text section above the form for non-official languages
- Boolean attribute gotcha: Phlex renders turbo: true as a boolean HTML attribute (data-turbo) rather than data-turbo="true". Used string "true" to match Rails tag helper behavior that Turbo expects
Pull Request #3938: Convert Translation Edit form to Phlex, Claude 1st draft

0 of 232 new or added lines in 2 files covered. (0.0%)

34103 of 35774 relevant lines covered (95.33%)

675.06 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
0.0
app/classes/form_object/translation.rb
226
0.0
app/components/translation_form.rb
Jobs
ID Job ID Ran Files Coverage
1 22119095372.1 17 Feb 2026 11:02PM UTC 900
95.33
GitHub Action Run
Source Files on build 22119095372
  • Tree
  • List 900
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22119095372
  • Pull Request #3938
  • PR Base - main (#22107320285)
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