matrix-react-sdk icon indicating copy to clipboard operation
matrix-react-sdk copied to clipboard

Allows search to recognize full room links

Open bolu-tife opened this issue 3 years ago • 10 comments

Fix: Allows search to recognize full room links

Before: Element search could not recognise full room links Screenshot 2022-04-10 at 16 23 03

Screenshot 2022-04-10 at 16 26 08

After: Element recognises full links for all types of rooms and channels (not just matrix.to rooms) Screenshot 2022-04-10 at 16 23 38

Screenshot 2022-04-10 at 16 24 04

The left panel search automatically changes search to a recognizable room name on copy and paste

Fixes https://github.com/vector-im/element-web/issues/21695


Here's what your changelog entry will look like:

✨ Features

  • Allows search to recognize full room links (#8275). Contributed by @bolu-tife.

bolu-tife avatar Apr 10 '22 15:04 bolu-tife

The PR seems to have no changes :/

SimonBrandner avatar Apr 10 '22 15:04 SimonBrandner

Oh my mistake, I must have reverted the commits when I made a sign off. I'll make a new pull request to address that

Here is the change: https://github.com/matrix-org/matrix-react-sdk/pull/8275/commits/9ba6051fc3fff165323cade51660707b26406aa8

bolu-tife avatar Apr 10 '22 15:04 bolu-tife

@bolu-tife, could you please put Fixes <issue link> into the PR description, so that it auto-closes the issue when merged?

SimonBrandner avatar Apr 10 '22 16:04 SimonBrandner

I have made the fix on the new search feature.

bolu-tife avatar Apr 10 '22 16:04 bolu-tife

I'll work on them, thank you.

bolu-tife avatar Apr 13 '22 12:04 bolu-tife

Codecov Report

Merging #8275 (c26fbf2) into develop (3750b90) will decrease coverage by 0.00%. The diff coverage is 0.00%.

@@             Coverage Diff             @@
##           develop    #8275      +/-   ##
===========================================
- Coverage    30.02%   30.02%   -0.01%     
===========================================
  Files          879      880       +1     
  Lines        50168    50172       +4     
  Branches     12772    12773       +1     
===========================================
  Hits         15062    15062              
- Misses       35106    35110       +4     
Impacted Files Coverage Δ
src/components/structures/RoomDirectory.tsx 0.79% <0.00%> (ø)
src/components/views/dialogs/SpotlightDialog.tsx 5.85% <0.00%> (ø)
src/utils/SearchInput.ts 0.00% <0.00%> (ø)

codecov[bot] avatar May 11 '22 21:05 codecov[bot]

Thank you for the reviews, I'll work on them.

bolu-tife avatar May 12 '22 13:05 bolu-tife

Does this only apply to matrix.to URLs that use room aliases (https://github.com/vector-im/element-web/issues/21695), or also those based on room IDs (partially https://github.com/vector-im/element-web/issues/22500)?

HarHarLinks avatar Jun 09 '22 13:06 HarHarLinks

@bolu-tife thanks for submitting the PR :) is there any chance you might have time to update it based on comments? Looking forward to it getting merged! :+1:

kittykat avatar Jul 08 '22 16:07 kittykat

I'll look into it as soon as possible, thank you.

bolu-tife avatar Jul 09 '22 16:07 bolu-tife

Any progress on this?

tonkku107 avatar Mar 03 '23 21:03 tonkku107

@tonkku107 if you would like to work on this, it appears to have been abandoned by @bolu-tife , so feel free to make your own branch based on this one, and address the comments above, including the need for tests. Thanks!

andybalaam avatar Mar 06 '23 09:03 andybalaam

@tonkku107 (thanks to @t3chguy for pointing out) - some of the commits from @bolu-tife are not signed off, so unless they re-appear and sign them off or add a sign-off to the PR description, you would need to start again from scratch instead of building on this work :-(

andybalaam avatar Mar 06 '23 09:03 andybalaam

I apologies for the delay. Would you like to work on them? @tonkku107 I can sign them off or pick them up now as i am fully available. Thank you for your time @andybalaam

bolu-tife avatar Mar 06 '23 09:03 bolu-tife

If you're able to finish working on this, you should do it.

tonkku107 avatar Mar 06 '23 09:03 tonkku107

Alright, thanks.

bolu-tife avatar Mar 06 '23 10:03 bolu-tife

Hello @bolu-tife. Firstly I'm sorry for the delay on this. I'm trying to get this moving now. As a first step please could you merge the latest develop into your branch and we'll go from there.

alunturner avatar Apr 21 '23 08:04 alunturner

Thank you. I've merged the develop branch into this feature branch. @alunturner

bolu-tife avatar Apr 21 '23 20:04 bolu-tife

@bolu-tife, is this ready for another review?

SimonBrandner avatar May 03 '23 07:05 SimonBrandner

yes, it is @SimonBrandner

bolu-tife avatar May 03 '23 10:05 bolu-tife

I just noticed another ts error. I would work on it.

bolu-tife avatar May 03 '23 17:05 bolu-tife

I just noticed another ts error. I would work on it.

I have worked in it.

bolu-tife avatar May 03 '23 17:05 bolu-tife

@bolu-tife, be sure to hit the little wheel next to the reviewer's name, to re-request their review!

SimonBrandner avatar May 05 '23 15:05 SimonBrandner

@bolu-tife, be sure to hit the little wheel next to the reviewer's name, to re-request their review!

okay, thank you! @SimonBrandner

bolu-tife avatar May 05 '23 16:05 bolu-tife

@bolu-tife, be sure to hit the little wheel next to the reviewer's name, to re-request their review!

okay, thank you! @SimonBrandner

No problem!

SimonBrandner avatar May 05 '23 16:05 SimonBrandner