Skip to content

fix(settings): label refresh-interval field as Inventory, not Channels#66

Merged
rxm96 merged 1 commit into
mainfrom
fix/inventory-refresh-label
Jun 14, 2026
Merged

fix(settings): label refresh-interval field as Inventory, not Channels#66
rxm96 merged 1 commit into
mainfrom
fix/inventory-refresh-label

Conversation

@rxm96

@rxm96 rxm96 commented Jun 14, 2026

Copy link
Copy Markdown
Owner

What

The Settings field labeled "Channels refresh interval" (description: "How often the channel tracker re-queries Twitch (random jitter between min and max)") is mislabeled — it actually controls the inventory refresh, not channel tracking. This PR corrects the copy and removes orphaned i18n keys.

Why

refreshMinMs/refreshMaxMs (default 60–70 min, hard 60-min floor) feed only useInventoryRefresh, which schedules fetchInventory() with jitter and logs "inventory refresh scheduled/run".

The channel tracker runs on its own hardcoded cadence in tracker.tsrefreshMs ≈ 90s (normal), fallbackPollRefreshMs ≈ 25s — and is not configurable through this field. A 60-minute value for channel tracking wouldn't even make sense.

The correct label settings.refreshInterval = "Inventory refresh interval" actually still existed (unused) from before the design-overhaul refactor; the refactor introduced the new settings.row.refreshInterval.* row and mislabeled it as "Channels", and commit 1c2b7e9 later propagated "channel-refresh" into code comments.

Changes

  • i18n (en + de): label → "Inventory refresh interval" / "Inventory-Refresh-Intervall"; description rewritten to describe the inventory re-query.
  • Dead-key cleanup (en + de): removed the orphaned pre-refactor refresh-preset/advanced cluster — settings.refreshInterval, refreshHint, refreshPreset.*, refreshAdvancedShow/Hide, refreshMin/Max (13 keys per locale). Verified by grep that nothing references them.
  • Comments: fixed misleading "channel-refresh" wording in EnginePanel.tsx, formatters.ts, and refreshIntervalField.ts (×2).

Not touched

  • The Overview EnginePanel row is labeled neutrally ("cadence") — already correct.
  • The real channel-tracker intervals in tracker.ts are unchanged (not configurable; never the issue).
  • settings.resetAutomation (a separate possibly-orphaned key) left out of scope.

Verification

  • npm run typecheck (both tsconfigs): clean
  • prettier: clean
  • npm test: 514 passed (en/de key parity preserved — same keys removed from both locales)
  • npm run lint: 0 errors (only pre-existing warnings in unrelated watch/* hooks)

Copy/labels and dead-key cleanup only — no behavior change.

🤖 Generated with Claude Code

The "Channels refresh interval" setting and its description ("How often
the channel tracker re-queries Twitch...") were wrong: refreshMinMs/Max
feed useInventoryRefresh, which schedules the Drops *inventory* re-query
with jitter (default 60-70 min, hard 60-min floor). The channel tracker
runs on its own, hardcoded cadence (~90s, ~25s fallback poll) in
tracker.ts and is not configurable via this field.

- i18n (en + de): rename label to "Inventory refresh interval" and
  rewrite the description to describe the inventory re-query.
- Remove the orphaned pre-refactor refresh-preset/advanced i18n cluster
  (settings.refreshInterval, refreshHint, refreshPreset.*, refreshAdvanced*,
  refreshMin/Max) in both locales — unused since the field became a simple
  min/max minutes input; verified no references remain.
- Fix misleading "channel-refresh" comments in EnginePanel, formatters,
  and refreshIntervalField (the cadence they describe is inventory).

No behavior change; copy/labels and dead-key cleanup only.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@rxm96
rxm96 merged commit 801c8d6 into main Jun 14, 2026
3 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