heissepreise/site
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
..
_templates Remove binary encoding, web worker, clean-up. 2023-06-18 23:23:02 +02:00
data Add German compound word decomposition. Doesn't help a lot, need more context words apart from product name. 2023-06-17 20:29:43 +02:00
img First pass, everything is broken. 2023-06-03 22:00:52 +02:00
js Remove binary encoding, web worker, clean-up. 2023-06-18 23:23:02 +02:00
model Categories for Billa & Spar, infra to add catgories for other stores. 2023-06-21 01:29:00 +02:00
views Categories for Billa & Spar, infra to add catgories for other stores. 2023-06-21 01:29:00 +02:00
cart.html Require at least 3 characters for queries. 2023-06-18 19:24:07 +02:00
cart.js Categories for Billa & Spar, infra to add catgories for other stores. 2023-06-21 01:29:00 +02:00
carts.html Added loader. Stalls because to much work is done on the main thread. Good enough. 2023-06-18 15:35:09 +02:00
carts.js Added loader. Stalls because to much work is done on the main thread. Good enough. 2023-06-18 15:35:09 +02:00
changes.html Require at least 3 characters for queries. 2023-06-18 19:24:07 +02:00
changes.js Added loader. Stalls because to much work is done on the main thread. Good enough. 2023-06-18 15:35:09 +02:00
imprint.html Change ZIP code in imprint 2023-06-12 14:07:14 +02:00
index.html Added loader. Stalls because to much work is done on the main thread. Good enough. 2023-06-18 15:35:09 +02:00
index.js Added loader. Stalls because to much work is done on the main thread. Good enough. 2023-06-18 15:35:09 +02:00
settings.html Settings page and settings for default selected stores, chart start date, and chart type. 2023-06-15 21:12:01 +02:00
settings.js Clean-up. 2023-06-19 01:53:08 +02:00
style.css Various improvements, perf, style, live-reload. 2023-06-15 19:25:35 +02:00