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
Owner

Summary

Addresses all community feedback tickets from the last deploy, plus several UI improvements made during the same session.

Bug fixes & balance

  • #97 — Fix auto-adventurer tier priority: sort by combat power instead of current cost so the highest-tier affordable unit is always purchased
  • #98 — Add Dark Templar adventurer (80k CP) to bridge the Volcanic Depths progression wall; rewire upgrade and quest rewards accordingly
  • #99 — Reorder and buff Shadow Assassin (55k CP, level 12) so Witch Coven feels rewarding rather than a regression
  • #100 — Display effective Gold/s (all multipliers applied) in the resource bar
  • #101 — Add Peasant tier 2 (10x, essence) and tier 3 (50x, crystals) upgrades for meaningful late-game scaling

Other fixes

  • Sync game state to server before auto-boss challenges (matching manual challenge behaviour)
  • Refresh Discord avatar hash on every game load via bot token so stale CDN URLs are corrected automatically

UI improvements

  • Replace Donate / Discord / Support / View Profile / Edit Profile buttons with a single avatar dropdown menu
  • Collapse all resources except Gold into a click-to-toggle dropdown; orange alert dot appears when a hidden resource is capped

Closes

Closes #97
Closes #98
Closes #99
Closes #100
Closes #101

## Summary Addresses all community feedback tickets from the last deploy, plus several UI improvements made during the same session. ### Bug fixes & balance - **#97** — Fix auto-adventurer tier priority: sort by combat power instead of current cost so the highest-tier affordable unit is always purchased - **#98** — Add Dark Templar adventurer (80k CP) to bridge the Volcanic Depths progression wall; rewire upgrade and quest rewards accordingly - **#99** — Reorder and buff Shadow Assassin (55k CP, level 12) so Witch Coven feels rewarding rather than a regression - **#100** — Display effective Gold/s (all multipliers applied) in the resource bar - **#101** — Add Peasant tier 2 (10x, essence) and tier 3 (50x, crystals) upgrades for meaningful late-game scaling ### Other fixes - Sync game state to server before auto-boss challenges (matching manual challenge behaviour) - Refresh Discord avatar hash on every game load via bot token so stale CDN URLs are corrected automatically ### UI improvements - Replace Donate / Discord / Support / View Profile / Edit Profile buttons with a single avatar dropdown menu - Collapse all resources except Gold into a click-to-toggle dropdown; orange alert dot appears when a hidden resource is capped ## Closes Closes #97 Closes #98 Closes #99 Closes #100 Closes #101
hikari added 12 commits 2026-03-23 15:27:27 -07:00
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.
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.
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.
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.
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.
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
9f42361f4e
naomi merged commit 3ac1d566cb into main 2026-03-23 16:07:26 -07:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nhcarrigan/elysium#102