aglinxinyuan opened a new pull request, #9393: URL: https://github.com/apache/texera/pull/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) -- 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]
