aglinxinyuan opened a new pull request, #9199:
URL: https://github.com/apache/texera/pull/9199
### What changes were proposed in this PR?
Removes dead properties, unused event handlers, and dead stylesheet rules
across Agent UI components:
1. `agent-registration.component.ts`:
- Drops write-only `hasLoadingError` property (only assigned, never read
in template or by callers).
2. `agent-panel.component.ts`:
- Drops write-only `isDocked` property and uncalled `handleDragStart()`
method.
3. `agent-panel.component.html`:
- Drops `(cdkDragStarted)="handleDragStart()"` binding.
4. `agent-interaction.component.scss`:
- Drops dead `&.compact` stylesheet rule with zero references in
templates or components.
5. Unit test updates:
- Adjusts `agent-registration.component.spec.ts` and
`agent-panel.component.spec.ts` to remove assertions on the dropped internal
properties.
**+0/-37 lines.** Pure refactoring with no behavior change.
### Any related issues, documentation, discussions?
Closes #9196.
### How was this PR tested?
- Prettier check passed:
`npx prettier --check
src/app/workspace/component/agent/agent-panel/agent-registration/agent-registration.component.ts
src/app/workspace/component/agent/agent-panel/agent-registration/agent-registration.component.spec.ts
src/app/workspace/component/agent/agent-interaction/agent-interaction.component.scss
src/app/workspace/component/agent/agent-panel/agent-panel.component.html
src/app/workspace/component/agent/agent-panel/agent-panel.component.ts
src/app/workspace/component/agent/agent-panel/agent-panel.component.spec.ts`
- TypeScript compilation check (`src/tsconfig.spec.json`): zero errors in
modified files.
- Verified 0 callers repo-wide for `isDocked` and `hasLoadingError`.
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Antigravity (Claude Opus 5.5)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]