owpengram-server/cmd
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
..
appearancefetch feat: sync visible product branding 2026-07-20 16:49:17 +08:00
bots Merge remote-tracking branch 'upstream/main' into merge-gramsrv-9106877 2026-08-03 23:29:20 +03:00
catalogfetch feat: sync multilayer td integration 2026-07-15 13:32:06 +08:00
createuser tools/createuser: report which field collided on insert failure 2026-09-14 12:05:28 +01:00
langpackfetch feat: sync langpack and auth updates 2026-07-18 00:07:41 +08:00
otpwebhook-example feat: sync configurable OTP delivery providers 2026-07-17 17:04:39 +08:00
stickerfetch feat: sync multilayer td integration 2026-07-15 13:32:06 +08:00
stickerseeddeploy fix: sync birthday updates and system sticker sets 2026-07-05 15:15:32 +08:00
telegramloginkeygen feat: sync Telegram Login OIDC provider 2026-07-21 15:46:24 +08:00
telesrv usernames: report reserved names as taken in the check paths too 2026-09-14 12:05:28 +01:00
telesrv-admin admin: fix server settings env editor crashing on empty template 2026-09-14 19:01:18 +01:00
telesrv-load merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
telesrv-update merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
walletminiapp feat: sync visible product branding 2026-07-20 16:49:17 +08:00