• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Build has been canceled!

RoundingWell / care-ops-frontend / 7aa5b7f8-1c6c-4217-9451-6c465b36e5e1

02 Jun 2026 03:06PM UTC coverage: 85.595% (-14.4%) from 100.0%
7aa5b7f8-1c6c-4217-9451-6c465b36e5e1

Pull #1707

circleci

paulfalgout
fix(ws): preserve filter-only reconnect subscriptions
Pull Request #1707: fix(ws): preserve filter-only reconnect subscriptions

1535 of 1893 branches covered (81.09%)

Branch coverage included in aggregate %.

0 of 3 new or added lines in 1 file covered. (0.0%)

794 existing lines in 88 files now uncovered.

5328 of 6125 relevant lines covered (86.99%)

167.15 hits per line

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

95.65
/src/js/views/programs/shared/components/form_component.js
1
import Radio from 'backbone.radio';
2
import hbs from 'handlebars-inline-precompile';
3

4
import 'scss/modules/buttons.scss';
5

6
import intl from 'js/i18n';
7

8
import Droplist from 'js/components/droplist';
9

10
import './form-component.scss';
11

12
const i18n = intl.programs.shared.components.formComponent;
132✔
13

14
const FormTemplate = hbs`
132✔
15
  <button class="js-button button-secondary button__group flex-grow" {{#if isDisabled}}disabled{{/if}}>
16
    {{far "square-poll-horizontal"}}<span>{{ name }}</span>
17
  </button>
18
`;
19
const NoFormTemplate = hbs`
132✔
20
  <button class="js-button button-secondary w-100" {{#if isDisabled}}disabled{{/if}}>
21
    {{far "square-poll-horizontal"}}<span>{{ @intl.programs.shared.components.formComponent.defaultText }}</span>
22
  </button>
23
`;
24

25
let currentWorkspaceCache;
26
let formsCollection;
27

28
function getForms(workspace) {
29
  if (formsCollection) return formsCollection;
8✔
30
  formsCollection = workspace.getForms();
4✔
31
  return formsCollection;
4✔
32
}
33

34
export default Droplist.extend({
35
  viewOptions() {
36
    const selected = this.getState('selected');
8✔
37
    return {
8✔
38
      className: 'flex',
39
      template: selected ? FormTemplate : NoFormTemplate,
8✔
40
      templateContext() {
41
        return {
8✔
42
          isDisabled: this.getOption('state').isDisabled,
43
        };
44
      },
45
      tagName: 'div',
46
      triggers: {
47
        'click .js-button': 'click',
48
        'focus .js-button': 'focus',
49
      },
50
    };
51
  },
52
  viewEvents: {
53
    'click': 'onClick',
54
  },
55
  picklistOptions: {
56
    canClear: true,
57
    headingText: i18n.headingText,
58
    placeholderText: i18n.placeholderText,
59
    noResultsText: i18n.noResultsText,
60
    isSelectlist: true,
61
    itemTemplateContext: {
62
      icon: {
63
        type: 'far',
64
        icon: 'square-poll-horizontal',
65
      },
66
    },
67
    attr: 'name',
68
  },
69
  initialize({ form }) {
70
    const currentWorkspace = Radio.request('workspace', 'current');
8✔
71

72
    if (currentWorkspaceCache !== currentWorkspace.id) {
8✔
73
      formsCollection = null;
4✔
74
      currentWorkspaceCache = currentWorkspace.id;
4✔
75
    }
76

77
    this.collection = getForms(currentWorkspace);
8✔
78

79
    this.setState({ selected: form });
8✔
80
  },
81
  popWidth() {
82
    return this.getView().$el.outerWidth();
1✔
83
  },
84
  onChangeSelected(selected) {
UNCOV
85
    this.triggerMethod('change:form', selected);
×
86
  },
87
});
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