New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: status column values are misaligned in project list table output #962
Comments
This difference might be causing this issue. I'm not sure. shuttle/common/src/models/deployment.rs Line 50 in 316b7a3
shuttle/common/src/models/project.rs Line 158 in 316b7a3
I'll look into this. |
I did some digging into this and found the culprit. My first debugging attempt was to replace This printed the table with the correct format. Since the deployment list was experiencing no issues, I started comparing the setup of Switching out This issue now is we have a custom Display impl on |
Oh, sorry I missed this @lecoqjacob, thanks for figuring it out! Would you mind opening a PR for this so we can see the changes required? If you could include the screenshot of the output/take a new one, that would be great too. |
Deployment State uses Shall we simplify the latter to only have one color for the entire string (for each state) associated with it? (make project State like deployment State) |
We have now decided that the above comment is a good solution to this problem. |
I'd like to try this issue. So the goal is to replace the manual Looking at the macro, it uses Also, is the api.unstable.shuttle.rs endpoint still usable as a test, it would be good to get a json response with a range of different values? Edit: I found a PR (Peternator7/strum#294) that would be useful, but it hasn't been merged, the maintainer seems to have been offline for a few weeks at least, and even once if it was marged, the version of |
What happened?
When running
project list
the values of theStatus
column are misaligned, this seems to be related to how we apply the color. If we remove the.<color>
call from theproject::State
display impl the table will be correctly aligned, but we need the color in the display impl for other calls (likeproject::Response
).Screenshot of current output:
Version
v0.17.0
Which operating system(s) are you seeing the problem on?
Linux
Which CPU architectures are you seeing the problem on?
x86_64
Relevant log output
No response
Duplicate declaration
The text was updated successfully, but these errors were encountered: