<commit_before>{{#if isEditingChannels}}
  <div local-class="channel-editor">
    <div local-class="channel-editor-select">
      {{#power-select-multiple
        options=channels
        selected=selectedChannels
        placeholder="Add channels..."
        onchange=(action (mut selectedChannels))
        as |channel|}}
        {{channel.name}}
      {{/power-select-multiple}}
    </div>

    <button local-class="done-button" onclick={{action 'persistChannels'}}>Done</button>
  </div>
{{else}}
  <div local-class="channel-summary">
    {{svg-jar 'slack-mark' height='16' width='16' local-class='icon'}}
    <div local-class="channel-summary-list">
      {{#each canvasChannels as |channel|}}
        {{link-to channel.name 'team' (query-params channel=channel.name)
          local-class='channel-summary-list-item'}}
      {{/each}}
    </div>

    <button local-class="edit-button edit-button--placeholder" onclick={{action (toggle 'isEditingChannels' this)}}>
      {{#if channelList}}
        Edit
      {{else}}
        Add Channels
      {{/if}}
    </button>
  </div>
{{/if}}<commit_msg>Fix button label if no channels and fix searching<commit_after>{{#if isEditingChannels}}
  <div local-class="channel-editor">
    <div local-class="channel-editor-select">
      {{#power-select-multiple
        options=channels
        placeholder='Add channels...'
        searchField='name'
        selected=selectedChannels
        onchange=(action (mut selectedChannels))
        as |channel|}}
        {{channel.name}}
      {{/power-select-multiple}}
    </div>

    <button local-class="done-button" onclick={{action 'persistChannels'}}>Done</button>
  </div>
{{else}}
  <div local-class="channel-summary">
    {{svg-jar 'slack-mark' height='16' width='16' local-class='icon'}}
    <div local-class="channel-summary-list">
      {{#each canvasChannels as |channel|}}
        {{link-to channel.name 'team' (query-params channel=channel.name)
          local-class='channel-summary-list-item'}}
      {{/each}}
    </div>

    <button local-class="edit-button edit-button--placeholder" onclick={{action (toggle 'isEditingChannels' this)}}>
      {{#if canvasChannels}}
        Edit
      {{else}}
        Add Channels
      {{/if}}
    </button>
  </div>
{{/if}}
{'fraction_non_alphanumeric': 0.17416225749559083, 'fraction_numerical': 0.003527336860670194, 'mean_word_length': 3.008833922261484, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4034801', 'n_tokens_mistral': 697, 'n_tokens_neox': 690, 'n_words': 134}