BEV list length display option
Replaces better evaluation view's list toggle with a segmented option like video creator's export tab. This allows switching between the original list evaluation view, the newer native view, and a minimal view that only shows list lengths.
preview:
I'm not sure about the option names (new -> native?); it would be nicer to have control over this in the localization files I think (which will also enable translating them to other languages). It would also be cool to have tooltips for each segment, but I imagine that'd be more complicated.
Speaking of, the setting title/tooltip need to be updated (have been so for a long time). I can push that in this pr if someone with a better english can provide me with a good description.
I'm not sure if the way I'm updating the view when switching between options (4th commit) is correct, or if there's a better way to do it
what did I break
@ronwnor I think the test breaking may be expected. I'm on mobile so I can't check right now, but check the integration test for BEV. It is failing because the expected output of some previews is not the same anymore.
To check this locally run this
npm run test:integration
Is this change something you expected?
Also, I recommend running the general test before every commit (npm run test) because the commit hook does not run the integration tests.
oh you're right, the tests had
async function enableBevLists(driver: Driver) {
await driver.setPluginSetting("better-evaluation-view", "lists", true);
}
which was toggling the lists boolean. it broke because I changed it from boolean to a string[]. I think I just need to change true to "old".
tysm!