magge-faf / faf-moderator-client-develop-modified

magge's modified Mordor makes moderating mischievous members much more majestic.
MIT License
0 stars 2 forks source link

Adjustments to the size and order of the columns in the report view isn't saved between sessions #34

Closed IndexLibrorumProhibitorum closed 4 months ago

IndexLibrorumProhibitorum commented 5 months ago

image The columns in the report view, as shown above, can be reordered and resized. This is very useful for me, because I am working with a limited size screen and all the important information isn't on the screen without some shuffling and resizing.

However, these changes are not saved between sessions, and seem to reset randomly during the session as well. (Haven't been able to replicate this, so not 100% sure if that is correct.)

I would like these changes to be remembered between sessions.

magge-faf commented 5 months ago

What is your screen size? 1080p?

IndexLibrorumProhibitorum commented 5 months ago

2736 x 1824, but on a screen a bit smaller than a sheet of standard A4 size paper.

magge-faf commented 5 months ago

@IndexLibrorumProhibitorum I tried for two sessions ~40 minutes to make it happen via Preferences and failed to save/load the FXML values for the size/order of columns.

Copilot AI was suggesting some solutions, but I could not estimate the ETA via its approach, and had no idea where it was heading to at the end. It could have worked perfectly "in the next minutes" or "never" via its support.

Well, however - I know how to save/load the prefWidth values via JSON, (Aka: If I only know how to use a hammer, then everything looks like a nail, cough)

I went that road to have the feature partially working for customizable sizes via JSON. The column-order is more tricky, and takes too much time to make it happen right now.

Basically, you enter the values in the JSON TableColumnsWidthSettings.json located in the folder ConfigurationModerationToolFAF:

That handles the columns sizes for columns in Reports Tab. If the order-thing is crucial, I can take another look in the future.

Not an optimal solution, but it will do it for now.

image

image

IndexLibrorumProhibitorum commented 5 months ago

Cheers, good enough for now I think. I'll have a look when it goes live.