Skip to content

fix: raid alarm card shows 9000 stars for level 9000#144

Merged
hokiepokedad2 merged 5 commits into
mainfrom
feature/138-fix-raid-9000-stars
Apr 6, 2026
Merged

fix: raid alarm card shows 9000 stars for level 9000#144
hokiepokedad2 merged 5 commits into
mainfrom
feature/138-fix-raid-9000-stars

Conversation

@hokiepokedad2
Copy link
Copy Markdown
Contributor

Summary

Fixes raid and egg alarm cards rendering 9000 star icons when level is set to 9000 (the "any level" sentinel). Closes #138.

  • Guard getLevelStars() to return empty array for level 9000 or > 100
  • Show "Any Level" italic label instead of stars for both raid and egg cards
  • Fix egg card title: "Any Level Egg" instead of "Level 9000 Egg"

Test plan

  • ng build --production — success
  • npm run lint — warnings only
  • npx jest — 487 passed
  • Manual: create raid alarm with level 9000 (any), verify "Any Level" shows

Guard getLevelStars() to return empty array when level is 9000 (any)
or unreasonably large. Show "Any Level" italic text instead of stars
for both raid and egg cards. Also fix egg card title to show
"Any Level Egg" instead of "Level 9000 Egg".

Closes #138
Also fix egg delete confirmation to show 'Any Level' instead of
'Level 9000' for the sentinel value.
Add getRaidLevelName() helper that maps level numbers to labels:
- Level 6 → "Mega"
- Level 9000 → "Any Level"
- Others → "Level N"

Used in raid titles, egg titles, and delete confirmations.
PoracleNG treats pokemon_id=0 as the "everything" sentinel and
overrides all other filters (level, evolution, etc.) to 9000. This
caused level-based quick picks like "All Mega Raids" (level=6) to
create alarms with level=9000 instead.

Use pokemon_id=9000 ("any pokemon") which preserves the level filter
while still matching all raid bosses.
@hokiepokedad2
Copy link
Copy Markdown
Contributor Author

Code Review: PR !144 — Fix raid 9000 stars

Grade: A (Approved)

Check Result
dotnet build 0 errors
dotnet test 623 passed
ng build --production Success
npm run lint Warnings only
npx jest 487 passed

Commits (4)

  1. fix: raid alarm card shows 9000 stars for level 9000 — Guard getLevelStars(), show "Any Level" label
  2. fix: show 'Any Level Raid' instead of 'Level 9000 Raid' — Fix title and egg delete confirmation
  3. fix: use descriptive raid level names — getRaidLevelName() maps level 6→"Mega", 9000→"Any Level"
  4. fix: quick pick raid uses pokemon_id=9000 instead of 0 — PoracleNG treats pokemon_id=0 as "everything" override; using 9000 preserves level filters

Key finding

PoracleNG treats `pokemon_id=0` as the "everything" sentinel, overriding all other fields to 9000. The "All Mega Raids" quick pick was sending `pokemon_id=0, level=6` which PoracleNG normalized to `level=9000`. Fix: use `pokemon_id=9000` ("any pokemon") which preserves the level filter.

Verdict: APPROVED

@hokiepokedad2 hokiepokedad2 merged commit 8598487 into main Apr 6, 2026
4 checks passed
@hokiepokedad2 hokiepokedad2 deleted the feature/138-fix-raid-9000-stars branch April 6, 2026 20:52
github-actions Bot added a commit that referenced this pull request Apr 6, 2026
hokiepokedad2 added a commit that referenced this pull request Apr 6, 2026
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.

bug: raid alarm card shows 9000 stars for level 9000 (any level)

1 participant