Page MenuHomePhabricator

[native] Add message search screen
ClosedPublic

Authored by inka on May 10 2023, 3:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 11, 12:46 PM
Unknown Object (File)
Thu, Apr 11, 12:46 PM
Unknown Object (File)
Thu, Apr 11, 12:46 PM
Unknown Object (File)
Thu, Apr 11, 12:46 PM
Unknown Object (File)
Thu, Apr 11, 12:46 PM
Unknown Object (File)
Thu, Apr 11, 12:46 PM
Unknown Object (File)
Mon, Apr 8, 2:57 AM
Unknown Object (File)
Sun, Apr 7, 3:42 PM
Subscribers

Details

Summary

issue: https://linear.app/comm/issue/ENG-3163/create-the-search-screen-for-message-searching
Creating a screen that will display results of message search, or "Your search results will appear here!" message

Test Plan

Opened the screen, checked that it displays correctly

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

native/search/message-search.react.js
1 ↗(On Diff #26328)

This is temporary

66 ↗(On Diff #26328)

This is temporary

native/search/message-search.react.js
31–35 ↗(On Diff #26328)

This clears the query in the context when the screen is left

inka requested review of this revision.May 10 2023, 3:56 AM
native/search/message-search.react.js
1 ↗(On Diff #26328)

Can you use eslint-disable-next-line instead of a global eslint-disable that applies to the whole file? It's hard to tell where this is used

49 ↗(On Diff #26328)

undefined is the default

61 ↗(On Diff #26328)

Nit: can we remove the exclamation mark at the end?

66 ↗(On Diff #26328)

Does return null work? If not, you could use a shorthand: return <View />

72 ↗(On Diff #26328)

We should avoid mixing families of colors. If we're using the panel family here, we should use that family in D7740 as well. If we choose to use a different family there, we can use something different here. If this requires changing the designs, you should consult Ted

inka planned changes to this revision.May 11 2023, 7:42 AM

Address revie, change the state from keeping the measured messages, to just keeping searchResults (MessageInfo) to address https://linear.app/comm/issue/ENG-3882/reaction-not-showing-in-search-screen

Rename Statement to SearchFooter

This revision is now accepted and ready to land.May 12 2023, 9:40 AM