Skip to content

fix(FR-791): Add drop container to sender#3469

Merged
graphite-app[bot] merged 1 commit into
mainfrom
fix/drag-drop
Apr 10, 2025
Merged

fix(FR-791): Add drop container to sender#3469
graphite-app[bot] merged 1 commit into
mainfrom
fix/drag-drop

Conversation

@ragingwind
Copy link
Copy Markdown
Contributor

@ragingwind ragingwind commented Apr 9, 2025

resolves #3468 (FR-791)

Fix ChatInput component's drop container reference

This PR fixes an issue in the ChatInput component by correctly passing the dropContainerRef to both the parent Flex component and the ChatSender component. Previously, the reference was created but not properly attached to the container element, which could affect file drop functionality.

Changes:

  • Renamed cardRef to dropContainerRef for better semantic clarity
  • Added the ref to the parent Flex component
  • Passed the same ref to the ChatSender component

@github-actions github-actions Bot added the size:S 10~30 LoC label Apr 9, 2025
Copy link
Copy Markdown
Contributor Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • flow:merge-queue - adds this PR to the back of the merge queue
  • flow:hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has required the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ragingwind ragingwind changed the title add drop container to sender fix(FR-791): Add drop container to sender Apr 9, 2025
@ragingwind ragingwind marked this pull request as ready for review April 9, 2025 01:52
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 9, 2025

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements 4.23% 408/9641
🔴 Branches 3.61% 240/6657
🔴 Functions 2.57% 79/3077
🔴 Lines 4.17% 393/9425

Test suite run success

124 tests passing in 14 suites.

Report generated by 🧪jest coverage report action from 0e35b58

@ragingwind ragingwind requested review from agatha197 and yomybaby April 9, 2025 01:53
Copy link
Copy Markdown
Member

@yomybaby yomybaby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about making the entire chat card a drop zone instead of just the sender part?

Copy link
Copy Markdown
Member

@yomybaby yomybaby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ;)

@graphite-app
Copy link
Copy Markdown

graphite-app Bot commented Apr 10, 2025

Merge activity

resolves #3468 (FR-791)

# Fix ChatInput component's drop container reference

This PR fixes an issue in the `ChatInput` component by correctly passing the `dropContainerRef` to both the parent `Flex` component and the `ChatSender` component. Previously, the reference was created but not properly attached to the container element, which could affect file drop functionality.

**Changes:**
- Renamed `cardRef` to `dropContainerRef` for better semantic clarity
- Added the ref to the parent `Flex` component
- Passed the same ref to the `ChatSender` component
@graphite-app graphite-app Bot merged commit 0e35b58 into main Apr 10, 2025
6 checks passed
@graphite-app graphite-app Bot deleted the fix/drag-drop branch April 10, 2025 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10~30 LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drag & Drop doesn't work on Chat Sender

2 participants