Skip to content

Add IotM tracking infrastructure#300

Merged
gausie merged 3 commits intomainfrom
iotm-tracking
Apr 13, 2026
Merged

Add IotM tracking infrastructure#300
gausie merged 3 commits intomainfrom
iotm-tracking

Conversation

@gausie
Copy link
Copy Markdown
Contributor

@gausie gausie commented Apr 12, 2026

Summary

  • New MrStore kol.js domain that parses mrstore.php extracting item name, descid, image, cost, currency, and category header
  • New Iotm database table (migration 009) tracking item lifecycle dates: addedToStore, removedFromStore, distributedToSubscribers
  • Post-rollover store check to detect new/removed IotMs
  • Subs webhook now records subscriber distribution date
  • Refactored determineIotmMonthYear() to determineIotmMonth() returning a Date

Still to come (separate PRs)

  • Backfill script for historical data (CSV + Discord channel history)
  • Calendar frontend integration

Test plan

  • MrStore parser tests pass against live fixture (4 tests)
  • Subs date logic tests updated and passing (4 tests)
  • Full kol.js test suite green (172 tests)
  • oaf tsc clean
  • Run migration on dev DB
  • Verify rollover hook fires and upserts store items
  • Verify subs webhook records distribution date

gausie added 3 commits April 12, 2026 17:11
- New MrStore kol.js domain that parses mrstore.php for item name, descid,
  image, cost, currency, and category
- New Iotm database table with migration tracking item lifecycle dates
  (addedToStore, removedFromStore, distributedToSubscribers)
- Store check on rollover event to detect new/removed IotMs
- Subs webhook now records distributedToSubscribers date
- Refactor determineIotmMonthYear() to determineIotmMonth() returning a Date
Matches the naming convention of the flower_prices_created_at_index
migration that was added on main.
Migration now inserts 253 IotMs with names, descids, images, store
dates (from kol-exchange CSV), and 32 subscriber distribution dates
(from Discord channel history). mraCost is NOT NULL DEFAULT 1.
@gausie gausie merged commit 8d08d58 into main Apr 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant