Skip to content

Fix bugs: custom chore solo mode, history rendering, torch overlap + docs rewrite#1

Merged
thillygooth merged 2 commits into
thillygooth:mainfrom
CarelvanHeerden:fix/responsive-torches-overlap
May 28, 2026
Merged

Fix bugs: custom chore solo mode, history rendering, torch overlap + docs rewrite#1
thillygooth merged 2 commits into
thillygooth:mainfrom
CarelvanHeerden:fix/responsive-torches-overlap

Conversation

@CarelvanHeerden

Copy link
Copy Markdown

Summary

Bug fixes and documentation improvements based on real-world family testing on an iPad.

Bug Fixes

1. Torches overlap player cards on tablets (iPad)

The decorative torches (position: fixed at 14px from edges) overlap player cards on screens narrower than ~1400px. Added a media query to hide them on tablet-width screens.

2. Custom chores always shared (party mode) — no solo option

Custom chores had no mode field in the creation form, so they always defaulted to party (shared). When one player completed "Brush Teeth Morning", it was marked done for all players.

Fixes:

  • Added ALL/1P mode selector to custom chore creation form
  • Fixed App.jsx to apply choreOverrides to custom chores (previously only built-in chores received overrides, so the ALL/1P toggle was a no-op for custom chores)

3. Badge unlocks render as "+undefined gold" in history

Badge entries (type: "badge") and loot entries (type: "loot") were rendered by the catch-all "slew" formatter, producing entries like "Amy slew First Blood (+undefined gold)".

Fix: Added proper rendering for badge and loot history types:

  • Badges: "Amy earned First Blood 🏅"
  • Loot: "Amy found Treasure (+5 gold)"

Also added tile mappings for badge (heart) and loot (chest) icons in history.

Documentation

README.md

  • Fixed broken screenshot.png image link → screenshots_combined.png
  • Added quick reference section covering hero classes, midnight penalty, dungeon overview, and reset week
  • Added link to full game guide

DOCS.md — Comprehensive rewrite

The existing DOCS.md was minimal. Rewrote with full coverage:

  • Hero classes — explained that they are cosmetic (no gameplay effect)
  • Midnight penalty — what happens when you do not defeat your monster, how much gold you lose, Shield Aura protection
  • Reset Week button — clarified it triggers immediately (not aligned to any weekday), what it resets and what it preserves
  • Dungeon guide — controls (d-pad), how moves are earned, tile types and rewards, depth/floor scaling, strategy tips
  • Combat mechanics — crits, combos, kill streaks, loot drops, overkill system
  • Power-ups, badges, titles, prestige, leveling formula, auto-reset schedule

Testing

Tested against the codebase by reviewing all logic paths. Changes are CSS-only (torch hide), form state additions (custom chore mode), and render logic (history tab switch statement).

Carel van Heerden added 2 commits May 28, 2026 16:19
Bug fixes:
- Fix custom chores always defaulting to party mode (shared) instead of
  allowing solo (per-player) tracking. Custom chore form now includes
  ALL/1P mode selector. Also fix custom chores not receiving
  choreOverrides (toggle was saved but never applied).
- Fix history tab rendering badge unlocks as monster kills with
  '+undefined gold'. Badge entries now show 'earned X 🏅' and loot
  entries show 'found X' with correct values. Added tile mappings for
  badge and loot history types.
- Fix torches overlapping player cards on tablet-width screens (iPad).
  Hidden via media query below 1400px.

Documentation:
- Fix broken screenshot.png link in README (now screenshots_combined.png)
- Add quick reference section to README (classes, midnight penalty,
  dungeon overview, reset week)
- Add link to full game guide
- Rewrite DOCS.md with comprehensive coverage: hero classes, midnight
  penalty mechanics, reset week behavior, dungeon guide with controls
  and strategy, combat mechanics, power-ups, badges, leveling formula,
  auto-reset schedule
@CarelvanHeerden CarelvanHeerden force-pushed the fix/responsive-torches-overlap branch from deee534 to 9a4256d Compare May 28, 2026 16:19
thillygooth added a commit that referenced this pull request May 28, 2026
Keep full guide from PR #1, add week start day info to Automatic Resets table.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@thillygooth thillygooth merged commit 7498753 into thillygooth:main May 28, 2026
1 check 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.

2 participants