Skip to content

fix(chat,e2e): rename ChatSidenavScrim.close → closed + delete legacy subagents spec#487

Closed
blove wants to merge 2 commits into
mainfrom
claude/e2e-cleanup
Closed

fix(chat,e2e): rename ChatSidenavScrim.close → closed + delete legacy subagents spec#487
blove wants to merge 2 commits into
mainfrom
claude/e2e-cleanup

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented May 20, 2026

Summary

Two cleanups identified in the post-Task-#4 e2e audit:

1. Library — lint failure fix (unblocks non-admin merges)

`@angular-eslint/no-output-native` has been failing the `Library — lint / test / build` gate on every PR for the last week. Root cause: `ChatSidenavScrimComponent` declared `readonly close = output()` — the name `close` collides with the native DOM `close` event.

Fix: rename `close` → `closed`. Past-tense is idiomatic for Angular outputs (matches `closed/opened/selected/submitted` pattern). Updates 4 places:

  • `libs/chat/src/lib/primitives/chat-sidenav-scrim/chat-sidenav-scrim.component.ts` (output declaration + JSDoc usage example)
  • `libs/chat/src/lib/primitives/chat-sidenav-scrim/chat-sidenav-scrim.component.spec.ts` (subscribe target + test name)
  • `examples/chat/angular/src/app/shell/demo-shell.component.html` (template binding)
  • `apps/website/content/docs/chat/api/api-docs.json` (generated docs)

2. Delete legacy orphan spec

`cockpit/chat/subagents/angular/e2e/subagents.spec.ts` was a pre-aimock-era spec that:

  • Hardcoded `http://localhost:4505\` bypassing Playwright's `baseURL`.
  • Tested stale DOM structure (Orchestrator/Research Agent/Analysis Agent/Summary Agent — old cap shape).
  • Ran silently alongside `c-subagents.spec.ts` because `testMatch: '**/*.spec.ts'` picks both up.

The aimock-backed `c-subagents.spec.ts` is the canonical coverage.

Version bump

`@ngaf/chat`: 0.0.44 → 0.0.45 (patch-only per repo convention).

Test plan

  • CI `Library — lint / test / build` passes (no more `no-output-native` error).
  • CI `Cockpit — e2e` matrix passes (orphan spec deletion has no impact).
  • CI `examples/chat — e2e` passes (demo-shell change wired correctly).
  • Reviewer: `grep -rn '(close)=' libs apps cockpit examples` returns no chat-sidenav-scrim consumers.

🤖 Generated with Claude Code

blove and others added 2 commits May 20, 2026 08:38
… subagents spec

Two cleanups bundled:

1. Rename ChatSidenavScrimComponent's `close` output to `closed` (and
   update the demo-shell consumer + spec + JSDoc + generated api docs).
   `close` collides with the native DOM event and triggers
   @angular-eslint/no-output-native, which has been failing the
   Library — lint / test / build gate on every PR for the last week.
   Past-tense is idiomatic for Angular outputs (closed, opened,
   selected, submitted).

2. Delete cockpit/chat/subagents/angular/e2e/subagents.spec.ts
   (legacy orphan from pre-aimock era). It hardcoded
   http://localhost:4505 bypassing Playwright's baseURL, tested stale
   DOM structure (Orchestrator/Research Agent/Analysis Agent/Summary
   Agent — old cap shape), and ran silently alongside c-subagents.spec.ts
   because testMatch: '**/*.spec.ts' picks both up. The aimock-backed
   c-subagents.spec.ts is the canonical coverage.

Bumps @ngaf/chat 0.0.44 → 0.0.45 (per the lib's patch-only release
convention).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Prior commit's python json.dump used default ASCII escaping, which
converted ~38 unrelated em-dash characters to — across the file.
Rewriting with ensure_ascii=False so the api-docs.json keeps its
original encoding; my ChatSidenavScrim.closed rename remains.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
threadplane Ready Ready Preview, Comment May 20, 2026 3:43pm

Request Review

@blove
Copy link
Copy Markdown
Contributor Author

blove commented May 20, 2026

Closing — PR #485 already fixed this lint bug 5 hours before this PR was opened (renamed close → dismiss). My worktree was created from a stale snapshot (commit 84a753d / pre-#485). My version of the change would regress #485's dismiss back to closed.

Spinning up a minimal follow-up PR with just the orphan-spec delete from this PR.

@blove blove closed this May 20, 2026
@blove blove deleted the claude/e2e-cleanup branch May 20, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant