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

kobotoolbox / kpi / 26396593459 / 10
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: leszek/dev-2176-orvalify-formmedia
DEFAULT BRANCH: master
Ran 25 May 2026 10:56AM UTC
Files 914
Run time 47s
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

25 May 2026 10:47AM UTC coverage: 53.604% (-1.3%) from 54.893%
26396593459.10

push

github

web-flow
refactor(libraryAssetForm): remove mixins DEV-2126 (#7068)

### 💭 Notes

Tiny cleanup for `libraryAssetForm.js` - stop using the deprecated
`contextRouter` mixin, and drop a Reflux listener mixin that wasn't
doing anything.

Changes here:

- `jsapp/js/components/modalForms/libraryAssetForm.js`
- Removed `reactMixin(..., mixins.contextRouter)`. The only two methods
it provided to this component were `this.isLibrarySingle()` and
`this.currentAssetID()`, both of which are thin wrappers around
`routerUtils`. Replaced them at the one call site with
`isAnyLibraryRoute()` + `getRouteAssetUid()` from
`#/router/routerUtils`, reusing the uid for both the guard and the
`managedCollectionsStore.find(...)` call so we don't read the route
twice.
- Removed `reactMixin(..., Reflux.ListenerMixin)`. The component already
manages its own `this.unlisteners` array and never calls `this.listenTo`
/ `this.stopListeningToAll`, so the mixin was effectively dead weight.
  - Dropped the now-unused `reactMixin`, `Reflux`, and `mixins` imports.

No behavior changes — same code path, same guard, same store lookup,
just without the inheritance gymnastics. Reviewer should find this
boring in the best way.

This is 1st part of preparation for actual DEV-2126 fix.

### 👀 Preview steps

1. â„šī¸ have an account
2. go to **Library**
3. open a collection (so you're on a "library single" page)
4. click **NEW** → **Template** to open the create-template modal
5. fill in a name and hit **Create**
6. đŸŸĸ notice the new template lands inside the collection you were
viewing (parent relationship still works)
7. go back to **Library** root (not inside any collection)
8. click **NEW** → **Template**, create one
9. đŸŸĸ notice it lands at the library root, not parented to anything
10. for good measure: edit an existing template's details and save
11. đŸŸĸ notice it saves and the modal closes as before

4842 of 12333 branches covered (39.26%)

19918 of 37158 relevant lines covered (53.6%)

0.54 hits per line

Source Files on job 26396593459.10
  • Tree
  • List 914
  • Changed 200
  • Source Changed 0
  • Coverage Changed 200
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 26396593459
  • 5f1e8e4a on github
  • Prev Job for on main (#26371466996.5)
  • Next Job for on main (#26401549835.7)
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