Commit Graph

542 Commits

Author SHA1 Message Date
Andrey Goncharov
e180a1ed4b Make float term editable
Summary: For the purposes of the demo I added power search config for a float field to the summary field

Reviewed By: lblasa

Differential Revision: D49452844

fbshipit-source-id: 26aaadd07a1a8a67dfcf3cb9d8e487f8f4ee2214
2023-09-20 04:36:57 -07:00
Andrey Goncharov
31e93ff3fe Make integer term editable
Summary: For the purposes of the demo I added power search config for an integer field to the summary field

Reviewed By: lblasa

Differential Revision: D49452729

fbshipit-source-id: 78b8fdccfd799a0f71f652d90d10e11db237cbae
2023-09-20 04:36:57 -07:00
Andrey Goncharov
b3fe4c9650 Make enum term editable
Reviewed By: lblasa

Differential Revision: D49452483

fbshipit-source-id: e9bef3c5499a91231f6025e403c132b924491def
2023-09-20 04:36:57 -07:00
Andrey Goncharov
09cb48a3e3 Make string term editable
Summary:
At the end of the stack we are going to unify two branches of the switch-case in PowerSearchTerm.tsx.
Each search term is going to handle the finalized and "editing" mode internally

Reviewed By: lblasa

Differential Revision: D49451975

fbshipit-source-id: 587ba332d1fbfbaefb368e37965543575e64062f
2023-09-20 04:36:57 -07:00
Andrey Goncharov
1163769b83 Change layout for power search enabled data table
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49411939

fbshipit-source-id: 0ca8b69ac7eaad1ece88caa5a220203fe54ad946
2023-09-19 08:19:25 -07:00
Andrey Goncharov
f6ffbfe3e2 Fix filtering bugs
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49411941

fbshipit-source-id: 530b0abcbba57e2503da4641d17fd1a507955b45
2023-09-19 08:19:25 -07:00
Andrey Goncharov
6f38ecfd01 Add enum_is_nullish_or operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49410975

fbshipit-source-id: 5f97e055107dfb72d14825b5d697cea71b9bf81a
2023-09-19 08:19:25 -07:00
Andrey Goncharov
e6f1e7a74f Add enum_set_is_nullish_or_any_of operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49410967

fbshipit-source-id: 699e620ce1076793597702711758809fc149389e
2023-09-19 08:19:25 -07:00
Andrey Goncharov
a6fdc127a2 Simplify SearchTerm
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49410971

fbshipit-source-id: 5651dd1745aaf2efc96bae6a6b36cadad00d5c36
2023-09-19 08:19:25 -07:00
Andrey Goncharov
9d4ce0586d Support setting initial power search expression
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49410966

fbshipit-source-id: 2dcdb4495275dfdca7920af26bbfea4fb95ac419
2023-09-19 08:19:25 -07:00
Andrey Goncharov
ba812eaea6 Fix empty filter bug
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49410974

fbshipit-source-id: 4845f32e6be6375e113053b7123df6e78b44b269
2023-09-19 08:19:25 -07:00
Andrey Goncharov
e5b2f693a3 Setup power search
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49410972

fbshipit-source-id: 35cea0f033c16748e0ceb0921dee8276787fb1a6
2023-09-19 08:19:25 -07:00
Andrey Goncharov
3022b8ddb1 Simplify data table power search config for each column
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49410973

fbshipit-source-id: d8854eefaf1901c4984300df955a15c77c03505e
2023-09-19 08:19:25 -07:00
Andrey Goncharov
3b75b6994b Allow disabling power search for certain columns
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49373658

fbshipit-source-id: 872bd6ecdce9c3ed7934f86f1954efdff76185b9
2023-09-19 08:19:25 -07:00
Andrey Goncharov
c75c377818 Expose DataTable and DataTableManager
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: LukeDefeo

Differential Revision: D49349842

fbshipit-source-id: 927dc817e09d830feab9ba3e5e566ddb17fe1ad0
2023-09-19 08:19:25 -07:00
Andrey Goncharov
a86c8b412f Remove search history from context menu
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: LukeDefeo

Differential Revision: D49410968

fbshipit-source-id: a5160bb5d392f3884d46a3a390aa9e274d0230ea
2023-09-19 08:19:25 -07:00
Andrey Goncharov
d09dde724b Add search icon
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: LukeDefeo

Differential Revision: D49349828

fbshipit-source-id: 45a9917366236dda6c2409c30a4800cfe53dbd56
2023-09-19 08:19:25 -07:00
Andrey Goncharov
54a93c03aa Compute power search config from columns
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49349521

fbshipit-source-id: 49f8059bdbfbcc316b79eb633ec54d957f16548d
2023-09-19 08:19:25 -07:00
Andrey Goncharov
8cea5be59d Add min width for term finder
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: LukeDefeo

Differential Revision: D49349523

fbshipit-source-id: a9b9a14a74f9c32e094936e4bd38bef8f34e4c2c
2023-09-19 08:19:25 -07:00
Andrey Goncharov
f86dba951b Fix Searchbar styles
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: LukeDefeo

Differential Revision: D49349522

fbshipit-source-id: fa37cd0dcca291788834e76df3d4475842df8d48
2023-09-19 08:19:25 -07:00
Andrey Goncharov
54085eb79f Add context menu
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: LukeDefeo

Differential Revision: D49276995

fbshipit-source-id: 83c1346c6c5869c2608b73b11d40f7f55a7a694b
2023-09-19 08:19:25 -07:00
Andrey Goncharov
bad3dfa20a Hide filter buttons
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: LukeDefeo

Differential Revision: D49276686

fbshipit-source-id: 5bfea4b7ef87b8d71aa4cb5a1dc3f9a94ea420f0
2023-09-19 08:19:25 -07:00
Andrey Goncharov
9dbd6f7732 Allow TableHead hide filter button
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: LukeDefeo

Differential Revision: D49276687

fbshipit-source-id: dfa2a51e3bfa84ad3e39b6a4b3a4e279cf63c1d5
2023-09-19 08:19:25 -07:00
Andrey Goncharov
de5f9bc32a Add bolirplate for power search integration
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: LukeDefeo

Differential Revision: D49272248

fbshipit-source-id: ad6d88568f40bd698faed4c3fc0fc55efd93f5f3
2023-09-19 08:19:25 -07:00
Andrey Goncharov
0cdc7d41be Add MasterDetailWithPowerSearch
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: LukeDefeo

Differential Revision: D49271463

fbshipit-source-id: 1309227024dd02e0f683a3c427b61663fb7a212f
2023-09-19 08:19:25 -07:00
Andrey Goncharov
1cf7160b2c Add same_as_absolute_date_no_time operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: lblasa, antonk52

Differential Revision: D49232775

fbshipit-source-id: 0ad6fafdd998f79a8b96bf9cd9d6e012e6e3a492
2023-09-14 04:48:12 -07:00
Andrey Goncharov
7d90493148 Add older_than_absolute_date_no_time operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49232776

fbshipit-source-id: 1083c277c78cd6eb2bae069966a9de290aa71930
2023-09-14 04:48:12 -07:00
Andrey Goncharov
ea1d2e9813 Add older_than_absolute_date operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: lblasa, antonk52

Differential Revision: D49232777

fbshipit-source-id: ec82faca4690d099c6c9d0427c569bfe2a9dd233
2023-09-14 04:48:12 -07:00
Andrey Goncharov
7a6d895aa8 Add newer_than_absolute_date_no_time operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: lblasa

Differential Revision: D49232773

fbshipit-source-id: 96ab2d0d5cc804c1fcf1e64475fd68de60fa797a
2023-09-14 04:48:12 -07:00
Andrey Goncharov
ad6b3ed4f9 Add newer_than_absolute_date operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: lblasa, antonk52

Differential Revision: D49232772

fbshipit-source-id: 578378faffd83da10df103715734603c67bebb83
2023-09-14 04:48:12 -07:00
Andrey Goncharov
51073bc665 Add float_equals operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49230150

fbshipit-source-id: 976055a555d02ea61e29b4f2e939c9c89e44fd49
2023-09-14 04:48:12 -07:00
Andrey Goncharov
a0f02c57e4 Add int_equals operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49230145

fbshipit-source-id: 3fa4332ca3129a2a652cf2c33a4383f100d50e33
2023-09-14 04:48:12 -07:00
Andrey Goncharov
3a4dada2fc Add is_nullish operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49230135

fbshipit-source-id: 1f7d88512eb3ed592eb406f0950ffa0c6985772c
2023-09-14 04:48:12 -07:00
Andrey Goncharov
75884674e0 Add enum_is_not operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49230146

fbshipit-source-id: 66ab340b52a1de1935b4d2f1ef4bc81dc16310f0
2023-09-14 04:48:12 -07:00
Andrey Goncharov
6857e1fb26 Add enum_set_is_none_of operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49230148

fbshipit-source-id: b0aa4e702b27359e513b2557c80b6bab529618d5
2023-09-14 04:48:12 -07:00
Andrey Goncharov
12179a35da Add enum_set_is_any_of operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49230147

fbshipit-source-id: a020d182a36affe65ed9ab3eb6a1197ddd12270b
2023-09-14 04:48:12 -07:00
Andrey Goncharov
61160a2d4b Add enum_is operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: lblasa, antonk52

Differential Revision: D49230138

fbshipit-source-id: f20a1a053cc6370acec57e63df80691c64bffc90
2023-09-14 04:48:12 -07:00
Andrey Goncharov
1618404d25 Add float_less_or_equal operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: lblasa

Differential Revision: D49230133

fbshipit-source-id: ff55224698c71273b4b9f78afe3df58caa9561dc
2023-09-14 04:48:12 -07:00
Andrey Goncharov
db60ec0fa1 Add float_less_than operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49230142

fbshipit-source-id: b49af428d75f749142f2aa87c8b863c379f53c27
2023-09-14 04:48:12 -07:00
Andrey Goncharov
70a46ddcc6 Add float_greater_or_equal operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49230137

fbshipit-source-id: 19c97bd850b065f4c203c257ce9f0a3f33bb1eb2
2023-09-14 04:48:12 -07:00
Andrey Goncharov
467a4591b0 Add float_greater_than operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49230130

fbshipit-source-id: 31755bc19d4bb7a397c361f5d0e236e08c945cd1
2023-09-14 04:48:12 -07:00
Andrey Goncharov
092e9e7a72 Add int_less_or_equal operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: lblasa, antonk52

Differential Revision: D49230140

fbshipit-source-id: 0fd825eb38f64e67ebdd4bca4846aae440b95981
2023-09-14 04:48:12 -07:00
Andrey Goncharov
8d4c8486e5 Add int_less_than operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: lblasa, antonk52

Differential Revision: D49230143

fbshipit-source-id: d1551a9a472bdb9dafe61259e88bb50fa8b79153
2023-09-14 04:48:12 -07:00
Andrey Goncharov
18ae536dc3 Add int_greater_or_equal operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: lblasa, antonk52

Differential Revision: D49230132

fbshipit-source-id: ac0e32e4d83d45d18a03dc2b95c4d0d546f86372
2023-09-14 04:48:12 -07:00
Andrey Goncharov
df37187b6b Add int_greater_than operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: lblasa

Differential Revision: D49230136

fbshipit-source-id: e3ebcc1d501a31a3d7076ad2d013b66ec69ea935
2023-09-14 04:48:12 -07:00
Andrey Goncharov
43b2effdda Add string_set_contains_none_of operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: lblasa

Differential Revision: D49230131

fbshipit-source-id: 9c4375e181b2ac20b5ab346c2e5f24c6d90c28ac
2023-09-14 04:48:12 -07:00
Andrey Goncharov
a27f4580a3 Add string_set_contains_any_of operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: lblasa

Differential Revision: D49230134

fbshipit-source-id: aa8c4494e707dfbf70568517a50c1f5803fce32a
2023-09-14 04:48:12 -07:00
Andrey Goncharov
17903c22f4 Add string_not_matches_exactly operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: lblasa

Differential Revision: D49230141

fbshipit-source-id: 7dc7bfa06ab413642385c63b1eb25ef2ef69ef43
2023-09-14 04:48:12 -07:00
Andrey Goncharov
113e2a90ad Add string_matches_exactly operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: lblasa

Differential Revision: D49230149

fbshipit-source-id: 7d66733d0ff311a82f9bc5673a2fb204d3ae6a9a
2023-09-14 04:48:12 -07:00
Andrey Goncharov
3206649a29 Add string_not_contains operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: lblasa

Differential Revision: D49230139

fbshipit-source-id: 23d0f9f8f50906c940764e3e9e5382ead9be9d35
2023-09-14 04:48:12 -07:00