@app-vitals/agent-admin 1.111.0 → 1.113.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.
@@ -156,17 +156,21 @@ test.describe("member, self-serve off: agents", () => {
156
156
  });
157
157
 
158
158
  test.describe("member, self-serve off: settings and account", () => {
159
- test("no settings are available: no nav and refused URLs", async ({
159
+ test("only Preferences is available: no admin-only nav and refused URLs", async ({
160
160
  page,
161
161
  context,
162
162
  }) => {
163
163
  await harness.signIn(context, EMAILS.member1);
164
164
  const base = harness.adminUrl;
165
165
 
166
- // /admin/settings has no first item for a member and shows no sidebar.
166
+ // /admin/settings lands a member on Preferences, the only item every role
167
+ // has, so the sidebar lists that one entry and nothing admin- or owner-only.
167
168
  const landing = await page.goto(`${base}/admin/settings`);
168
- expect(landing?.status()).toBe(404);
169
- await expect(page.locator("nav.settings-sidebar")).toHaveCount(0);
169
+ expect(landing?.status()).toBe(200);
170
+ await expect(page.locator("nav.settings-sidebar a")).toHaveCount(1);
171
+ await expect(
172
+ page.locator('nav.settings-sidebar a[href^="/admin/settings/preferences"]'),
173
+ ).toHaveCount(1);
170
174
 
171
175
  // A page the member can reach links to none of the admin-only or
172
176
  // owner-only items.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@app-vitals/agent-admin",
3
- "version": "1.111.0",
3
+ "version": "1.113.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/app-vitals/agent.git",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@anthropic-ai/sdk": "0.137.0",
47
- "@app-vitals/agent-lib": "1.111.0",
47
+ "@app-vitals/agent-lib": "1.113.0",
48
48
  "@hono/zod-openapi": "^1.0.0",
49
49
  "@prisma/adapter-pg": "^7.10.0",
50
50
  "@prisma/client": "^7.10.0",