mirror of
https://github.com/tw93/Mole.git
synced 2026-02-13 01:00:13 +00:00
fix: enhance overview scan UI and invalidate cache on refresh
- Invalidate disk cache for overview entries on refresh to ensure fresh data. - Show dynamic status messages (e.g., 'Scanning Applications...') instead of static text in Overview. - Adjust spinner animation speed to 100ms for smoother visual experience.
This commit is contained in:
@@ -32,7 +32,7 @@ func (m model) View() string {
|
||||
return b.String()
|
||||
} else {
|
||||
fmt.Fprintf(&b, "%sSelect a location to explore:%s ", colorGray, colorReset)
|
||||
fmt.Fprintf(&b, "%s%s%s%s Scanning...\n\n", colorCyan, colorBold, spinnerFrames[m.spinner], colorReset)
|
||||
fmt.Fprintf(&b, "%s%s%s%s %s\n\n", colorCyan, colorBold, spinnerFrames[m.spinner], colorReset, m.status)
|
||||
}
|
||||
} else {
|
||||
hasPending := false
|
||||
@@ -44,7 +44,7 @@ func (m model) View() string {
|
||||
}
|
||||
if hasPending {
|
||||
fmt.Fprintf(&b, "%sSelect a location to explore:%s ", colorGray, colorReset)
|
||||
fmt.Fprintf(&b, "%s%s%s%s Scanning...\n\n", colorCyan, colorBold, spinnerFrames[m.spinner], colorReset)
|
||||
fmt.Fprintf(&b, "%s%s%s%s %s\n\n", colorCyan, colorBold, spinnerFrames[m.spinner], colorReset, m.status)
|
||||
} else {
|
||||
fmt.Fprintf(&b, "%sSelect a location to explore:%s\n\n", colorGray, colorReset)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user