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

mroderick / codebar-planner / 21806779333
95%
master: 95%

Build:
Build:
LAST BUILD BRANCH: feature/chapters-sidebar-v3
DEFAULT BRANCH: master
Ran 08 Feb 2026 10:50PM UTC
Jobs 1
Files 174
Run time 1min
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

08 Feb 2026 10:44PM UTC coverage: 95.404%. First build
21806779333

push

github

mroderick
fix: replace broken chosen-rails gem with official Chosen v1.8.7 assets

## Problem

The chosen-rails gem's support-rails-8 branch has broken CoffeeScript
compilation that causes Chosen dropdowns to appear empty despite having
populated <option> elements in the DOM.

The CoffeeScript comprehension syntax was compiling to broken JavaScript
with uninitialized loop variables (`for (undefined; i < len; i++)`),
causing loops to never execute. This affected both option parsing and
DOM rendering.

## Root Cause

CoffeeScript 1.12.2 (from 2016) combined with the support-rails-8
branch produces incorrect JavaScript compilation for comprehension loops.

## Solution

Removed the chosen-rails gem dependency and replaced it with official
pre-compiled Chosen v1.8.7 assets in vendor/:

- vendor/assets/javascripts/chosen.jquery.js
- vendor/assets/stylesheets/chosen.css
- vendor/assets/images/chosen-sprite.png
- vendor/assets/images/chosen-sprite@2x.png

Updated application.js to require chosen.jquery from vendor instead of
the gem.

## Benefits

1. Avoids CoffeeScript compilation issues entirely
2. Removes unnecessary gem dependency
3. Full control over Chosen version
4. Simpler asset pipeline (no gem-based asset resolution)

## Additional Fixes

- Fixed JavaScript syntax error in application.js (chosen() options)
- Fixed script loading order (jQuery before Bootstrap)
- Added blank prompt option to members dropdown

## Testing

Verified working:
- Member directory dropdown (240 members)
- Search/filter functionality
- Keyboard navigation
- Single deselect option

## Future Consideration

This uses the jQuery-dependent Chosen library. Long-term, consider
replacing with a modern JavaScript alternative without jQuery dependency.

3238 of 3394 relevant lines covered (95.4%)

44.75 hits per line

Jobs
ID Job ID Ran Files Coverage
1 21806779333.1 08 Feb 2026 10:50PM UTC 1044
69.82
GitHub Action Run
Source Files on build 21806779333
  • Tree
  • List 174
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21806779333
  • e6a66d09 on github
  • Delete
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