Skip to content

Conversation

@urmauur
Copy link
Member

@urmauur urmauur commented Jan 28, 2025

Describe Your Changes

This pull request introduces several changes to the ErrorMessage component and its associated tests in order to enhance functionality and improve the user interface. The most important changes include the addition of new icons, a copy-to-clipboard feature, and updates to the test cases to reflect these changes.

Enhancements to the ErrorMessage component:

  • web/containers/ErrorMessage/index.tsx: Added new imports for useRef, useState, and icons from lucide-react. Introduced a copy-to-clipboard feature using useRef and useState hooks, and updated the error message display to include new styling and icons for troubleshooting and copying error messages. [1] [2] [3] [4] [5] [6]

Updates to test cases:

  • web/containers/ErrorMessage/index.test.tsx: Updated test cases to reflect changes in the error message text and interactions. Specifically, changed references from 'troubleshooting assistance' to 'Troubleshooting' to match the updated UI. [1] [2]

Fixes Issues

CleanShot 2025-01-28 at 13 48 08
CleanShot 2025-01-28 at 14 04 44
CleanShot 2025-01-28 at 13 46 45

Tested long content with scroll behavior
CleanShot 2025-01-28 at 14 06 09

Self Checklist

  • Added relevant comments, esp in complex areas
  • Updated docs (for bug fixes / features)
  • Created issues for follow-up changes or refactoring needed

@urmauur urmauur added this to the v0.5.15 milestone Jan 28, 2025
@urmauur urmauur requested a review from louis-jan January 28, 2025 07:09
@urmauur urmauur self-assigned this Jan 28, 2025
@github-actions
Copy link
Contributor

Barecheck - Code coverage report

Total: 67.94%

Your code coverage diff: -0.05% ▾

Uncovered files and lines
FileLines
web/containers/ErrorMessage/index.tsx40-45, 63-64

@github-actions
Copy link
Contributor

This is the build for this pull request. You can download it from the Artifacts section here: Build URL.

@urmauur urmauur merged commit 261b44d into dev Jan 28, 2025
21 checks passed
@urmauur urmauur deleted the feat/standardize-inline-error-message branch January 28, 2025 14:45
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.

feat: Update UI of error notification in Threads

3 participants