Skip to content
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

fix: remove more stash-related stuff #656

Merged
merged 1 commit into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions ui/stash.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ type stashModel struct {
err error
spinner spinner.Model
filterInput textinput.Model
stashFullyLoaded bool // have we loaded all available stashed documents from the server?
viewState stashViewState
filterState filterState
showFullHelp bool
Expand Down Expand Up @@ -726,10 +725,6 @@ func (m stashModel) view() string {
p.Type = paginator.Arabic
pagination = paginationStyle.Render(p.View())
}

// We could also look at m.stashFullyLoaded and add an indicator
// showing that we don't actually know how many more pages there
// are.
}

s += fmt.Sprintf(
Expand Down
3 changes: 0 additions & 3 deletions ui/stashhelp.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,6 @@ func (m stashModel) helpView() (string, int) {
filterHelp = []string{"/", "edit search", "esc", "clear filter"}
} else {
filterHelp = []string{"/", "find"}
if m.stashFullyLoaded {
filterHelp = append(filterHelp, "t", "team filter")
}
}

if isEditable {
Expand Down
10 changes: 0 additions & 10 deletions ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ import (
"strings"
"time"

"github.com/charmbracelet/bubbles/list"
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/glamour/styles"
"github.com/charmbracelet/glow/v2/utils"
"github.com/charmbracelet/lipgloss"
"github.com/charmbracelet/log"
"github.com/muesli/gitcha"
te "github.com/muesli/termenv"
Expand Down Expand Up @@ -142,14 +140,6 @@ func newModel(cfg Config) tea.Model {
}
}

teamList := list.New([]list.Item{}, list.NewDefaultDelegate(), 0, 0)
teamList.Styles.Title = lipgloss.NewStyle().Foreground(yellowGreen)
teamList.SetStatusBarItemName("team", "teams")
teamList.SetShowHelp(true)

// We use the team list status message as a permanent placeholder.
teamList.StatusMessageLifetime = time.Hour

common := commonModel{
cfg: cfg,
}
Expand Down
Loading