Commit Graph

112 Commits

Author SHA1 Message Date
Eric Peterson abd53e76a0 Only set default filter values on initial mount.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-04 14:34:32 +02:00
Eric Peterson e71458c208 Standard @testing-library/react-hooks version
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-04 12:30:56 +02:00
Camila Belo 311ca9f517 fix: change copyright year to 2021
Signed-off-by: Camila Belo <camilaibs@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:05 +02:00
Camila Belo 6b8d6ccd13 refactor(plugins/search): make components more stylable
Signed-off-by: Camila Belo <camilaibs@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:05 +02:00
Camila Belo 109e186b5f test(plugins/search): complete AlphaPerformSearchApi coverage
Signed-off-by: Camila Belo <camilaibs@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:05 +02:00
Camila Belo 49df6413f3 test(plugins/search): complete DefaultResultListItem coverage
Signed-off-by: Camila Belo <camilaibs@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:05 +02:00
Camila Belo c568e721f4 test(plugins/search): complete SearchBarNext coverage
Signed-off-by: Camila Belo <camilaibs@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:05 +02:00
Camila Belo 51e2b40cbb test(plugins/search): complete SearchFilterNext coverage
Signed-off-by: Camila Belo <camilaibs@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:05 +02:00
Camila Belo 970082195c test(plugins/search): complete SearchResultNext coverage
Signed-off-by: Camila Belo <camilaibs@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:05 +02:00
Eric Peterson 6ac8da4d49 Adding test coverage for SearchPageNext.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:05 +02:00
Camila Belo 4e97c47c93 test(plugins/search): complete coverage of SearchContext
Signed-off-by: Camila Belo <camilaibs@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:05 +02:00
Camila Belo 56d84c51a9 chore(plugins/search): @testing-library/react-hooks
Signed-off-by: Camila Belo <camilaibs@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:05 +02:00
Camila Belo f644678bd8 ♻️ Reduce setFilters logic of Checkbox and Select
Signed-off-by: Camila Belo <camilaibs@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:05 +02:00
Camila Belo a4c2bb02db Add key to Checkbox and Select filters
Signed-off-by: Camila Belo <camilaibs@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:05 +02:00
Camila Belo 8f3994141b Set default value for SearchBar as zero
Signed-off-by: Camila Belo <camilaibs@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:05 +02:00
Camila Belo 83a293b5f9 Clear cursorPage on the Context level
Signed-off-by: Camila Belo <camilaibs@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:05 +02:00
Camila Belo db6fd04d73 Move query param logic from SearchBar to SearchPage
Signed-off-by: Camila Belo <camilaibs@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:05 +02:00
Camila Belo c70139e732 Update CheckBox filter defaultValue to be string array.
Signed-off-by: Camila Belo <camilaibs@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:05 +02:00
Eric Peterson 4e6d888340 Move react type from devDeps to deps
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:05 +02:00
Emma Indal b264028394 initial tests
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:05 +02:00
Emma Indal d92b8ec5ea fixups
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:05 +02:00
Emma Indal 54cdabdd35 delete search filters component
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:05 +02:00
Emma Indal c8284149c2 composability refactoring
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:05 +02:00
Eric Peterson 1dbc719249 add react types to dev dependencies
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:05 +02:00
Emma Indal d42bb71aad fix notice header
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:04 +02:00
Emma Indal f6d5181b05 prettier
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:04 +02:00
Emma Indal b6a633ca31 it's 2021
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:04 +02:00
Emma Indal ed69943458 fix checkbox checked state
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:04 +02:00
Emma Indal cdfa7d69df fix margin
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:04 +02:00
Emma Indal 578028c9a6 consistent composability between result list items and filters
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:04 +02:00
Eric Peterson 94e13c8892 Making Search page composable.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:04 +02:00
Emma Indal 8829e8228e wip composable result list
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:04 +02:00
Emma Indal b614549b3e export component as extensions
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:04 +02:00
Eric Peterson 5bd3611406 add backtage config package to deps
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:04 +02:00
Emma Indal d57dc2dce9 fixups
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:04 +02:00
Emma Indal 982849c5b7 wip new filter component
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:04 +02:00
Emma Indal fa753e4edd split out state in search context
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:04 +02:00
Emma Indal b26eaef405 new filters component
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:04 +02:00
Emma Indal 83ef71d3f7 export components
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:04 +02:00
Emma Indal f0ffd95326 refactor search page using new components
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:04 +02:00
Emma Indal 0f77997953 wip new search page components
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:04 +02:00
Emma Indal d9cd644a1f search context
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-03 16:28:04 +02:00
github-actions[bot] fa92d70fba Version Packages 2021-06-03 13:23:54 +02:00
github-actions[bot] b5a0d1c5d7 Version Packages 2021-05-27 10:23:15 +00:00
github-actions[bot] 18285453eb Version Packages 2021-05-20 11:48:46 +00:00
github-actions[bot] df31bdca8f Version Packages 2021-05-12 09:39:51 +00:00
dependabot[bot] ee103bc710 chore(deps): bump @testing-library/user-event from 12.8.3 to 13.1.8
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 12.8.3 to 13.1.8.
- [Release notes](https://github.com/testing-library/user-event/releases)
- [Changelog](https://github.com/testing-library/user-event/blob/master/CHANGELOG.md)
- [Commits](https://github.com/testing-library/user-event/compare/v12.8.3...v13.1.8)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-11 14:30:59 +02:00
dependabot[bot] 0b51bcb008 chore(deps): bump react-use from 15.3.8 to 17.2.4
Bumps [react-use](https://github.com/streamich/react-use) from 15.3.8 to 17.2.4.
- [Release notes](https://github.com/streamich/react-use/releases)
- [Changelog](https://github.com/streamich/react-use/blob/master/CHANGELOG.md)
- [Commits](https://github.com/streamich/react-use/compare/v15.3.8...v17.2.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-07 09:20:46 +00:00
github-actions[bot] d397eb470f Version Packages 2021-05-06 08:25:18 +00:00
github-actions[bot] 44abfaada6 Version Packages 2021-04-29 13:35:03 +02:00