-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
fix: implement EZA_GRID_ROWS
grid details view minimum rows threshold
#1043
fix: implement EZA_GRID_ROWS
grid details view minimum rows threshold
#1043
Conversation
The failure of Flake Checker appears unrelated. Edit: That's DeterminateSystems/flake-checker-action#32. |
You could indeed be very right in that the configured rows refers to the rows in the grid view rather than the rows in the list view. This means I would need to divide the number of files by the number of grid columns and round up. The config setting should then be interpreted as "Render a details grid, but only if the grid is going to be long enough". Maybe we could also improve the documentation of the environment variable to make this ambiguity clearer. |
Ok good I thought I was missing something 😅. but you are right it's definitely because of the ambiguity. The only reason I think may be correct, is the var seems to be discussed in the context of Some clearer docs would be helpful for sure 👍 (assuming that is the case anyway, someone else let me know if this is off base) |
3a2d9aa
to
de489fb
Compare
I've adjusted the implementation. It now entirely lives within I re-read the documentation of The algorithm works correctly now: The second invocation renders a details list view, since the grid would not at least span 11 rows. |
@PThorpe92 PTAL 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
heyy sorry man, super busy week.
Awesome! this looks good to me 👍
Thanks for the PR!
p.s. so you think the existing docs are sufficient, and we had just skimmed it over?
all set w/ me, can merge when @cafkafk is ready
No worries, I just wasn't sure if you had been notified about the PR update. Hope it's okay that I pinged you! Awesome! this looks good to me 👍 Thanks for the PR! Thanks and very welcome!
It appeared to me like I merely skimmed it over and thus misunderstood. The docs seem sufficient to me as they are. If you disagree, though, then please let me know. I can also contribute an update to the docs while we're at it. |
LGTM ✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Do you require a rebase or is this ready to merge as is? |
Yeah could you rebase from main? I just pinged cafk on matrix about it, she will take a look + merge but rebasing would be helpful. |
42e1e07
to
6e4c817
Compare
Grid details view had been prevented only by console width being unavailable. This changeset implements `EZA_GRID_ROWS` as secondary grid details inhibitor, preventing grid details view if the minimum rows threshold is not reached by grid which would be rendered. Fix: eza-community#66 (comment) Fix: eza-community#1044 BREAKING CHANGE: Before this change, the `EZA_GRID_ROWS` variable was ignored, despite documentation existing. Users relying on `EZA_GRID_ROW` not doing anything will find their output changed. For more info, see
6e4c817
to
a204e4a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, this does look like it's working as expected. It's a breaking change, so I've changed to commit summary to reflect that.
Thanks for fixing this!
Grid details view had been prevented only by console width being unavailable.
This changeset implements
EZA_GRID_ROWS
as secondary grid details inhibitor, preventing grid details view if the minimum rows threshold is not reached by the grid which would be rendered.Fixes complaint at #66 (comment)
Side note:
EZA_GRID_ROWS
only applies to--long --grid
, but not to non-details--grid
view. Looking at the code and documentation, this appears to be intentional.