linagora / Twake

Twake is a secure open source collaboration platform to improve organizational productivity.
https://twake.app
GNU Affero General Public License v3.0
1.79k stars 194 forks source link

[Story] Search #1710

Open BenoitTallandier opened 3 years ago

BenoitTallandier commented 3 years ago

https://www.notion.so/linagora/Search-for-Web-89d99d8bf4c64e8aa63421efd02212d9

User story summary

Definition
Business case
Criteria
UI/UX Design
Notes
Related

Definition

Given I am a company member
When I want to search for something inside a channel
Then I click on the "search" button and the search popup appears
And I write in the input what I want to search
And I can see results (message or only the files)

Business case

Criteria

UI UX Design

https://www.figma.com/file/uLw3iWnOEGaRlJnfPz4Pv0/Twake.new?node-id=718%3A53947

Search-web Search-web (1)

Notes

Related

RomaricMourgues commented 3 years ago

@romanesko technically speaking this is the workflow:

The cache field will help us in the future add more fields that can be used as additional filters, also it helps us reduce the number of results from elastic search if we already have all the filters in elastic search.

romanesko commented 2 years ago

API documentation: https://www.notion.so/linagora/Rest-APIs-232eb8e51c3743ccbb7aa3534a5a7db9#9860b0b7a7c448329badb6cc99516c0c

RomaricMourgues commented 2 years ago

Here is my proposal following our discussion this morning. "All" will be for later so the default view is "Discussions" (previously "Chats"). This is now a popup for web with the usual right "X" button to be consistant with the rest of the app. I did not modify anything else, but @romanesko please create reusable components for the new "icons" of channels, for now we will keep the emojis in the center of the circles instead of the first letter of the channel on web.

Screenshot 2022-04-20 at 11.39.43.png

RomaricMourgues commented 2 years ago

@BenoitTallandier please validate this (or not) and also we need an idea to choose if we are searching in:

BenoitTallandier commented 2 years ago

Great job! It's ok for me 👏 We are searching in the current company :)

RomaricMourgues commented 2 years ago

Tested on QA, for me I have a small issue when doing search and stern clear the input. I get fatal error something == null Of course I'm unable to reproduce it now as soon as I get it again I'll send you the image

RomaricMourgues commented 2 years ago

Other bug, highlight for content with accent not working (we have a function in frontend utils to remove accents, simply do Strings.removeAccents(the string)) Screenshot 2022-05-13 at 09 38 48

RomaricMourgues commented 2 years ago

There is too many requests to the backend, you should use the utils function called delayRequest in src/app/features/global/utils/managedSearchRequest.ts

RomaricMourgues commented 2 years ago

@romanesko three stuff to fix on my 3 previous messages

romanesko commented 2 years ago

Found the reason of fatal error — that's goes from elastic if you trying to search only one symbol. Fixed

romanesko commented 2 years ago

done

hantt12 commented 2 years ago

Tested in canary: Houston error in some of the channel. Please check this channel for example https://canary.twake.app/client/bDxmFx1KPWhhJeetsVj12J/w/w31iupjuCFvvbf8ewYcYg7/c/hdqHJUcBH1cBWghSoFz93y

2022-05-24_14-27-42.gif