feat: an account pane on Azure account rows: fields and groups to move through and copy
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
f6c4f5f6f6
commit
b37caa5a25
13 files changed
+396
-27
No files matched your search
@@ -47,7 +47,6 @@ type Detail struct {
|
||||
versions []provider.Object // newest first; nil while unknown
|
||||
note string // the user's note on what's shown
|
||||
message string // shown instead of the hint when nothing is selected: an error
|
||||
account []provider.Attr // shown instead of the hint on a provider's row: who it signs in as
|
||||
|
||||
offset int
|
||||
w, h int
|
||||
@@ -77,10 +76,6 @@ func (d *Detail) Clear() {
|
||||
// selected, such as why an account has nothing to show; "" for the hint.
|
||||
func (d *Detail) SetMessage(s string) { d.message = s }
|
||||
|
||||
// SetAccount sets the account shown on a provider's row when nothing is
|
||||
// selected; nil for the hint.
|
||||
func (d *Detail) SetAccount(fields []provider.Attr) { d.account = fields }
|
||||
|
||||
// SetDescribing marks extra metadata as being fetched.
|
||||
func (d *Detail) SetDescribing() { d.describing, d.describeErr = true, nil }
|
||||
|
||||
@@ -196,12 +191,6 @@ func (d Detail) lines(st styles.Styles) []string {
|
||||
muted := st.Muted.Render
|
||||
|
||||
if d.container == nil {
|
||||
if d.message == "" && len(d.account) > 0 {
|
||||
for _, a := range d.account {
|
||||
field(a.Label, a.Value)
|
||||
}
|
||||
return out
|
||||
}
|
||||
if d.message != "" {
|
||||
for _, l := range strings.Split(ansi.Hardwrap(d.message, max(1, inner-2), true), "\n") {
|
||||
out = append(out, " "+st.Error.Render(l))
|
||||
|
||||
Reference in new issue
Block a user