dashboard UI shows invalid paths with curly braces and truncation
In dashboard UI, for some reason, there is some random replacements of ] to }, and weird truncation at the end of the line.
I've tried a quick local hack and this seems to work:
- rows = append(rows, strings.ReplaceAll(violation.Path, "]", "}"))
+ rows = append(rows, violation.Path+" ")
..the space helps with the truncation issue, and not sure what was the purpose for the curly brace replacements.
would you be able to do a pull request ,this will check if all unit test are passing , if so, it looks legitimate usually { } are more for path parameters in text here [] seems nicer / better
The reason this exists, is because the TUI (terminal UI) library used by vacuum requires font colors to be defined by enclosing square brackets. This completely conflicts with the JSON path, so as a workaround I replaced with braces.
I don't think the issue has been resolved in the upstream library, so I am amazed this works. I will look into it a little deeper.
Fixed in v0.18.0
https://quobix.com/vacuum/commands/dashboard/
dashboard has been completely rebuilt and this problem no longer exists.