Add git branch name to badge display #12
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pxlrbt/filament-environment-indicator!12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "git-branch-display"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
Love this!
Thanks @hlipnick. Finally had the time to clean this up and merge it.
Thank you, @pxlrbt.
@ -15,1 +15,4 @@{{ $environment }}@isset($branch)<code class="text-xs ml-1" style="margin-top: 1px">({{ $branch }})</code>Why not use
mt-px?@ -15,1 +15,4 @@{{ $environment }}@isset($branch)<code class="text-xs ml-1" style="margin-top: 1px">({{ $branch }})</code>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).