Skip to content

Second pass attempt at fixing WValueDropDown + Various Bug Fixes#216

Merged
wallstop merged 12 commits intomainfrom
dev/wallstop/wvalue-drop-down-2
Mar 3, 2026
Merged

Second pass attempt at fixing WValueDropDown + Various Bug Fixes#216
wallstop merged 12 commits intomainfrom
dev/wallstop/wvalue-drop-down-2

Conversation

@wallstop
Copy link
Owner

@wallstop wallstop commented Feb 27, 2026

Description

✓ Rework how the dropdown/selection works for WValueDropDown, specifically to help ODIN contexts
✓ Add FailedTestExporter
✓ Fix path for AttributeMetadataCache
✓ Ensure various editor tools and concepts utilize Undo appropriately

Related Issue

Fixes #209

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactor (code change that neither fixes a bug nor adds a feature)

Checklist

  • I have added tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have updated the CHANGELOG
  • My changes do not introduce breaking changes, or breaking changes are documented

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

Reworks WValueDropDown (and related Odin drawers) dropdown rendering to avoid Linux-specific “phantom empty rows” by moving away from EditorGUI.Popup toward GenericMenu-driven selection, and updates the changelog accordingly.

Changes:

  • Replaced the small-list WValueDropDownDrawer selection UI with an EditorGUI.DropdownButton + GenericMenu flow.
  • Updated Odin drawers (WValueDropDown, StringInList, IntDropDown) to consistently use the popup/menu approach (removing the page-size threshold branch).
  • Added an Unreleased changelog entry describing the fix.

Reviewed changes

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

Show a summary per file
File Description
Editor/CustomDrawers/WValueDropDownDrawer.cs Switches non-paged IMGUI selection from EditorGUI.Popup to GenericMenu selection.
Editor/CustomDrawers/Odin/WValueDropDownOdinDrawer.cs Removes page-size branching; always uses the popup/menu selection path.
Editor/CustomDrawers/Odin/StringInListOdinDrawer.cs Removes page-size branching; always uses the popup/menu selection path.
Editor/CustomDrawers/Odin/IntDropDownOdinDrawer.cs Removes page-size branching; always uses the popup/menu selection path.
CHANGELOG.md Adds Unreleased note describing the dropdown rendering fix.

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

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

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

Copilot reviewed 33 out of 34 changed files in this pull request and generated 5 comments.

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

Copilot reviewed 39 out of 40 changed files in this pull request and generated 3 comments.

@wallstop wallstop requested a review from Copilot March 1, 2026 20:00
@wallstop wallstop changed the title Second pass attempt at fixing WValueDropDown Second pass attempt at fixing WValueDropDown + Various Bug Fixes Mar 1, 2026
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

Copilot reviewed 125 out of 164 changed files in this pull request and generated 3 comments.

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

Copilot reviewed 138 out of 177 changed files in this pull request and generated 1 comment.

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

Copilot reviewed 150 out of 189 changed files in this pull request and generated 3 comments.

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

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

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

Copilot reviewed 191 out of 230 changed files in this pull request and generated no new comments.

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

Copilot reviewed 226 out of 264 changed files in this pull request and generated 3 comments.

Comment on lines +1 to +2
// MIT License - Copyright (c) 2025 wallstop
// Full license text: https://github.com/wallstop/unity-helpers/blob/main/LICENSE
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

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

The license header year is 2025, but the repo’s license-year audit checks the header year against the git creation year (and CURRENT_YEAR is 2026 for untracked files). Since this file is being added/modified now, this will likely fail scripts/audit-license-years.sh / license-year-audit.yml. Update the header year to the correct creation year (typically 2026 for new files), or run scripts/update-license-headers.sh to auto-fix.

Copilot uses AI. Check for mistakes.
Comment on lines +1 to +2
// MIT License - Copyright (c) 2025 wallstop
// Full license text: https://github.com/wallstop/unity-helpers/blob/main/LICENSE
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

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

The license header year is 2025, but the repo’s license-year audit checks the header year against the git creation year (and CURRENT_YEAR is 2026 for untracked files). Since this file is being added/modified now, this will likely fail scripts/audit-license-years.sh / license-year-audit.yml. Update the header year to the correct creation year (typically 2026 for new files), or run scripts/update-license-headers.sh to auto-fix.

Copilot uses AI. Check for mistakes.
Comment on lines +1 to +2
// MIT License - Copyright (c) 2025 wallstop
// Full license text: https://github.com/wallstop/unity-helpers/blob/main/LICENSE
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

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

The license header year is 2025, but the repo’s license-year audit checks the header year against the git creation year (and CURRENT_YEAR is 2026 for untracked files). Since this file is being added/modified now, this will likely fail scripts/audit-license-years.sh / license-year-audit.yml. Update the header year to the correct creation year (typically 2026 for new files), or run scripts/update-license-headers.sh to auto-fix.

Copilot uses AI. Check for mistakes.
@wallstop wallstop merged commit 5c02cd8 into main Mar 3, 2026
42 checks passed
@wallstop wallstop deleted the dev/wallstop/wvalue-drop-down-2 branch March 3, 2026 05:17
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]: WValueDropDown Has Tons of Empty Space at the Top

2 participants