Skip to content

Commit

Permalink
Release of 0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jzyinq committed Jul 26, 2024
1 parent c8565bb commit 22b7523
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 6 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

## [0.10.0] - 2024-07-26
### Added
- `l` shortcut in `gojira worklogs` to reload latest issues

## [0.9.0] - 2024-06-03
### Added
- Jump by a month on calendar using shift + left/right arrow key
Expand Down Expand Up @@ -117,7 +121,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Added
- Initial release of gojira

[Unreleased]: https://github.com/jzyinq/gojira/compare/0.9.0...master
[Unreleased]: https://github.com/jzyinq/gojira/compare/0.10.0...master
[0.10.0]: https://github.com/jzyinq/gojira/compare/0.9.0...0.10.0
[0.9.0]: https://github.com/jzyinq/gojira/compare/0.8.1...0.9.0
[0.8.1]: https://github.com/jzyinq/gojira/compare/0.8.0...0.8.1
[0.8.0]: https://github.com/jzyinq/gojira/compare/0.7.0...0.8.0
Expand Down
3 changes: 2 additions & 1 deletion gojira/calendar.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package gojira

import (
"fmt"
"time"

"github.com/gdamore/tcell/v2"
"github.com/rivo/tview"
"github.com/sirupsen/logrus"
"time"
)

type Calendar struct {
Expand Down
7 changes: 4 additions & 3 deletions gojira/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ package gojira

import (
"fmt"
"github.com/charmbracelet/huh/spinner"
"github.com/sirupsen/logrus"
"github.com/urfave/cli/v2"
"log"
"os"
"sync"
"time"

"github.com/charmbracelet/huh/spinner"
"github.com/sirupsen/logrus"
"github.com/urfave/cli/v2"
)

var AppAsciiArt = fmt.Sprintf(""+
Expand Down
12 changes: 11 additions & 1 deletion gojira/dayview.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func NewDayView() *DayView { //nolint:funlen
app.ui.app.Draw()
}),
}
dayView.searchInput = tview.NewInputField().SetLabel("(/)Search: ").SetFieldWidth(60).SetDoneFunc(func(key tcell.Key) {
dayView.searchInput = tview.NewInputField().SetLabel("(l)Latest | (/)Search: ").SetFieldWidth(60).SetDoneFunc(func(key tcell.Key) {

Check failure on line 35 in gojira/dayview.go

View workflow job for this annotation

GitHub Actions / lint

line is 132 characters (lll)

Check failure on line 35 in gojira/dayview.go

View workflow job for this annotation

GitHub Actions / lint

line is 132 characters (lll)
if key == tcell.KeyEnter {
go func() {
dayView.SearchIssues(dayView.searchInput.GetText())
Expand Down Expand Up @@ -93,6 +93,16 @@ func NewDayView() *DayView { //nolint:funlen
app.ui.app.SetFocus(dayView.searchInput)
return nil
}
if event.Rune() == 'L' {
go func() {
app.ui.loaderView.Show("Searching...")
defer func() {
app.ui.loaderView.Hide()
}()
dayView.loadLatest()
}()
return nil
}
return event
})

Expand Down

0 comments on commit 22b7523

Please sign in to comment.