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

RoundingWell / care-ops-frontend / fe77af74-9630-40cd-848d-3457b9ab4909

09 Jun 2026 08:01PM UTC coverage: 71.416% (-28.6%) from 100.0%
fe77af74-9630-40cd-848d-3457b9ab4909

Pull #1715

circleci

nmajor25
feat(forms): add draft status button with discard dropdown
Pull Request #1715: feat(forms): replace draft prompt with persistent draft status indicator

1303 of 1921 branches covered (67.83%)

Branch coverage included in aggregate %.

33 of 52 new or added lines in 3 files covered. (63.46%)

1672 existing lines in 99 files now uncovered.

4466 of 6157 relevant lines covered (72.54%)

129.47 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.0
/src/js/views/programs/program/program_views.js
1
import Radio from 'backbone.radio';
2
import hbs from 'handlebars-inline-precompile';
3
import { View } from 'marionette';
4

5
import PreloadRegion from 'js/regions/preload_region';
6

7
import './program.scss';
8

9
const ContextTrailView = View.extend({
71✔
10
  modelEvents: {
11
    'change:name': 'render',
12
  },
13
  className: 'program__context-trail',
14
  template: hbs`
15
    {{#if hasLatestList}}
16
      <a class="js-back program__context-link">
17
        {{fas "chevron-left"}}{{ @intl.programs.program.programViews.contextBackBtn }}
18
      </a>
19
      {{fas "chevron-right"}}
20
    {{/if}}{{ name }}
21
  `,
22
  triggers: {
23
    'click .js-back': 'click:back',
24
  },
25
  onClickBack() {
UNCOV
26
    Radio.request('history', 'go:latestList');
×
27
  },
28
  templateContext() {
29
    return {
7✔
30
      hasLatestList: Radio.request('history', 'has:latestList'),
31
    };
32
  },
33
});
34

35
const LayoutView = View.extend({
71✔
36
  className: 'program__frame',
37
  template: hbs`
38
    <div class="program__layout">
39
        <div data-context-trail-region></div>
40
        <div data-content-region></div>
41
    </div>
42
    <div class="program__sidebar" data-sidebar-region></div>
43
  `,
44
  regions: {
45
    contextTrail: {
46
      el: '[data-context-trail-region]',
47
      replaceElement: true,
48
    },
49
    sidebar: '[data-sidebar-region]',
50
    content: {
51
      el: '[data-content-region]',
52
      regionClass: PreloadRegion,
53
      replaceElement: true,
54
    },
55
  },
56
  onRender() {
57
    this.showChildView('contextTrail', new ContextTrailView({ model: this.model }));
7✔
58
  },
59
});
60

61
export {
62
  LayoutView,
63
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc