Skip to content
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

make IconColumn and IconEntry support collections #11991

Merged
merged 6 commits into from Mar 23, 2024

Conversation

buddhaCode
Copy link
Contributor

@buddhaCode buddhaCode commented Mar 22, 2024

Description

The IconColumn and the IconEntry doesn't support collections as state as the Text* equivalents does. This PR wraps the state into a Collection instead of an array.

Having a Collection is a common use case, when one has an AsEnumCollection::class cast on a model with an enum implementing the HasIcon interface .

Visual changes

  • Visual changes (if any) are shown using screenshots/recordings of before and after.

Before:

Bildschirmfoto 2024-03-22 um 19 19 44
Bildschirmfoto 2024-03-22 um 19 33 47

After:

Bildschirmfoto 2024-03-22 um 19 21 44
Bildschirmfoto 2024-03-22 um 19 34 11

Functional changes

  • 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.

@zepfietje zepfietje added the enhancement New feature or request label Mar 23, 2024
@zepfietje zepfietje added this to the v3 milestone Mar 23, 2024
@danharrin danharrin merged commit ba904ce into filamentphp:3.x Mar 23, 2024
10 checks passed
@buddhaCode
Copy link
Contributor Author

Guess the changes introduced an error.

Bildschirmfoto 2024-03-23 um 22 29 23

@danharrin
Copy link
Member

That's super weird, I released .60 to fix. I think its a Blade compilation bug

@buddhaCode
Copy link
Contributor Author

Yeah really odd. Can u push the release tag?

@danharrin
Copy link
Member

I did, its just not a GitHub release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants