- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 6.2k
 
Scoped label display improvements #23164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Closed
      
      
    
  
     Closed
                    Changes from 5 commits
      Commits
    
    
            Show all changes
          
          
            12 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      ebd797a
              
                Deduplicate template code for labels selection menu
              
              
                brechtvl c278def
              
                Use scoped label display and menu grouping also for non-exclusive labels
              
              
                brechtvl 7ebea3d
              
                Remove slanted divider in scoped label display, make it straight
              
              
                brechtvl bc7a351
              
                Fix scoped label left and right part breaking across lines
              
              
                brechtvl f25778c
              
                Better fix for scoped label break across lines using inline-flex
              
              
                brechtvl e8c6878
              
                Merge branch 'main' into scoped-label-display
              
              
                brechtvl 8a402d0
              
                Reduce contrast between scope and item background colors
              
              
                brechtvl d89e402
              
                Merge branch 'main' into scoped-label-display
              
              
                brechtvl df53444
              
                Merge branch 'main' into scoped-label-display
              
              
                brechtvl 204352c
              
                Merge branch 'main' into scoped-label-display
              
              
                brechtvl beb683e
              
                Address comments
              
              
                brechtvl d71306e
              
                Merge branch 'main' into scoped-label-display
              
              
                lafriks File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| <div class="ui {{if or (not .HasIssuesOrPullsWritePermission) .Repository.IsArchived}}disabled{{end}} floating jump select-label dropdown"> | ||
| <a class="text gt-df gt-ac muted"> | ||
| <strong>{{.locale.Tr "repo.issues.new.labels"}}</strong> | ||
| {{if and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}} | ||
| {{svg "octicon-gear" 16 "gt-ml-2"}} | ||
| {{end}} | ||
| </a> | ||
| {{if .Issue}} | ||
| <div class="filter menu" data-action="update" data-issue-id="{{$.Issue.ID}}" data-update-url="{{$.RepoLink}}/issues/labels"> | ||
| {{else}} | ||
| <div class="filter menu" data-id="#label_ids"> | ||
| {{end}} | ||
                
      
                  brechtvl marked this conversation as resolved.
               
              
                Outdated
          
            Show resolved
            Hide resolved
         | 
||
| <div class="header" style="text-transform: none;font-size:16px;">{{.locale.Tr "repo.issues.new.add_labels_title"}}</div> | ||
| {{if or .Labels .OrgLabels}} | ||
| <div class="ui icon search input"> | ||
| <i class="icon gt-df gt-ac gt-jc">{{svg "octicon-search" 16}}</i> | ||
| <input type="text" placeholder="{{.locale.Tr "repo.issues.filter_labels"}}"> | ||
                
      
                  delvh marked this conversation as resolved.
               
          
            Show resolved
            Hide resolved
         | 
||
| </div> | ||
| {{end}} | ||
| <a class="no-select item" href="#">{{.locale.Tr "repo.issues.new.clear_labels"}}</a> | ||
| {{if or .Labels .OrgLabels}} | ||
| {{$previousScope := "_no_scope"}} | ||
| {{range .Labels}} | ||
| {{$scope := .Scope}} | ||
| {{$exclusiveScope := .ExclusiveScope}} | ||
| {{if and (ne $previousScope "_no_scope") (ne $previousScope $scope)}} | ||
| <div class="ui divider"></div> | ||
| {{end}} | ||
| {{$previousScope = $scope}} | ||
                
      
                  lafriks marked this conversation as resolved.
               
          
            Show resolved
            Hide resolved
         | 
||
| <a class="{{if .IsChecked}}checked{{end}} item" href="#" data-id="{{.ID}}" data-id-selector="#label_{{.ID}}" data-scope="{{$exclusiveScope}}"><span class="octicon-check {{if not .IsChecked}}invisible{{end}}">{{if $exclusiveScope}}{{svg "octicon-dot-fill"}}{{else}}{{svg "octicon-check"}}{{end}}</span>  {{RenderLabel .}} | ||
| {{if .Description}}<br><small class="desc">{{.Description | RenderEmoji}}</small>{{end}}</a> | ||
| {{end}} | ||
| <div class="ui divider"></div> | ||
| {{$previousScope := "_no_scope"}} | ||
| {{range .OrgLabels}} | ||
| {{$scope := .Scope}} | ||
| {{$exclusiveScope := .ExclusiveScope}} | ||
| {{if and (ne $previousScope "_no_scope") (ne $previousScope $scope)}} | ||
| <div class="ui divider"></div> | ||
| {{end}} | ||
| {{$previousScope = $scope}} | ||
| <a class="{{if .IsChecked}}checked{{end}} item" href="#" data-id="{{.ID}}" data-id-selector="#label_{{.ID}}" data-scope="{{$exclusiveScope}}"><span class="octicon-check {{if not .IsChecked}}invisible{{end}}">{{if $exclusiveScope}}{{svg "octicon-dot-fill"}}{{else}}{{svg "octicon-check"}}{{end}}</span>  {{RenderLabel .}} | ||
| {{if .Description}}<br><small class="desc">{{.Description | RenderEmoji}}</small>{{end}}</a> | ||
| {{end}} | ||
| {{else}} | ||
| <div class="header" style="text-transform: none;font-size:14px;">{{.locale.Tr "repo.issues.new.no_items"}}</div> | ||
| {{end}} | ||
| </div> | ||
| </div> | ||
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.