Skip to content
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

fix: breaks the avatar if you hit the button adding an invalid link #31467

Merged
merged 10 commits into from
Jan 26, 2024

Conversation

apurb-coder
Copy link
Contributor

@apurb-coder apurb-coder commented Jan 16, 2024

Proposed changes (including videos or screenshots)

Before:

screen-capture.webm

After:

Kapture 2024-01-26 at 18 14 13

Changes I made:

The input field for the URL will only accept an image URL, any other non-image URL or invalid URL will not be accepted.

Issue(s)

Closes #21024

Steps to test or reproduce

Further comments

@apurb-coder apurb-coder requested a review from a team as a code owner January 16, 2024 22:25
Copy link

changeset-bot bot commented Jan 16, 2024

🦋 Changeset detected

Latest commit: 552a1e4

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@CLAassistant
Copy link

CLAassistant commented Jan 16, 2024

CLA assistant check
All committers have signed the CLA.

Copy link

codecov bot commented Jan 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e1fa2b8) 49.57% compared to head (552a1e4) 76.47%.
Report is 78 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##           develop   #31467       +/-   ##
============================================
+ Coverage    49.57%   76.47%   +26.90%     
============================================
  Files         3316      278     -3038     
  Lines        81517     9008    -72509     
  Branches     16719     1708    -15011     
============================================
- Hits         40411     6889    -33522     
+ Misses       36400     1688    -34712     
+ Partials      4706      431     -4275     
Flag Coverage Δ
e2e ?
e2e-api ?
unit 76.47% <ø> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@dougfabris dougfabris removed this from the 6.6 milestone Jan 24, 2024
@dougfabris dougfabris added this to the 6.6 milestone Jan 26, 2024
ggazzo
ggazzo previously requested changes Jan 26, 2024
Copy link
Member

@ggazzo ggazzo left a comment

Choose a reason for hiding this comment

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

@apurb-coder Don't forget the changeset

@ggazzo ggazzo dismissed their stale review January 26, 2024 21:07

My mistake, the changesetbot was crazy :s

Copy link
Member

@dougfabris dougfabris left a comment

Choose a reason for hiding this comment

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

Hi there, thanks for the contribution! 🚀 💯

I've made some changes because using a regex wasn't the best option, we could have image links without the pattern you suggested.

@ggazzo ggazzo merged commit 61a655f into RocketChat:develop Jan 26, 2024
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Selecting avatar in user profile
4 participants