4 Commits
Author SHA1 Message Date
keb 81a24dcee2 chore(release): v0.4.1
Release / Build and publish (push) Successful in 1m15s
2026-10-27 15:42:58 +01:00
keb 831031bb48 fix: an opened link ends on the secret's details, also when its lists were loaded (#93)
Co-authored-by: Karl-Einar Bergstrøm <karl-einarb@outlook.com>
2026-10-27 15:42:38 +01:00
renovate-bot Bot dfe6c9ce7a chore(deps): update non-major (#92)
Co-authored-by: Renovate Bot <renovate-bot@noreply.git.kebcloud.no>
2026-10-26 04:19:03 +01:00
renovate-bot Bot d30e75bd26 chore(deps): update go module directive to v1.27.3 (#91)
Co-authored-by: Renovate Bot <renovate-bot@noreply.git.kebcloud.no>
2026-10-26 01:20:03 +01:00
4 changed files with 26 additions and 2 deletions

No files matched your search

+6
View File
@@ -2,6 +2,12 @@
Every release of lazysecrets, newest first. Every release of lazysecrets, newest first.
## v0.4.1 – 2026-10-27
### Fixed
- An opened link ends on the secret's details, also when its lists were loaded ([#93](https://git.kebcloud.no/keb/lazysecrets/pulls/93)) ([831031b](https://git.kebcloud.no/keb/lazysecrets/commit/831031bb4863805abc7e272f40d5a1d576364a77))
## v0.4.0 – 2026-10-19 ## v0.4.0 – 2026-10-19
### Added ### Added
+1 -1
View File
@@ -1,6 +1,6 @@
module git.kebcloud.no/keb/lazysecrets module git.kebcloud.no/keb/lazysecrets
go 1.27.2 go 1.27.3
require ( require (
charm.land/bubbles/v2 v2.2.1 charm.land/bubbles/v2 v2.2.1
+5 -1
View File
@@ -643,7 +643,11 @@ func (m *Model) advanceNav() bool {
} }
} }
if n.link { if n.link {
m.focus = paneDetail // after: copying acts on the focused pane // After: copying acts on the focused pane. The details describe
// the secret: when its lists were loaded already, the open got
// here in one update, and the Secrets pane was never the last
// left pane in focus.
m.lastLeft, m.focus = paneSecrets, paneDetail
} }
return true return true
} }
+14
View File
@@ -626,3 +626,17 @@ func TestShareWebPages(t *testing.T) {
t.Errorf("secret web page %q", got) t.Errorf("secret web page %q", got)
} }
} }
// A link whose lists are there already (a repo's files, or cached) gets
// to the secret in one update: the details describe it all the same, not
// the repo, with no need to press 3.
func TestOpenLinkToRepoSecret(t *testing.T) {
t.Parallel()
r, _ := ref.Parse("lazysecrets://repo/github.com%2Facme%2Forders-service/docker-compose.yml/api.DB_PASSWORD")
d := newDriverOpts(t, Options{Open: &r}, fake.Repos())
d.keys("o")
o, ok := d.m.detail.Secret()
if _, _, s := d.selected(); s != "api.DB_PASSWORD" || d.m.focus != paneDetail || d.m.detailOf() != paneSecrets || !ok || o.Name != "api.DB_PASSWORD" {
t.Errorf("selected %q, focus %v describing %v, detail %q", s, d.m.focus, d.m.detailOf(), o.Name)
}
}