@app-vitals/agent-admin 1.49.0 → 1.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,10 +3,7 @@ import {
3
3
  renderShipwrightToolbar,
4
4
  baseStyles as toolbarBaseStyles,
5
5
  } from "@app-vitals/agent-lib/web/toolbar.ts";
6
- import {
7
- shouldShowAccountNav,
8
- shouldShowSettingsNav,
9
- } from "./admin-ui-account-nav.ts";
6
+ import { shouldShowSettingsNav } from "./admin-ui-account-nav.ts";
10
7
 
11
8
  export { escapeHtml };
12
9
 
@@ -84,65 +81,6 @@ export function baseStyles(): string {
84
81
  border-bottom: 1px solid #f3f4f6;
85
82
  }
86
83
 
87
- /* ─── Agent detail page — accordion groups (AGA-1.1) ─── */
88
- /* Each group is a details element (class="group") wrapping several
89
- existing .card sections. The toggle glyph is a ::before on .group-title (the
90
- flush-left flex child) rather than on .group-summary itself -- a
91
- ::before on the flex summary would become its own flex item and
92
- break the flush-left/flush-right 2-sided layout into an uneven
93
- 3-way split. See .more-filters below for the anti-pattern this
94
- avoids (::before directly on a non-flex <summary> is fine there;
95
- .group-summary is display:flex, which is the difference). */
96
- .group {
97
- margin-bottom: 16px;
98
- }
99
- .group-summary {
100
- display: flex;
101
- align-items: center;
102
- justify-content: space-between;
103
- gap: 12px;
104
- background: #fff;
105
- border: 1px solid #e8e8ee;
106
- border-radius: 10px;
107
- padding: 14px 24px;
108
- cursor: pointer;
109
- list-style: none;
110
- }
111
- .group-summary::-webkit-details-marker { display: none; }
112
- .group[open] > .group-summary {
113
- border-bottom-left-radius: 0;
114
- border-bottom-right-radius: 0;
115
- }
116
- .group-title {
117
- font-size: 14px;
118
- font-weight: 600;
119
- color: #1a1a2e;
120
- }
121
- .group-title::before {
122
- content: "▸";
123
- display: inline-block;
124
- margin-right: 8px;
125
- transition: transform 0.15s ease;
126
- }
127
- .group[open] > .group-summary .group-title::before {
128
- transform: rotate(90deg);
129
- }
130
- .group-sub {
131
- font-size: 12px;
132
- color: #6b7280;
133
- white-space: nowrap;
134
- }
135
- .group-body {
136
- border: 1px solid #e8e8ee;
137
- border-top: none;
138
- border-radius: 0 0 10px 10px;
139
- padding: 16px 24px 4px;
140
- background: #fafafa;
141
- }
142
- .group-body .card:last-child {
143
- margin-bottom: 16px;
144
- }
145
-
146
84
  /* ─── Agent detail page — stat strip (AGA-1.2) ──────────── */
147
85
  .stat-strip {
148
86
  display: grid;
@@ -580,12 +518,6 @@ export function baseStyles(): string {
580
518
  .card {
581
519
  padding: 14px 12px;
582
520
  }
583
- .group-summary {
584
- padding: 12px 14px;
585
- }
586
- .group-body {
587
- padding: 12px 12px 4px;
588
- }
589
521
  .form-row {
590
522
  flex-wrap: wrap;
591
523
  }
@@ -751,7 +683,6 @@ export function renderAdminToolbar(userName: string, activePath = ""): string {
751
683
  activePath,
752
684
  logoutAction: "/admin/logout",
753
685
  metricsUrl: process.env.METRICS_DASHBOARD_URL ?? "/dashboard",
754
- showAccount: shouldShowAccountNav(),
755
686
  showSettings: shouldShowSettingsNav(),
756
687
  });
757
688
  }