feat: the key picker has its own border in the share popup
CI / Checks (pull_request) Successful in 40s
PR title / Conventional title (pull_request) Successful in 2s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
kebandClaude Opus 5.5 committed 2026-10-13 12:42:33 +02:00
1 parent 176600be54
commit 8d65b60e69
2 files changed
+33 -12

No files matched your search

+7 -5
View File
@@ -15,7 +15,6 @@ import (
"git.kebcloud.no/keb/lazysecrets/internal/provider"
"git.kebcloud.no/keb/lazysecrets/internal/ref"
"git.kebcloud.no/keb/lazysecrets/internal/share"
"git.kebcloud.no/keb/lazysecrets/internal/ui/panes"
)
// Sharing env files as an encrypted lazysecrets://share link (package
@@ -146,10 +145,13 @@ func (m *Model) pickShareKey(s sharing) tea.Cmd {
return m.seal(s) // the picker showed what's shared
}
m.search.pickTitle = shareTitle(s)
m.search.pickLines = append(m.sharedFiles(s), "",
panes.TitleStyle(m.st, true).Render("Pick a secret to encrypt with"),
m.st.Muted.Render("The recipient needs read access to it to decrypt the files. Its value isn't"),
m.st.Muted.Render("shown or put in the link. share.key sets one for a repo, or for all."))
m.search.pickLines = m.sharedFiles(s)
m.search.pickHeading = "Pick a secret to encrypt with"
m.search.pickHelp = []string{
m.st.Muted.Render("The recipient needs read access to it to decrypt the files. Its value"),
m.st.Muted.Render("isn't shown or put in the link. share.key sets one for a repo, or for all."),
}
m.search.input.SetWidth(searchWidth(m.w) - 10) // inside the picker's border
m.fillSearch(false)
return tea.Batch(cmd, m.searchLoads())
}