owpengram-server/cmd/telesrv-admin
Astra 8850554500 admin: fix server settings env editor crashing on empty template
ReadEnvGroups returned a nil slice (out := groups[:0]) whenever no group
ended up with fields, which marshals to JSON null instead of []. The
admin UI's EnvSection calls groups.reduce()/iterates unconditionally, so
that null crashed the Server Settings page.

Also switch the source of the panel structure from .env.example to .env
once .env exists, falling back to .env.example only pre-setup: .env
already carries the same group headers and comments after any save
(WriteEnvValues always rewrites it from .env.example's exact text), so
it's the more current source of what's actually configured.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-14 19:01:18 +01:00
..
web admin: fix server settings env editor crashing on empty template 2026-09-14 19:01:18 +01:00
addserverlink.go fix 2026-09-01 20:06:58 +03:00
adminauth.go server admin panel is now supports multiple operators profiles 2026-09-08 01:01:35 +03:00
adminauth_test.go improvements for first-time setup 2026-09-08 17:56:26 +03:00
adminusers.go server admin panel is now supports multiple operators profiles 2026-09-08 01:01:35 +03:00
adminusers_api.go server admin panel is now supports multiple operators profiles 2026-09-08 01:01:35 +03:00
adminusers_guard_integration_test.go added full access row to operator modal, plus a test for the last-manager guard 2026-09-11 15:48:07 +03:00
botverification.go added ability to disable third-party verification 2026-08-06 05:27:48 +03:00
botverification_test.go feat: add NFT usernames and bot verification (#22) 2026-07-28 01:18:00 +08:00
buildinfo.go fix 2026-08-26 02:53:47 +03:00
filter_bots_test.go disabling marksbot when third-party verifications if turned off 2026-08-06 15:45:32 +03:00
main.go fix 2026-09-01 20:06:58 +03:00
publicbranding.go glorifying admin panel 2026-09-08 01:53:49 +03:00
readstore.go admin: list accounts that have no active sessions 2026-09-14 12:00:03 +01:00
readstore_accounts_integration_test.go admin: list accounts that have no active sessions 2026-09-14 12:00:03 +01:00
readstore_botverification_integration_test.go feat: add NFT usernames and bot verification (#22) 2026-07-28 01:18:00 +08:00
readstore_shared_devices_integration_test.go added ability to check shared devices 2026-08-06 02:12:46 +03:00
readstore_verification_integration_test.go feat: add NFT usernames and bot verification (#22) 2026-07-28 01:18:00 +08:00
routescope_test.go glorifying admin panel 2026-09-08 01:53:49 +03:00
security.go server admin panel is now supports multiple operators profiles 2026-09-08 01:01:35 +03:00
server.go usernames: operator reserved-username blocklist 2026-09-14 12:04:43 +01:00
serversettings.go improvements for first-time setup 2026-09-08 17:56:26 +03:00
serversettings_test.go added messages templates 2026-09-01 14:40:06 +03:00
session.go server admin panel is now supports multiple operators profiles 2026-09-08 01:01:35 +03:00
session_test.go merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
verification.go feat: add NFT usernames and bot verification (#22) 2026-07-28 01:18:00 +08:00
verification_test.go server admin panel is now supports multiple operators profiles 2026-09-08 01:01:35 +03:00