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

MushroomObserver / mushroom-observer / 27060880959
98%

Build:
DEFAULT BRANCH: main
Ran 06 Jun 2026 11:24AM UTC
Jobs 1
Files 1430
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

06 Jun 2026 11:19AM UTC coverage: 97.113% (+0.001%) from 97.112%
27060880959

push

github

web-flow
Phlexify _section_update.erb: extract ApplicationController::SectionUpdater (#4459)

Replaces the `observations/show/_section_update.erb` partial
that was rendered by 5 controllers
(collection_numbers, herbarium_records, sequences,
external_links, namings/votes) after their CRUD actions to
broadcast two turbo_stream actions in one response:

- `replace` the `#observation_<identifier>` sub-panel container
  with the obs-show panel's Phlex view
- `update` the `#page_flash` div with the controller's flash
  messages

New: `ApplicationController::SectionUpdater` module with
`render_obs_section_update(identifier:, panel:)` private method
that issues `render(turbo_stream: [...])` with the two actions.
Included into `ApplicationController` so all 5 controllers see
it for free.

Each `render_<thing>_section_update` private method (5 total)
becomes a 4-6 line call: pick the Phlex panel class, instantiate
with the controller's ivars, hand to the shared helper. The
identifier-to-panel-class dispatch that lived in the ERB now
lives at each controller's callsite where the panel class is
already in scope.

`assert_template("observations/show/_section_update")` in 2
controller tests → selector assertions on the emitted
`turbo-stream[target='...']` elements per the phlex-conversions
rule.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

12 of 12 new or added lines in 7 files covered. (100.0%)

43760 of 45061 relevant lines covered (97.11%)

761.96 hits per line

Jobs
ID Job ID Ran Files Coverage
1 27060880959.1 06 Jun 2026 11:24AM UTC 1430
97.11
GitHub Action Run
Source Files on build 27060880959
  • Tree
  • List 1430
  • Changed 6
  • Source Changed 6
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27060880959
  • db847fe2 on github
  • Prev Build on main (#27057296670)
  • Next Build on main (#27062953923)
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