Ghost/ghost/admin/mirage
Kevin Ansfield 03defc274e 🐛 Fixed Admin crash when member filters were focused+blurred without entering a filter value
closes https://github.com/TryGhost/Team/issues/1309
closes https://github.com/TryGhost/Team/issues/1336

- the error occurred because the `<Members::FilterValue>` component detaches it's value from the passed in value it was initialized with. Due to the detached handling, after changing the filter type away from the default label filter to a text input based filter, the internal value stayed as `[]` even though the filter type's value was changed. When the blur event was triggered in that state the internal `[]` value was used to update the filter resulting in an invalid filter string
  - added a quick-fix of assigning the input's value in the blur event handler meaning we get the expected `''` value
  - allows for passing tests to be created ready for a deeper fix/refactor later
- added `nql` dependency and used it in the `GET /members` API mock to match members against the filter param so behaviour matches the real API
  - tested increase in code size - dev build increased by ~180KB, no difference in prod
- added acceptance tests for all current filters and search
2022-02-15 21:38:57 +00:00
..
config 🐛 Fixed Admin crash when member filters were focused+blurred without entering a filter value 2022-02-15 21:38:57 +00:00
factories 🐛 Fixed Admin crash when member filters were focused+blurred without entering a filter value 2022-02-15 21:38:57 +00:00
fixtures Added acceptance tests for new design screen 2021-11-01 17:48:49 +00:00
models Refactored member activity list components 2022-01-19 12:58:09 +00:00
scenarios 🔥 Removed all subscriber feature related code (#1337) 2019-09-26 15:58:01 +02:00
serializers Refactored member activity list components 2022-01-19 12:58:09 +00:00
.eslintrc.js Update dependency eslint to v7 (#1566) 2020-05-17 22:53:37 +01:00
config.js Added acceptance tests for new design screen 2021-11-01 17:48:49 +00:00
utils.js Fixed tests 2021-05-10 21:02:54 +01:00