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

MM-19195 - Clear search results before opening RHS for mobile view #4031

Merged
merged 4 commits into from
Oct 24, 2019

Conversation

marianunez
Copy link
Member

Summary

When the screen is small enough the search bar in the channel header turns into a button that when clicked opens the RHS and the user can type the search terms there.

In this case, it was not cleaning out any previous results or search terms causing issues as the attached one.

To fix these, I've included a new RHS action openRHSSearch that will clear out any current results and search terms before opening the RHS for the search button in the channel header in both smaller screen and mobile view cases.

Mobile View Search Button:

Screen Shot 2019-10-23 at 2 10 06 PM

Smaller Screen Search Button:

Screen Shot 2019-10-23 at 2 09 56 PM

This was not a problem when the search has the input bar to type given that the RHS would only open when the search has been performed and will replace any old results from previous search actions.

Ticket Link

Fixes MM-19195

@marianunez marianunez added 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester labels Oct 23, 2019
@marianunez marianunez added this to the v5.17.0 milestone Oct 23, 2019
@crspeller crspeller removed the 2: Dev Review Requires review by a core commiter label Oct 23, 2019
@amyblais amyblais added the CherryPick/Approved Meant for the quality or patch release tracked in the milestone label Oct 23, 2019
@thekiiingbob thekiiingbob added QA Review Done and removed 3: QA Review Requires review by a QA tester labels Oct 24, 2019
@marianunez marianunez merged commit 172631f into master Oct 24, 2019
@marianunez marianunez deleted the MM-19195 branch October 24, 2019 13:39
@mattermod mattermod added CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone and removed CherryPick/Approved Meant for the quality or patch release tracked in the milestone labels Oct 24, 2019
marianunez pushed a commit that referenced this pull request Oct 24, 2019
* Changed search button in channel header to use new openRHS action that will clear results before opening RHS

* Removed unsed actions

* Removed a couple of more unused actions

* Linting
@amyblais amyblais added Changelog/Done Required changelog entry has been written Docs/Not Needed Does not require documentation labels Oct 24, 2019
@lindy65 lindy65 added the Tests/Not Needed Does not require new release tests label Nov 4, 2019
brewsterbhg pushed a commit to brewsterbhg/mattermost-webapp that referenced this pull request Nov 11, 2019
…termost#4031)

* Changed search button in channel header to use new openRHS action that will clear results before opening RHS

* Removed unsed actions

* Removed a couple of more unused actions

* Linting
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Changelog/Done Required changelog entry has been written CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone Docs/Not Needed Does not require documentation QA Review Done Tests/Not Needed Does not require new release tests
Projects
None yet
7 participants