Commit Graph

58 Commits

Author SHA1 Message Date
Mario Zechner
97b4b25933 Show alaSQL errors in the UI. 2023-06-21 21:29:57 +02:00
Mario Zechner
4fc46fc335 Fix visibility of filter groups, fix diagram show/hide. 2023-06-21 17:25:48 +02:00
Mario Zechner
60ecb68924 Mark unavailable items in data and with 💀 in ui, add emojis to category names, hide filter groups if ! query, 2023-06-21 17:07:45 +02:00
Mario Zechner
d9ed69f578 Fix Penny URLs, invert category filter checkbox logic. 2023-06-21 16:15:05 +02:00
Mario Zechner
303d25ccb5 Categories for Billa & Spar, infra to add catgories for other stores.
Billa maps directly to the canonical categories. Spar uses a mapping file stores/spar-categories.json.

Each store has a generateCategoryMapping() function which is called once in analysis.js:updateData() and analysis.js:replay(). The function is responsible for

* Fetching the latest categories
* Merging them with already mapped categories
* Report new categories that haven't been mapped yet
* Report categories that have been mapped but are no longer part of the latest set of categories
* Save the merged mappings to disk

This schema might not work for all stores, in which case updateData() and replay() will use a knn approach to figure out the category for an item. See #81
2023-06-21 01:29:00 +02:00
Mario Zechner
55b8a79107 Try to unfuck some chart related CSS. 2023-06-20 00:22:22 +02:00
Mario Zechner
ae470972b0 Lower items list batch size for faster rendering. 2023-06-18 22:44:33 +02:00
Mario Zechner
f315d03829 Remove sparSi, use getters instead of precalculated values in item. See #99 145mb - 92mb 2023-06-18 22:35:48 +02:00
Mario Zechner
d636362acc Don't precalculate item url. See #99 166 -> 159mb 2023-06-18 20:14:36 +02:00
Mario Zechner
887c72be64 Require at least 3 characters for queries. 2023-06-18 19:24:07 +02:00
Mario Zechner
e2b38aec95 Higher debounce delay on mobile. 2023-06-18 16:24:32 +02:00
Mario Zechner
b6a9ec80b5 Added BM25 search index implementation. Run node site/js/bm25.js for testing. 2023-06-17 14:40:09 +02:00
Mario Zechner
c7537c341e Binary format optimization 4.4mb -> 3.9mb, don't store urls were not needed, use product-id instead of code-internal for spar items, 2023-06-17 01:11:21 +02:00
Mario Zechner
ea5c133003 Binary compression (it's worse), unit prices in charts, small improvements. 2023-06-16 16:01:13 +02:00
Mario Zechner
c97c8116f6 "Fix" stepping of single item price lines with magic... 2023-06-16 00:48:51 +02:00
Mario Zechner
258936dc0c Fixed stepped charting. 2023-06-16 00:16:59 +02:00
Mario Zechner
cd429da10b Chart: Re-enable intersection mode, don't back or forward fill anymore 2023-06-16 00:13:12 +02:00
Mario Zechner
0580fa709d Don't backfill prices for charting. 2023-06-15 23:55:28 +02:00
Mario Zechner
bd1fa721e4 Settings page and settings for default selected stores, chart start date, and chart type. 2023-06-15 21:12:01 +02:00
Mario Zechner
9e5e8e00fc
Merge pull request #92 from iantsch/select-all-stores-ux
Fix select all stores ux
2023-06-15 19:49:36 +02:00
Mario Zechner
bbc2decb0d
Merge branch 'main' into main 2023-06-15 19:38:53 +02:00
Mario Zechner
bff3de097e
Merge pull request #98 from schwindp/patch-1
Update items-list.js, fixing a simple front page typo
2023-06-15 19:34:39 +02:00
Mario Zechner
6281e66dc7 Various improvements, perf, style, live-reload. 2023-06-15 19:25:35 +02:00
Peter Schwindt
c4c41aa922
Update items-list.js, fixing a simple front page typo
Just a humble typo
2023-06-15 19:02:03 +02:00
Mario Zechner
9646f07db5 More charting changes. restore.js can now take a h43z.json file and merge it with the restored history. Ask Mario for the data. 2023-06-14 17:07:02 +02:00
Mario Zechner
64350d27f6 Improved charting. 2023-06-14 04:06:25 +02:00
Mario Zechner
38a11e0e79 Moment + adapter, sorting when no order by clause in alasql query. 2023-06-14 02:56:31 +02:00
Mario Zechner
7b9a6fe969 h43z importer almost complete, merges with latest-canonical.json by replacing entire history. should be fixed to only merge in data we don't have. 2023-06-14 01:52:35 +02:00
rich
9e780d28ec localized EUR y axis text 2023-06-14 00:09:17 +02:00
Christian Tschugg
1d574eba81 Fix select all stores ux 2023-06-13 22:04:12 +02:00
Mario Zechner
9bb9e94440 When filter is set to priceChangesToday, show the price of the date, not the current price. Make item in price history bold. 2023-06-13 20:13:29 +02:00
Mario Zechner
1d2eb5315e Fix some Hofer unit/quantity mistakes, add price per unit to frontend. 2023-06-13 10:09:52 +02:00
Mario Zechner
96422550e2 Fix default sort in changes. 2023-06-13 01:57:17 +02:00
Mario Zechner
031114ebca The great refactor. 2023-06-13 01:16:27 +02:00
Mario Zechner
d70d7bbfe3 New cart page. 2023-06-13 01:04:12 +02:00
Mario Zechner
fce2f928c7 Spar SI fixes 2023-06-12 15:31:46 +02:00
Mario Zechner
83a1d996a7 Expand chart when item is checked. 2023-06-12 14:52:11 +02:00
Mario Zechner
599207ea4c Disable non-Austrian stores by default. 2023-06-12 14:19:49 +02:00
Mario Zechner
5c65236f6c Spar Slovenia. 2023-06-12 13:08:51 +02:00
Mario Zechner
5a25b1560d Don't render list if item chart checkmark changed. 2023-06-12 12:31:30 +02:00
Mario Zechner
03a349356f Fix name-similarity shareability. 2023-06-12 12:26:08 +02:00
Mario Zechner
df5b78c1d5 Query serialization. 2023-06-12 11:46:59 +02:00
Mario Zechner
833dd632fa Fix alaquery filtering. 2023-06-12 10:02:20 +02:00
Mario Zechner
91ed472184 Creature comforts. 2023-06-12 00:54:11 +02:00
Mario Zechner
cec7132ff9 Shareable charted items, alasql related improvements. 2023-06-12 00:32:48 +02:00
Mario Zechner
75367c6852 New index.html/index.js using the new framework. State serialization fixes. 2023-06-11 23:49:18 +02:00
Mario Zechner
846f9b5861 Fix carts-list, wasn't clearing table body. 2023-06-11 22:03:49 +02:00
Mario Zechner
27fc3cd922 Views emit x-change, not change. Reason: listening for change is just to noisy. We only want events from x-id elements marked with x-change, x-click, x-input, etc. 2023-06-11 21:57:01 +02:00
Mario Zechner
416db5b5b4 Charts, various fixes. 2023-06-11 18:29:31 +02:00
Mario Zechner
0df29311f7 Clean-up. 2023-06-11 02:37:35 +02:00