Skip to content

Revert sorting code#2349

Merged
nikhilwoodruff merged 1 commit intoPolicyEngine:masterfrom
anth-volk:fix/2348-unclickable-params
Feb 7, 2025
Merged

Revert sorting code#2349
nikhilwoodruff merged 1 commit intoPolicyEngine:masterfrom
anth-volk:fix/2348-unclickable-params

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

@vercel
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