-
Notifications
You must be signed in to change notification settings - Fork 156
✨ feat: Add attachment preview with drag & drop support #2180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
|
Updates to Preview Branch (feat/attachment-preview) ↗︎
Tasks are run on every commit but only new migration files are pushed.
View logs for this Workflow Run ↗︎. |
…mPresenter 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems mostly good!
frontend/apps/app/features/sessions/components/SessionForm/AttachButton/AttachButton.tsx
Outdated
Show resolved
Hide resolved
...es/sessions/components/SessionForm/GitHubSessionFormPresenter/GitHubSessionFormPresenter.tsx
Outdated
Show resolved
Hide resolved
...nd/apps/app/features/sessions/components/SessionForm/AttachmentPreview/AttachmentPreview.tsx
Outdated
Show resolved
Hide resolved
Replace custom CSS class with standard HTML hidden attribute for cleaner code 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
- Use clsx for more readable className composition in GitHubSessionFormPresenter - Remove redundant displayName from AttachmentPreview component 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
@junkisai Thank you for your reviews. I fixed your feedbacks, please review this PR again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the corrections!
Issue
Why is this change needed?
This PR implements the complete attachment feature for GitHubSessionFormPresenter:
What would you like reviewers to focus on?
Testing Verification
https://liam-storybook-git-feat-attachment-preview-liambx.vercel.app/?path=/docs/features-sessions-githubsessionformpresenter--docs
2025-06-24.16.16.42.mov
What was done
🤖 Generated by PR Agent at f1672d9
Detailed Changes
9 files
Export AttachmentPreview component
Add X icon export
Add hidden input styling
Create attachment preview component styles
Add drag active state and attachments container
Add file selection and input handling
Create attachment preview component with remove button
Implement drag & drop and attachment management
Add file selection prop to actions
Additional Notes