The GitHub Actions job "Required Checks" on 
texera.git/gh-readonly-queue/main/pr-9393-8420565e66fd226bb9158fd41aed894d41da70a1
 has succeeded.
Run started by GitHub user kunwp1 (triggered by kunwp1).

Head commit for run:
1ec692c5da211fd500398049be793d59ed5cecf7 / Xinyuan Lin <[email protected]>
refactor(frontend): remove dead step-detail modal leftovers (#9393)

### What changes were proposed in this PR?

Removes the unused parts of the agent panel's
`ReActStepDetailModalComponent`. **+1/−97 lines.** There is no behaviour
change.

- **The `agentId` input.** `agent-chat` binds it, but neither the
modal's class nor its template reads it, so the binding goes too.
- **`getMessageRoleColor` and `getToolCallStrings`,** with the private
`formatAsFunction` that only the latter calls. The template never calls
them. Only their own spec cases did, and those three cases go with them.
- **`react-step-detail-modal.component.scss` and its `styleUrls`
entry.** The file holds only the license header and one comment, so it
emits no styles.

The helpers the template does call (`getTextFromMessage`,
`getToolCallSummaries`, the tool-result and operator-access helpers) and
their spec cases stay.

### History

| | |
| --- | --- |
| **Introduced by** | #4495 (2026-04-28), "feat(agent-service): add
`agent-service` that manages LLM agents", together with the modal |
| **Usage removed by** | **never used**. Only spec cases (#5612) ever
called the two helpers |

They have been unused for the six months since they were added.

### Any related issues, documentation, discussions?

Closes #9392.

### How was this PR tested?

No new tests. The modal's remaining cases stay.

>From `frontend/`:

- `npx ng test --watch=false
--include='**/react-step-detail-modal.component.spec.ts'
--include='**/agent-chat.component.spec.ts'
--include='**/agent-panel.component.spec.ts'`: 3 files, 125 tests, all
pass. The last two specs cover the modal's host (`agent-chat`) and the
panel around it.
- `npx tsc --noEmit -p src/tsconfig.app.json` and `-p
src/tsconfig.spec.json`: clean.
- `yarn format:ci`: clean.
- `yarn build` (production, AOT): success.

To re-check:

```
git grep -n -E 
"getMessageRoleColor|getToolCallStrings|formatAsFunction|react-step-detail-modal.component.scss"
   # no hits
git grep -n agentId -- 
frontend/src/app/workspace/component/agent/agent-panel/react-step-detail-modal  
 # no hits
```

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Opus 5.5)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

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

With regards,
GitHub Actions via GitBox

Reply via email to