Skip to content

fix(ui): tolerate incomplete ability_info on dash cards - #3189

Draft
FhiPunkVn wants to merge 2 commits into
FreezingMoon:masterfrom
FhiPunkVn:fix/dash-card-tolerant-1996
Draft

fix(ui): tolerate incomplete ability_info on dash cards#3189
FhiPunkVn wants to merge 2 commits into
FreezingMoon:masterfrom
FhiPunkVn:fix/dash-card-tolerant-1996

Conversation

@FhiPunkVn

Copy link
Copy Markdown

Summary

Make dash ability cards tolerate missing fields (WIP units like Kraken) instead of breaking the UI.

Fixes #1996

Change

  • Safe defaults for title/desc/info/upgrade/energy costs
  • Skip undefined costs without throwing

Test plan

  • Open dash for a complete unit — abilities render
  • Open dash for incomplete ability_info unit — no blank crash, placeholders shown

@vercel

vercel Bot commented Jul 10, 2026

Copy link
Copy Markdown

@sophiacute2024-crypto is attempting to deploy a commit to the FreezingMoon Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Jul 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ancientbeast Ready Ready Preview Jul 10, 2026 10:54pm

@DreadKnight

Copy link
Copy Markdown
Member

@FhiPunkVn Don't mention issue numbers in comments and ideally no specific unit names either, as they might change. ⚠️ Info about the code only, no names ideally 🐻 This is to keep things clean and "game engine" like.

@DreadKnight
DreadKnight marked this pull request as draft July 10, 2026 22:46
@DreadKnight

Copy link
Copy Markdown
Member

@FhiPunkVn Deployment of this failed ⚠️
Awaiting fix 🐻
Feel free to mark as ready for review when done ☑️

…ngMoon#1996)

Empty object fallback was typed as {} so property access failed tsc.
@DreadKnight

Copy link
Copy Markdown
Member

@FhiPunkVn Still waiting on the comment tweak 🐻

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.

less draconian card update function [bounty: 20 XTR]

2 participants