chore: community feedback fixes and UI improvements #102

Merged
naomi merged 12 commits from chore/more into main 2026-03-23 16:07:26 -07:00

12 Commits

Author SHA1 Message Date
hikari 9f42361f4e style: give resource toggle the standard interactive button treatment
CI / Lint, Build & Test (pull_request) Successful in 1m11s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m12s
2026-03-23 15:25:32 -07:00
hikari 96d7a49def fix: inherit text colour and font size on resource toggle button 2026-03-23 15:18:47 -07:00
hikari d4bb140ad6 feat: collapse resources into a gold-toggle dropdown (#106)
Only Gold is visible in the resource bar by default. Clicking the gold
display opens a dropdown showing Gold/s, Essence, Crystals, Runestones,
and Combat Power. An orange alert dot appears on the gold toggle when
Essence or Crystals are capped, so the player always knows to check
even with the panel closed.
2026-03-23 15:11:11 -07:00
hikari c60e39d035 revert: remove isTrusted guard from click handler (#105)
isTrusted is false for click events in user agents, so the guard would
have blocked all legitimate user clicks. Client-side autoclicking also
has no meaningful server-side impact since gold is bounded by save syncs.
2026-03-23 15:01:16 -07:00
hikari 558b44e29a fix: reject untrusted click events on the guild hall button (#105) 2026-03-23 14:50:04 -07:00
hikari 830a9d2a56 fix: refresh Discord avatar hash on every game load (#104)
Adds fetchDiscordUserById (bot token) to the Discord service and calls it
in parallel with the DB queries on game load. When the returned hash
differs from the stored value the Player record is updated and the hash
is immediately synced into the returned game state, so the resource bar
always shows the player's current Discord avatar.

Also adds onError fallback: if the avatar URL is stale before the next
load, the resource bar component now derives the URL fresh from state on
every render rather than caching it.
2026-03-23 14:41:21 -07:00
hikari fc222ac522 feat: replace resource bar profile buttons with avatar dropdown (#103)
Condenses the Donate, Discord, Support, View Profile, and Edit Profile
buttons into a single avatar image button. Clicking it opens a dropdown
menu with all five actions, significantly decluttering the resource bar.
2026-03-23 14:21:47 -07:00
hikari 4c3b9acfc5 fix: sync game state before auto-boss challenge (#102)
Auto-boss was calling the boss API directly without first flushing
pending game state to the server. This inlines a saveGame call (using
refs, matching the existing auto-save pattern) before the challenge so
the server sees up-to-date state, consistent with the manual challenge
flow.
2026-03-23 13:59:28 -07:00
hikari 06c80e186a feat: gold/sec display with multipliers (#100) and peasant late-game upgrades (#101) 2026-03-23 13:52:02 -07:00
hikari bdb8d4123b fix: reorder Shadow Assassin and raise CP so Witch Coven reward is meaningful (#99) 2026-03-23 13:43:36 -07:00
hikari 2b026ff02e feat: add Dark Templar adventurer to bridge Volcanic Depths progression wall (#98) 2026-03-23 13:37:31 -07:00
hikari ff26e19779 fix: auto-adventurer sorts by combat power instead of current cost (#97) 2026-03-23 11:08:33 -07:00