Skip to content

Commit 1e24c4e

Browse files
committed
feat: boards view
1 parent 8b7003f commit 1e24c4e

25 files changed

+1129
-99
lines changed

README.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ The CLI Jira interface is pretty straightforward. Just run `fjira` in your termi
8181
fjira
8282
```
8383

84-
### Workspaces
84+
## Workspaces
8585

8686
Fjira will ask you about Jira API url, and token if you run fjira for the very first time.
8787

@@ -107,15 +107,15 @@ You can edit existing workspace using `--edit-workspace` flag.
107107
fjira --edit-workspace abc
108108
```
109109

110-
### Projects search
110+
## Projects search
111111

112112
The projects search is a default view, just run `fjra` in order to open it.
113113

114114
```shell
115115
fjira
116116
```
117117

118-
### Open Jira project directly from cli
118+
## Open project directly from cli
119119

120120
You can open a project directly from cli.
121121

@@ -125,14 +125,21 @@ fjira --project=PROJ
125125

126126
The fjira app will skip projects search screen, and it'll go to the next screen with issues search.
127127

128-
### Open Jira issue directly from cli
128+
## Open issue directly from cli
129129

130130
```shell
131131
fjira PROJ-123
132132
```
133133

134134
The app will skip all the screens, and it'll go to the issue view directly.
135135

136+
## Board View
137+
138+
![Fjira Board View](demo_board_view.png)
139+
140+
You can open board-like view using the navigation buttons from the project menu.
141+
First open the project, and then press F4.
142+
136143
## The Future (TODO)
137144

138145
- More docs

demo_board_view.png

74.3 KB
Loading

internal/app/action_bar_item.go

+5
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,8 @@ func (b *ActionBarItem) ChangeText(text1 string, text2 string) {
4040
b.Text1 = text1
4141
b.text = fmt.Sprintf("%s%s", b.Text1, b.Text2)
4242
}
43+
44+
func (b *ActionBarItem) ChangeText2(text2 string) {
45+
b.Text2 = text2
46+
b.text = fmt.Sprintf("%s%s", b.Text1, b.Text2)
47+
}

internal/app/app.go

+4
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ func (a *App) Loading(flag bool) {
169169
a.loading = flag
170170
}
171171

172+
func (a *App) IsLoading() bool {
173+
return a.loading
174+
}
175+
172176
func (a *App) LoadingWithText(flag bool, text string) {
173177
a.spinner.text = text
174178
a.loading = flag

internal/fjira/fjira_add_label.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func NewAddLabelView(issue *jira.Issue) *fjiraAddLabelView {
2020
return &fjiraAddLabelView{
2121
issue: issue,
2222
topBar: CreateIssueTopBar(issue),
23-
bottomBar: CreateIssueBottomBar(),
23+
bottomBar: CreateBottomLeftBar(),
2424
}
2525
}
2626

0 commit comments

Comments
 (0)