feat: 🎸 Refactor session recording filters (#2981)

This commit has a few notable changes:

1. A simple attempt at establishing a pattern for using SELECT statements. This will be useful in the future for joins/subquery support.
2. Expanded usage of searching to be able to pass instead of just a string, an object that lets a consumer choose which columns to search on.
3. Decouple our session recording filters from being loaded from the route model hook which is a departure from our convention. This has the benefit of actually letting the page first load and having the filters load async so the page doesn't wait for the filters to finish. This is also much faster to query for each individual filter option from SQLite rather than returning all data to filter in application code.
This commit is contained in:
Zhihe Li authored and GitHub committed 2025-10-31 16:58:05 -04:00
1 parent 72f7c8a92d
commit fa18bfff01
18 files changed
+558 -250

No files matched your search

@@ -127,7 +127,7 @@ module('Integration | Component | dropdown/index', function (hooks) {
assert.true(result);
});
test('it only renders a max of 500 items but allows searching on all items', async function (assert) {
test('it only renders a max of 250 items but allows searching on all items', async function (assert) {
this.set('checkedItems', []);
this.set(
'itemOptions',
@@ -145,7 +145,7 @@ module('Integration | Component | dropdown/index', function (hooks) {
await click(TOGGLE_DROPDOWN_SELECTOR);
assert.dom(ITEM_SELECTOR).exists({ count: 500 });
assert.dom(ITEM_SELECTOR).exists({ count: 250 });
// Random number between 500 and 599 to search
await fillIn(SEARCH_INPUT_SELECTOR, '591');