Commit Graph

42 Commits

Author SHA1 Message Date
Jan Polák
3b9fc43161 Localization fixes 2023-09-17 19:48:29 +02:00
Jan Polák
f36b44fc42 Translate strings in JavaScript 2023-09-17 19:21:42 +02:00
Mario Zechner
16b596fe0a Fix query decoding, filter items without price history. 2023-07-12 12:54:59 +02:00
Mario Zechner
17f1d4cf01 Closes #123, also replaces "M & M" in item names with "M&M". Hax! 2023-06-29 17:21:29 +02:00
Christian Tschugg
5cde0a7f89 Remove unused IntersectionObserver 2023-06-24 18:14:27 +02:00
Christian Tschugg
94a8eb2b1c Add sticky chart and sticky search, see badlogic/heissepreise#89 2023-06-24 16:30:36 +02:00
Mario Zechner
362864761b Highlight query tokens. 2023-06-22 22:17:12 +02:00
Mario Zechner
5a8e3a0528 Fix price changes filter visibility. 2023-06-22 16:46:42 +02:00
Mario Zechner
ffe4f4c4f8 Don't ignore unavailable. 2023-06-22 12:40:58 +02:00
Mario Zechner
ac03c20c39 Closes #103 2023-06-21 22:01:06 +02:00
Mario Zechner
c8a1e41abb Setting to show only available items. On by default. 2023-06-21 21:39:33 +02:00
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
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
887c72be64 Require at least 3 characters for queries. 2023-06-18 19:24:07 +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
ea5c133003 Binary compression (it's worse), unit prices in charts, small improvements. 2023-06-16 16:01:13 +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
6281e66dc7 Various improvements, perf, style, live-reload. 2023-06-15 19:25:35 +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
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
599207ea4c Disable non-Austrian stores by default. 2023-06-12 14:19:49 +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
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
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
Mario Zechner
1bb276addb Implement sorts in items-list, fix items-filter filtering. 2023-06-10 23:43:58 +02:00
Mario Zechner
5964cc5de2 Finished items-filter component, changes-new and index-new. items-list incomplete, no charting yet. 2023-06-10 22:34:28 +02:00
Mario Zechner
323fd15a62 More components, checkbox, items filter. 2023-06-10 13:08:08 +02:00
Mario Zechner
12ef72feae New changes.html/.js WIP 2023-06-09 02:03:57 +02:00