-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Advanced message search #6546
Advanced message search #6546
Conversation
7eae2a1
to
58b931c
Compare
e652003
to
d589113
Compare
That is a great feature! |
d589113
to
5d170aa
Compare
At first glance it looks really nice :) The placement makes sense to me, and it seems like it would search only within the current mailbox which is open? For eg, if you are in "Sent" then it would search through only "Sent" and not in "Inbox", is that correct? I am not able to give more detailed feedback as I don't fully understand the language, could you please post screenshots in English so it is easier for me and anyone else to also review? :) |
@nimishavijay hello! Yes, the search takes place in the folder that the user has open, with the exception of the folder "Priority" and "All" mailboxes
|
Ah thank you so much :) Visually also it looks pretty good :) Only minor feedback from my end
Really nice work! :) |
Great feedback @nimishavijay, nothing to add! :)
Agree with your proposal of changing the wording to "Clear". |
@nimishavijay @jancborchardt HELLO!!!) I removed the "Theme" switch altogether. it was initially present, as I was thinking of adding a "Body" switch in the future. So that you can choose why to search in the query: But since it's not possible to search through the body now, what's the point of one switch? Therefore, I think that by default, what was written in the search bar is searched in the Subject please give feedback about corrected design =) PS I will also try to make a filter by search date (sentdate) |
Nice work! Super cool with the datetime picker :D A few tiny changes:
This behaviour makes sense, I think we can also include the subject input field in the modal to easily make changes to the subject if needed. It can be the first item. Really really nice work :) |
@nimishavijay |
403a6ee
to
85bf7b0
Compare
Looks great now! Only a couple of tiny changes:
|
Signed-off-by: Mikhail Sazanov <m@sazanof.ru>
85bf7b0
to
6430c1b
Compare
Hello! What else? |
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.
Very very nice job @sazanof! :) Only minimal feedback:
- The modal needs a title (h2), inside the modal "Search in mailbox"
- Can the "x" close button also be placed inside the modal on the top right, or is that a component thing cc @GretaD ?
- The placeholder of "Subject" can then be changed to "Search term"
- The date placeholders would be more understandable as "Pick start date" and "Pick end date"
- The "Select recipient" placeholder could be individual to the field, like:
- From: "Select sender"
- To: "Select recipient"
- Cc: "Select cc recipient"
- Bcc: "Select bcc recipient"
- On the bottom "Favorite" is better as singular – "Marked as favorite"
Otherwise all good to go! :)
Hi, @jancborchardt ! Thank you for review!
I think it is not possible to change placeholder text without make changes in component |
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.
Tested and works.
The whole search uses the database, but I would like to add another switch "Message body"
That is a great idea! However, I'm currently not sure either how to implement it. IMO, we should move on with this PR and followup with improvements later.
position: absolute; | ||
top: 0; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; |
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.
Out of curiosity: Are those changes required for the PR? They seem to be unrelated.
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 right! I just wanted to vertically center the text "Loading messages"
b61dd57
to
7a42348
Compare
5ca3a1a
to
cd8054f
Compare
So, conflicts solved, css fixrd a little |
I'm not sure why the php tests fail. I'll investigate it a bit. In the meantime, could you please fix all static analysis issues in your php code changes? |
874ed13
to
9716789
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.
Tested and works! I love it!
Again, a big thank you from me and the rest of the Groupware team.
I added a couple of commits to fix styling and removed some dead debugging code. Could you please squash all commits (including my fixups) into one? Then we are ready to merge.
Signed-off-by: Mikhail Sazanov <m@sazanof.ru>
462be34
to
8aa852d
Compare
@st3iny Thank you for help.
I hope I did everything right |
Thanks so much for your work, it is impressive!!!!! 🥳 |
🎉🎉🎉🎉🎉 |
Signed-off-by: Mikhail Sazanov m@sazanof.ru
Hello! I would like to discuss the improvement related to the search for emails by sender, recipient, cc, bcc, subject of the letter, as well as by tags.
This is a PR draft, because, ideally, I would also like to search through the body of the letter. I looked at the code and realized that the body of the letter is searched here:
mail/lib/Service/Search/MailSearch.php
Line 168 in fe00d8b
If
&filter=my text
is passed to the URL request,2 search tokens
will be generated and passed to this method ($query->getTextTokens()
)However, there is a problem that I haven't figured out how to solve yet: I get the exception
String contains non-ASCII characters.
. Tested with Cyrillic characters. Moreover, if you write one word, there is no mistake. I looked at the ASCII characters table and all the characters used in the query are there. This is the first problem and perhaps the most important. Can you advise on this?Also, in order to correctly search for a match in the topic, I replace the space with "+" so that the
$query->addTextToken()
method does not work. I can't say that this is a super solution, but that's how it is... But the search occurs clearly by the phrase.I also didn't understand how to search by
imap_label
directly on the IMAP server. =(The whole search uses the database, but I would like to add another switch "Message body"
I placed the search bar in an obvious place. I remember there was a PR nextcloud/contacts#2711
And I read several messages, that this place will be occupied by other buttons. However, it seems to me that the most optimal place here is for searching (in contacts and mail).
If you are interested in PR, I would ask you to check the operation of this functionality and discuss / get tips for further improvement. Thank you!