Summary: Getting the behavior exactly right was tricky, now settled on the following: * Don't automatically show the search history (the default) but introduce an explicit button to toggle it, as opening it by default was pretty obtrusive in testing * Items are added to the history when using return / explicitly clicking search, to only get "clean" entries into the history, and not half complete searches. Needing to press enter might be to subtle since datatable will also search without that, but not searching on keypress felt as a regression as well. * Introduced a menu item for clearing the search history * Search history is persisted like search filters. Yay to Antd's AutoComplete, which is really straightforward and cleanly composes with Input.Search. Changelog: DataTable will now keep a history of search items when hitting <return> to search. Use the history button to bring up the history. Reviewed By: aigoncharov Differential Revision: D36736821 fbshipit-source-id: 8d18b85308a39bd1644057371040855d199545c7
flipper-plugin
flipper-plugin is the dependency used by all modern Flipper plugins (project "Tommy").
For background: https://fb.quip.com/YHOGAnaPqAVJ
flipper-plugin is to be used as dev and peer dependency of all Flipper plugins. It provides:
- (TODO) Standard API's to interact with Flipper, such as the client connection.
- (TODO) Standard components to organize the UI
- (TODO) Testing utilities
API's provided by flipper-plugin are documented at fbflipper.com (TODO).
There should normally be no need to install flipper-plugin as dependency.
Rather, plugins should be scaffolded using npx flipper-pkg init (TODO) as documented here