Skip to content

Commit 22b7523

Browse files
committed
Release of 0.10.0
1 parent c8565bb commit 22b7523

File tree

4 files changed

+23
-6
lines changed

4 files changed

+23
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
## [0.10.0] - 2024-07-26
10+
### Added
11+
- `l` shortcut in `gojira worklogs` to reload latest issues
12+
913
## [0.9.0] - 2024-06-03
1014
### Added
1115
- Jump by a month on calendar using shift + left/right arrow key
@@ -117,7 +121,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
117121
### Added
118122
- Initial release of gojira
119123

120-
[Unreleased]: https://github.com/jzyinq/gojira/compare/0.9.0...master
124+
[Unreleased]: https://github.com/jzyinq/gojira/compare/0.10.0...master
125+
[0.10.0]: https://github.com/jzyinq/gojira/compare/0.9.0...0.10.0
121126
[0.9.0]: https://github.com/jzyinq/gojira/compare/0.8.1...0.9.0
122127
[0.8.1]: https://github.com/jzyinq/gojira/compare/0.8.0...0.8.1
123128
[0.8.0]: https://github.com/jzyinq/gojira/compare/0.7.0...0.8.0

gojira/calendar.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ package gojira
22

33
import (
44
"fmt"
5+
"time"
6+
57
"github.com/gdamore/tcell/v2"
68
"github.com/rivo/tview"
79
"github.com/sirupsen/logrus"
8-
"time"
910
)
1011

1112
type Calendar struct {

gojira/cli.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ package gojira
22

33
import (
44
"fmt"
5-
"github.com/charmbracelet/huh/spinner"
6-
"github.com/sirupsen/logrus"
7-
"github.com/urfave/cli/v2"
85
"log"
96
"os"
107
"sync"
118
"time"
9+
10+
"github.com/charmbracelet/huh/spinner"
11+
"github.com/sirupsen/logrus"
12+
"github.com/urfave/cli/v2"
1213
)
1314

1415
var AppAsciiArt = fmt.Sprintf(""+

gojira/dayview.go

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func NewDayView() *DayView { //nolint:funlen
3232
app.ui.app.Draw()
3333
}),
3434
}
35-
dayView.searchInput = tview.NewInputField().SetLabel("(/)Search: ").SetFieldWidth(60).SetDoneFunc(func(key tcell.Key) {
35+
dayView.searchInput = tview.NewInputField().SetLabel("(l)Latest | (/)Search: ").SetFieldWidth(60).SetDoneFunc(func(key tcell.Key) {
3636
if key == tcell.KeyEnter {
3737
go func() {
3838
dayView.SearchIssues(dayView.searchInput.GetText())
@@ -93,6 +93,16 @@ func NewDayView() *DayView { //nolint:funlen
9393
app.ui.app.SetFocus(dayView.searchInput)
9494
return nil
9595
}
96+
if event.Rune() == 'L' {
97+
go func() {
98+
app.ui.loaderView.Show("Searching...")
99+
defer func() {
100+
app.ui.loaderView.Hide()
101+
}()
102+
dayView.loadLatest()
103+
}()
104+
return nil
105+
}
96106
return event
97107
})
98108

0 commit comments

Comments
 (0)