Skip to content

refactor(components): standardize approval selects and decision handling#15

Merged
remarkablemark merged 2 commits into
masterfrom
refactor/components
May 6, 2026
Merged

refactor(components): standardize approval selects and decision handling#15
remarkablemark merged 2 commits into
masterfrom
refactor/components

Conversation

@remarkablemark
Copy link
Copy Markdown
Member

What is the motivation for this pull request?

Refine the component approval flows to use consistent selection controls and simplify how approval decisions move through the chat UI.

What is the current behavior?

Approval-related components use mixed interaction patterns, and tool approval passes separate approve/reject callbacks instead of a single shared decision value.

What is the new behavior?

Tool approval now uses , approval decisions flow through a shared constant/type, and the related component tests were updated to match the new interaction model while keeping coverage at 100%.

Checklist:

Create decision constant and refactor tests
@codecov
Copy link
Copy Markdown

codecov Bot commented May 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/components/Chat/Chat.tsx 100.00% <100.00%> (ø)
src/components/ToolApproval.tsx 100.00% <100.00%> (ø)
src/constants/decision.ts 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@remarkablemark remarkablemark self-assigned this May 6, 2026
@remarkablemark remarkablemark merged commit b5ecbb5 into master May 6, 2026
15 checks passed
@remarkablemark remarkablemark deleted the refactor/components branch May 6, 2026 04:04
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