Chia-Plot-Status icon indicating copy to clipboard operation
Chia-Plot-Status copied to clipboard

Re-Order Columns via Drag and Drop

Open Hellfall1 opened this issue 3 years ago • 10 comments

Issue: Sort the columns

Reason; I do not like the colums are sorted (I do not identify my plots by folders, because several plots use the same temp folder, I need the total time for each politting at first position, and so on)

Acceptance criteria:

  1. As a user I want to select the column that I want to move; and drag the column to another location.
  2. The new sorting should be saved (remembered) after closing the app

Additional:

  1. Make columns resizeable

Hellfall1 avatar May 13 '21 12:05 Hellfall1

P.S. I love you! ❤

(f*cking great tool btw! Saved a lot of time editing my excel sheets)

Hellfall1 avatar May 13 '21 12:05 Hellfall1

same needs

9cat avatar May 17 '21 21:05 9cat

Currently there are technical problems with drag and drop and with changing the column order by other means while the application is running.

With the comming release 0.9.12 you will be able to change column order via the config file which is located at C:\Users\<your username>\ChiaPlotStatu.config.json on windows, /home/<your username>/ChiaPlotStatu.config.json on linux and <your user profile directory>/ChiaPlotStatu.config.json on mac.

Close Chia Plot Status before opening that file.

At the End of the file you will find this:

[... other config options]


  "Columns": {
    "Order": [
      "Tmp1Drive",
      "Tmp2Drive",
      "StartDate",
      "FinishDate",
      "Health",
      "Errors",
      "Progress",
      "ETA",
      "TimeRemaining",
      "RunTimeSeconds",
      "CurrentPhase",
      "CurrentTable",
      "CurrentBucket",
      "Phase1Seconds",
      "Phase2Seconds",
      "Phase3Seconds",
      "Phase4Seconds",
      "CopyTimeSeconds",
      "TotalSeconds",
      "Buffer",
      "Buckets",
      "Threads",
      "LogFolder",
      "LogFile",
      "ApproximateWorkingSpace",
      "FinalFileSize"
    ]
  }

If you do not see this, start and then close Chia Plot Status, then reopen the config file in your editor.

Reorder the columns to your liking, but keep in mind that the last entry must not have a comma while all the other entries do.

I will make it possible to re-order the columns via drag and drop while the application is running as soon as I resolve the issues currently preventing it.

grayfallstown avatar May 18 '21 16:05 grayfallstown

You can resize columns in the next version, but column size is not yet persisted. I hope I get to that tomorrow.

grayfallstown avatar May 18 '21 16:05 grayfallstown

0.9.12 released.

grayfallstown avatar May 18 '21 17:05 grayfallstown

Enabling drag and drop still throws a "The control already has a visual parent" exception in the GUI Framework AvaloniaUI.

I guess https://github.com/AvaloniaUI/Avalonia/issues/2735 could solve this, but this is open since 2019..

grayfallstown avatar May 23 '21 11:05 grayfallstown

Four days later than planned, Release 0.10.1 persists columns widths of the main plot log table now.

grayfallstown avatar May 23 '21 13:05 grayfallstown

Awesome. Seems like I can also use this to hide columns by removing it from the "order" array. If you are curious I removed tmp2 because it's the same as tmp1. Thanks for this customization!

revlisoft avatar May 23 '21 17:05 revlisoft

Awesome. Seems like I can also use this to hide columns by removing it from the "order" array. If you are curious I removed tmp2 because it's the same as tmp1. Thanks for this customization!

actually.. it didn't hide it.. it just moved it all the way to the end where it is off screen. I guess that will do as well. lol.

revlisoft avatar May 23 '21 17:05 revlisoft

it just moved it all the way to the end where it is off screen. I guess that will do as well. lol.

Well, it has to or I can never add new columns. They just would not appear as long as the user does not add them manually and that is too complicated for many users - if they would even read the release notes to find out that column even exists that is.

grayfallstown avatar May 23 '21 18:05 grayfallstown