Skip to content

Address Copilot review on the 1.8.0 release PR (#421)#425

Merged
tastybento merged 1 commit into
developfrom
fix/pr421-copilot-review
Jul 15, 2026
Merged

Address Copilot review on the 1.8.0 release PR (#421)#425
tastybento merged 1 commit into
developfrom
fix/pr421-copilot-review

Conversation

@tastybento

Copy link
Copy Markdown
Member

Addresses the five Copilot review comments on the 1.8.0 release PR #421.

  • ChallengesAddon.allLoaded() — reset levelProvided = false in the "Level add-on not found" branch. Previously only levelAddon was nulled, so isLevelProvided() could return a stale true and TryToComplete.rewardIslandLevel() would NPE dereferencing a null Level add-on.
  • EditChallengePanel — sort the required-biome list before rendering it into the button description. The backing collection is a Set, so the admin GUI could shuffle biome order between runs.
  • ChallengesPanel.createToggleUndeployedButton() — guard the template description with !isBlank() so a blank template doesn't add an empty lore line, matching the other button builders in the class.
  • ChallengesAddonTest — verify placeholder registration with atLeastOnce() instead of times(13). The exact count is incidental to what these tests assert and made them brittle to any placeholder being added/removed.

Verification

mvn compile test-compile clean; ChallengesAddonTest, ChallengesPanelTest and TryToCompleteTest pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DfEq1X2sy57G8nq2Cd23ba

- ChallengesAddon.allLoaded(): reset levelProvided=false when the Level
  add-on is absent, so isLevelProvided() can't be stale-true and
  TryToComplete.rewardIslandLevel() can't NPE on a null level add-on.
- EditChallengePanel: sort the required-biome list before rendering so the
  admin GUI description is stable (the backing set is unordered).
- ChallengesPanel.createToggleUndeployedButton(): guard the template
  description with !isBlank() to avoid inserting empty lore lines, matching
  the other button builders.
- ChallengesAddonTest: verify placeholder registration with atLeastOnce()
  instead of times(13) so the tests don't break whenever a placeholder is
  added or removed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DfEq1X2sy57G8nq2Cd23ba
@tastybento tastybento mentioned this pull request Jul 12, 2026
@sonarqubecloud

Copy link
Copy Markdown

@tastybento tastybento merged commit 1826b59 into develop Jul 15, 2026
3 checks passed
@tastybento tastybento deleted the fix/pr421-copilot-review branch July 15, 2026 05:33
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.

1 participant