heissepreise/site/model
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
..
carts.js 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
categories.js Categories for Billa & Spar, infra to add catgories for other stores. 2023-06-21 01:29:00 +02:00
index.js Settings page and settings for default selected stores, chart start date, and chart type. 2023-06-15 21:12:01 +02:00
items.js Categories for Billa & Spar, infra to add catgories for other stores. 2023-06-21 01:29:00 +02:00
model.js Finished items-filter component, changes-new and index-new. items-list incomplete, no charting yet. 2023-06-10 22:34:28 +02:00
settings.js Remove binary encoding, web worker, clean-up. 2023-06-18 23:23:02 +02:00
stores.js Remove sparSi, use getters instead of precalculated values in item. See #99 145mb - 92mb 2023-06-18 22:35:48 +02:00