-
Notifications
You must be signed in to change notification settings - Fork 4k
[fix] Shorten st.chat_input file chip display to adhere to designs
#13555
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
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
✅ PR preview is ready!
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
6d4d477 to
dd63fd6
Compare
st.chat_input file chip display to adhere to designs
dd63fd6 to
3ab214f
Compare
494ea1a to
49b1769
Compare
49b1769 to
1c4a42f
Compare
c116964 to
89fc027
Compare
📉 Frontend coverage change detectedThe frontend unit test (vitest) coverage has decreased by 0.0000%
✅ Coverage change is within normal range. |
SummaryThis PR reduces the maximum display length of file chips in the
Code QualityThe implementation is clean and well-structured:
Minor Issue - PR Description DiscrepancyFile: PR description Test CoverageUnit Tests (Good)
E2E Tests (Good)
Backwards CompatibilityNo breaking changes. This is a visual-only change:
Security & RiskLow risk:
Recommendations
VerdictAPPROVED: This is a well-implemented, focused change that improves the visual appearance of file chips in the chat input component. The code follows existing patterns, has comprehensive test coverage (both unit and E2E), and is fully backwards compatible. The only minor issue is a documentation discrepancy in the PR description (14 vs 16 characters) which does not affect the code quality. This is an automated AI review. Please verify the feedback and use your judgment. |
Merge activity
|
89fc027 to
f494c0d
Compare

Describe your changes
Reduced the maximum length of file chips in the chat input component from 36 to 14 characters to improve UI appearance. This change:
truncateFilenamefunction to use a shorter default max lengthStyledChatUploadedFilecomponent to have a max width of 11remDesigns
Screenshot or video (only for visual changes)
The PR updates several snapshot images showing the new truncated file chips in the chat input component across different browsers (Chrome, Firefox, WebKit) and themes (light/dark).
Testing Plan
truncateFilenamefunction to reflect the new default max length of 14 characterstitleattribute rather than the displayed text content, which is now truncatedContribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.