The GitHub Actions job "Required Checks" on 
texera.git/gh-readonly-queue/main/pr-9199-60f32abcd7c2b4ce586cacf90dceb59165ca74ec
 has failed.
Run started by GitHub user kunwp1 (triggered by kunwp1).

Head commit for run:
241c98a33ef6b8a4051b9cca0816472e74523738 / Xinyuan Lin <[email protected]>
refactor(frontend): drop dead members across agent ui (#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.
- Drops `returnPosition`, which only fed the `isDocked` check, along
with the `calculateTotalTranslate3d` call and import;
`loadPanelSettings()` now only restores the saved `cssText`.
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, the "counts as docked when the saved transform nets
out to the origin" case, and the now-unused `CdkDragStart` import.

**+5/-59 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`.
- Agent component unit tests passed (5 files, 172 tests):
`yarn ng test --watch=false
--include='src/app/workspace/component/agent/**/*.spec.ts'`

### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Antigravity (Claude Opus 5.5)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>

Report URL: https://github.com/apache/texera/actions/runs/41541449386

With regards,
GitHub Actions via GitBox

Reply via email to