feat: Debug mode indicator if true in production #18

Merged
achyutkneupane merged 8 commits from feat/debug-mode-in-production into main 2025-07-25 14:36:25 +00:00
achyutkneupane commented 2025-07-19 20:00:22 +00:00 (Migrated from github.com)

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
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` <img width="328" height="125" alt="image" src="https://github.com/user-attachments/assets/9de24917-2e00-4ade-8c26-d7b553ab75e0" /> ### When `APP_DEBUG` is `true` <img width="262" height="86" alt="image" src="https://github.com/user-attachments/assets/93af604f-7f10-4513-8a3e-b6dec8c050c5" /> ## When `APP_ENV` is not `production` ### When `APP_DEBUG` is `false` <img width="227" height="99" alt="image" src="https://github.com/user-attachments/assets/0d9c635e-be2b-47c9-a6b2-29e81d6960dd" /> ### When `APP_DEBUG` is `true` <img width="219" height="92" alt="image" src="https://github.com/user-attachments/assets/b46e9206-b3d5-49d8-8b72-6452d00a00cb" />
pxlrbt commented 2025-07-24 14:26:55 +00:00 (Migrated from github.com)

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().

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 commented 2025-07-24 14:49:33 +00:00 (Migrated from github.com)

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

I created a PR for the Filament v3 version here: #19
achyutkneupane commented 2025-07-25 13:17:54 +00:00 (Migrated from github.com)

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

> 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 commented 2025-07-25 14:36:29 +00:00 (Migrated from github.com)

Cool. Thank you!

Cool. Thank you!
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!18
No description provided.