issues: https://linear.app/comm/issue/ENG-3466/add-some-state-for-keeping-the-search-query, https://linear.app/comm/issue/ENG-4109/add-search-button-to-search-modal
The query is saved only once the user has pressed "Search".
Differential D8274
[web] Use message search context in message search modal inka on Jun 21 2023, 5:38 AM. Authored by Tags None Referenced Files
Details issues: https://linear.app/comm/issue/ENG-3466/add-some-state-for-keeping-the-search-query, https://linear.app/comm/issue/ENG-4109/add-search-button-to-search-modal The query is saved only once the user has pressed "Search". (for the purpose of recording this I bound the pinned messages bar to message search modal)
Diff Detail
Event TimelineComment Actions Not sure what the status of the "Search" button is, is the plan for it to be implemented in other search modals too, or is it just a one-off? Do you think it would make sense to add it (as an option) to the SearchModal?
Comment Actions Also, the query won't be cleared if you manually remove text in the textbox (compared to clicking the X button) which I think I would find confusing. Comment Actions
Initially I implemented it like this, but because we want to remember the query in the context, using SearchModal made the code so complex, it was unreasonable. This modal is different from other search modals in that it fetches information from the server, not from redux, and it stores some information in the context. So I think it is reasonable that it requires a different implementation.
I will bring this up with Ted, but it does make sense to me personally Comment Actions Makes sense, thanks for explaining
|