Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Add a URL panel to the right panel #9586

Closed
wants to merge 1 commit into from

Conversation

Arnei
Copy link
Contributor

@Arnei Arnei commented Nov 16, 2022

Adds a new panel the right menu that, akin to "Files", shows all messages in the room containing at least one URL. This would help users find previously posted URLs without having to come up with the correct search term(s) to find them.

Example images:
Bildschirmfoto vom 2022-11-16 15-55-22
Bildschirmfoto vom 2022-11-16 15-55-47

Code-wise this more of a proof of concept. UrlPanel.tsx is almost completely copy and pasted from FilePanel.tsx. UrlPanel.tsx should probably either be stripped down or both of them should be abstracted into a generic class.

Furthermore, the type of filter necessary for this PR does not seem to exist (the one suggested by this PR is probably quite a hack), and I am unsure what the best course of action in creating such a filter would be. Any advice on that and on how/why synapse must be involved would be appreciated.

Related matrix-js PR for the filter: matrix-org/matrix-js-sdk#2886

Signed-off-by: Arne Wilken [email protected]


This PR currently has none of the required changelog labels.

A reviewer can add one of: T-Deprecation, T-Enhancement, T-Defect, T-Task to indicate what type of change this is, or add Type: [enhancement/defect/task] to the description and I'll add them for you.

Adds a new panel the right menu that, akin to "Files", shows all
messages in the room containing at least one URL. This would
help users find previously posted URLs without having to come
up with the correct search term(s) to find them.

Code-wise this more of a proof of concept. `UrlPanel.tsx` is almost
completely copy and pasted from `FilePanel.tsx`. `UrlPanel.tsx`
should probably either be stripped down or both of them should
be abstracted into a generic class.

Furthermore, the type of `filter` necessary for this PR does not seem to
exist (the one suggested by this PR is probably quite a hack), and I am
unsure what the best course of action in creating such a filter would be.
Any advice on that and on how/why synapse should be involved would
be appreciated.

Signed-off-by: Arne Wilken [email protected]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Z-Community-PR Issue is solved by a community member's PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants