feat: the key picker has its own border in the share popup
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2 files changed
+33
-12
No files matched your search
@@ -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())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user