Skip to content

feat: Debug mode indicator if true in production#18

Merged
pxlrbt merged 8 commits into
pxlrbt:mainfrom
achyutkneupane:feat/debug-mode-in-production
Jul 25, 2025
Merged

feat: Debug mode indicator if true in production#18
pxlrbt merged 8 commits into
pxlrbt:mainfrom
achyutkneupane:feat/debug-mode-in-production

Conversation

@achyutkneupane

@achyutkneupane achyutkneupane commented Jul 19, 2025

Copy link
Copy Markdown
Contributor

A new indicator which is shown in navbar when APP_DEBUG is set to true while APP_ENV is set to production.

Visual preview

When APP_ENV is production

When APP_DEBUG is false

image

When APP_DEBUG is true

image

When APP_ENV is not production

When APP_DEBUG is false

image

When APP_DEBUG is true

image

@pxlrbt

pxlrbt commented Jul 24, 2025

Copy link
Copy Markdown
Owner

Thanks for the PR. I refactored it a bit, so it's A) opt-in and B) independent from the badge itself. What do you think. Does that work for you? You can use ->showDebugModeWarningInProduction().

@pxlrbt

pxlrbt commented Jul 24, 2025

Copy link
Copy Markdown
Owner

I created a PR for the Filament v3 version here: #19

@achyutkneupane

Copy link
Copy Markdown
Contributor Author

Thanks for the PR. I refactored it a bit, so it's A) opt-in and B) independent from the badge itself. What do you think. Does that work for you? You can use ->showDebugModeWarningInProduction().

Yes this more than works for me.
Thank you

@pxlrbt
pxlrbt merged commit 93ec5e7 into pxlrbt:main Jul 25, 2025
1 check failed
@pxlrbt

pxlrbt commented Jul 25, 2025

Copy link
Copy Markdown
Owner

Cool. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants