Skip to content

Commit

Permalink
Issues Table improvements (#116)
Browse files Browse the repository at this point in the history
* Filter out issues in archived repos

* Indicate the current page in the issues table
  • Loading branch information
imacrayon authored Oct 21, 2023
1 parent 72ba9e7 commit bc13341
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion issues.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func issueSearch(ctx context.Context, label, token string, ch chan<- Issue) erro
// Tell the request to use our context so we can cancel it in-flight if needed
req = req.WithContext(ctx)

q := fmt.Sprintf(`is:open type:issue label:"%s"`, label)
q := fmt.Sprintf(`is:open type:issue archived:false label:"%s"`, label)
for k, v := range orgs {
if v.Visible == true {
q += " org:" + k
Expand Down
14 changes: 11 additions & 3 deletions resources/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
@tailwind components;
@tailwind utilities;

.paging_simple_numbers {
.dataTables_paginate {
border-radius: theme('borderRadius.DEFAULT');
overflow: hidden;
border: 1px solid theme('colors.gray.200');
border-right: none;
display: inline-flex;
}

.paging_simple_numbers>span {
.dataTables_paginate>span {
display: flex;
}

.paging_simple_numbers a {
.dataTables_paginate a {
display: block;
font-size: .875rem;
padding: .5rem .75rem;
Expand All @@ -23,6 +23,10 @@
border: 1px solid theme('colors.gray.200');
}

.dataTables_paginate a.current {
background-color: theme('colors.teal.100');
}

.dataTables_filter label {
font-size: .875rem;
font-weight: 500;
Expand All @@ -35,3 +39,7 @@
box-shadow: theme('boxShadow.sm');
border: 1px solid theme('colors.gray.300');
}

.dataTables_wrapper table a {
text-decoration: underline;
}

0 comments on commit bc13341

Please sign in to comment.