Add git branch name to badge display #12

Merged
hlipnick merged 5 commits from git-branch-display into main 2024-11-18 13:24:52 +00:00
hlipnick commented 2024-02-07 18:19:57 +00:00 (Migrated from github.com)

This pull request adds functionality to append the name of the currently checked out git branch to the end of the environment display badge, i.e.: Local (main).

Users can opt in by changing the ->showGitBranch() method to the plugin in the panel provider.

This PR serves to further enhance developer awareness when utilizing the Environment Indicator plugin.

This pull request adds functionality to append the name of the currently checked out git branch to the end of the environment display badge, i.e.: `Local (main)`. Users can opt in by changing the `->showGitBranch()` method to the plugin in the panel provider. This PR serves to further enhance developer awareness when utilizing the Environment Indicator plugin.
mischasigtermans commented 2024-08-10 16:17:21 +00:00 (Migrated from github.com)

Love this!

Love this!
pxlrbt commented 2024-11-18 13:25:18 +00:00 (Migrated from github.com)

Thanks @hlipnick. Finally had the time to clean this up and merge it.

Thanks @hlipnick. Finally had the time to clean this up and merge it.
hlipnick commented 2024-11-19 01:39:19 +00:00 (Migrated from github.com)

Thank you, @pxlrbt.

Thank you, @pxlrbt.
mischasigtermans (Migrated from github.com) reviewed 2024-11-19 03:31:12 +00:00
@ -15,1 +15,4 @@
{{ $environment }}
@isset($branch)
<code class="text-xs ml-1" style="margin-top: 1px">({{ $branch }})</code>
mischasigtermans (Migrated from github.com) commented 2024-11-19 03:31:11 +00:00

Why not use mt-px?

Why not use `mt-px`?
pxlrbt (Migrated from github.com) reviewed 2024-11-19 09:18:57 +00:00
@ -15,1 +15,4 @@
{{ $environment }}
@isset($branch)
<code class="text-xs ml-1" style="margin-top: 1px">({{ $branch }})</code>
pxlrbt (Migrated from github.com) commented 2024-11-19 09:18:56 +00:00

Good point. As far as I see, it's not used in the default Filament CSS files and would require recompiling the stylesheets (using a theme).

Good point. As far as I see, it's not used in the default Filament CSS files and would require recompiling the stylesheets (using a theme).
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pxlrbt/filament-environment-indicator!12
No description provided.