Skip to content

Improve column manager handling with hidden closures #17040

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

Merged
merged 3 commits into from
Jul 21, 2025

Conversation

archilex
Copy link
Contributor

This PR fixes the outstanding issue from #16943 where a column is hidden based on the activeTab AND the table columns have been reordered. This is done by reverting some of the changes in the previous PR and instead of removing the column if it's hidden, it is instead filtered out in blade/js.

It also improves the default syncing of the isToggledHiddenByDefault() in that if a column is initially created and is NOT toggleable(), but then ->toggleable(isToggledHiddenByDefault: true) is subsequently added by the dev, the column will be correctly toggled off on the next refresh. Note, once a column is toggleable(), changing the boolean value of isToggledHiddenByDefault will NOT update the column's state in the UI as this would potentially override any toggling the user has done. Of course, resetting the column manager will set the column to whatever this default is.

  • Code style has been fixed by running the composer cs command.
  • Changes have been tested to not break existing functionality.
  • Documentation is up-to-date.

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Roadmap Jul 21, 2025
@danharrin danharrin added the bug Something isn't working label Jul 21, 2025
@danharrin danharrin added this to the v4.0.0 milestone Jul 21, 2025
@danharrin danharrin merged commit 883f819 into 4.x Jul 21, 2025
25 checks passed
@danharrin
Copy link
Member

Thanks!

@github-project-automation github-project-automation bot moved this from In Progress to Done in Roadmap Jul 21, 2025
@danharrin danharrin deleted the Improve-columnManager-handling-with-hidden-closures branch July 21, 2025 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants