Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert sorting code #2349

Merged

Conversation

anth-volk
Copy link
Collaborator

Description

Fixes #2348
Reopens #2342

Changes

This code reverts the sorting code introduced as a fix to #2342. Unfortunately, this code made parameters (as opposed to parameter nodes) unclickable in the application.

In my opinion, part of the problem with the prior fix is that it assumed an implementation within Menu and StackedMenu (two components used to generate the parameter list) that was not present. StackedMenu and Menu contain display logic that is, in my opinion, too tightly intertwined with the metadata structure itself, such that even merely sorting the metadata alphabetically causes bugs. An ideal implementation here would probably make both components more stylistic only, implementing a separate metadata parsing logic to enable easier modification where necessary.

Screenshots

N/A

Tests

N/A

Copy link

vercel bot commented Feb 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
policyengine-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 7, 2025 7:40pm

@nikhilwoodruff nikhilwoodruff merged commit 4689c04 into PolicyEngine:master Feb 7, 2025
4 checks passed
@anth-volk anth-volk deleted the fix/2348-unclickable-params branch February 7, 2025 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Parameter sorting code makes individual parameters un-clickable
2 participants