DesModder icon indicating copy to clipboard operation
DesModder copied to clipboard

BEV list length display option

Open ronwnor opened this issue 6 months ago • 4 comments

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: image

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.

ronwnor avatar May 23 '26 18:05 ronwnor

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

ronwnor avatar May 23 '26 18:05 ronwnor

what did I break

ronwnor avatar May 23 '26 18:05 ronwnor

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

SlimRunner avatar May 23 '26 19:05 SlimRunner

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!

ronwnor avatar May 24 '26 08:05 ronwnor