-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Feat: Create filter-plugin architecture for unified search #43189
Conversation
dd46a77
to
82cbdb7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, 2 details:
- As @marcoambrosini said: Rename the current "Conversations" filter to "Talk" for better clarity
- The "In conversation" should be moved further up so it is grouped with the other Talk-related filters
The reason this was not done straight way is because the providers (come from the backend) but it's possible to loop and find specific filters and rename them, don't know if this route would be okay. |
I think it's better to do it properly in the backend no? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! The only thing that I would add is a search box on top of the places filter too. These can be a lot (see our company instance) and it might also get confusing.
It would be also great to set up search aliases, for example if someone searches "Chat", they're also presented with the "talk" and "conversation" filters.
c5920f4
to
33a4fb5
Compare
The context of the PR has changed and actual UI changes that his PR initially contained are now in : nextcloud/spreed#11575 |
e25f0ff
to
71da116
Compare
81a824e
to
857477c
Compare
/compile |
6754a8c
to
0c38e89
Compare
@@ -258,8 +263,13 @@ export default { | |||
|
|||
}, | |||
mounted() { | |||
subscribe('nextcloud:unified-search:add-filter', this.handlePluginFilter) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a no from me, using an event to actually handle this registrations are not a stable way to do so.
I'd suggest using a proper registration like the event bus or the file actions is doing.
@@ -412,12 +423,27 @@ export default { | |||
}, | |||
addProviderFilter(providerFilter, loadMoreResultsForProvider = false) { | |||
if (!providerFilter.id) return | |||
if (providerFilter.isPluginFilter) { | |||
providerFilter.callback() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is a callback? What does it do?
A callback that is called without any parameters is odd to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, good PR!
There are a few places where it gets confusing between the name
and label
attributes, and I agree with the API choices that the other reviewers have mentioned. Perhaps for tomorrows team call / Thursday PR chat's, you can schedule something to be aligned with the team, because I understand the time conflicts are not easy ahaha :)
0c38e89
to
f61aee4
Compare
Dismissing my review as the code/UI parts of Talk are not here anymore
Clicking on Screencast.from.05.03.2024.17.29.31.webm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Outside of cases where to make the code clearer and more maintainable for the future, good PR :) Discussed with others, and the API deprecation can be handled later, just make sure to address #43189 (comment) and its all good to me!
This commit introduces the mechanism for apps out of the call, to add search filters to the unified search "Places" filter selector. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
f61aee4
to
647f4bc
Compare
/compile / |
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Sure thanks, would address that in follow up #43963 which is on its way in, I think it's best this goes in now so at the very least the spreed filter is working by feature freeze. |
Description
This commit introduces the mechanism for apps out of the call, to add search filters to the unified search "Places" filter selector.
Resolves : #42914
TODO
Manual Testing
Set spreed/talk branch to : nextcloud/spreed#11575