Skip to content

chore: bump version to 1.21.11-2.59.1 and fix button labels in SearchDialog#221

Merged
twisti-dev merged 1 commit intoversion/1.21.11from
fix/flip-search-buttons-user-experience
Feb 12, 2026
Merged

chore: bump version to 1.21.11-2.59.1 and fix button labels in SearchDialog#221
twisti-dev merged 1 commit intoversion/1.21.11from
fix/flip-search-buttons-user-experience

Conversation

@TheBjoRedCraft
Copy link
Member

No description provided.

@TheBjoRedCraft TheBjoRedCraft self-assigned this Feb 12, 2026
Copilot AI review requested due to automatic review settings February 12, 2026 16:10
@twisti-dev twisti-dev merged commit 83146c1 into version/1.21.11 Feb 12, 2026
8 checks passed
@twisti-dev twisti-dev deleted the fix/flip-search-buttons-user-experience branch February 12, 2026 16:11
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the SURF-API Bukkit module by bumping the published version and adjusting the confirmation-button wiring in SearchDialog to correct the displayed button labeling/behavior.

Changes:

  • Bump project version from 1.21.11-2.59.0 to 1.21.11-2.59.1.
  • Swap yes/no action button blocks in SearchDialog’s confirmation type to address the search/cancel button labeling.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
surf-api-bukkit/surf-api-bukkit-api/src/main/kotlin/dev/slne/surf/surfapi/bukkit/api/dialog/search/SearchDialog.kt Swaps confirmation yes/no button blocks for search vs cancel actions.
gradle.properties Bumps the library version to 1.21.11-2.59.1.

Comment on lines 90 to 93
confirmation {
yes {
no {
label(searchButton.label)
tooltip(searchButton.tooltip)
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this confirmation dialog, the primary/positive action (search) is now wired under no { ... }. Given the DSL and underlying Paper API use yes/no semantics, this reads backwards and is easy to misinterpret/maintain. If this swap is needed due to client button ordering, consider fixing the mapping in the dialog confirmation builder (so call sites can keep yes = confirm/search) or add an explicit helper/clarifying comment to avoid future mistakes.

Copilot uses AI. Check for mistakes.
Comment on lines 104 to 107

no {
yes {
label(cancelButton.label)
tooltip(cancelButton.tooltip)
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly, the cancel/negative action is now under yes { ... }. If yes is treated as the default/affirmative action by the client (e.g., default focus/Enter key), this could lead to unexpected UX. Prefer keeping yes aligned with the affirmative action (search) and addressing any ordering/label issue in the builder layer instead.

Copilot uses AI. Check for mistakes.
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.

3 participants