owpengram-server/cmd/telesrv-admin/web/src
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
..
components usernames: operator reserved-username blocklist 2026-09-14 12:04:43 +01:00
lib added cache for dashboard and storage pages 2026-09-08 02:29:28 +03:00
pages admin: fix server settings env editor crashing on empty template 2026-09-14 19:01:18 +01:00
styles fixing bugs 2026-09-08 18:59:58 +03:00
api.ts usernames: operator reserved-username blocklist 2026-09-14 12:04:43 +01:00
App.tsx improvements for first-time setup 2026-09-08 17:56:26 +03:00
clipboard.ts fix 2026-09-01 20:06:58 +03:00
lottie-web.d.ts feat: sync collectible star gifts 2026-07-16 12:38:53 +08:00
main.tsx Merge remote-tracking branch 'upstream/main' into merge-gramsrv-9106877 2026-08-03 23:29:20 +03:00
permissions.tsx added 403 screen when operator have no permission for section 2026-09-08 02:19:09 +03:00
routing.ts usernames: operator reserved-username blocklist 2026-09-14 12:04:43 +01:00
styles.css chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
theme.tsx Merge remote-tracking branch 'upstream/main' into merge-gramsrv-9106877 2026-08-03 23:29:20 +03:00
types.ts usernames: operator reserved-username blocklist 2026-09-14 12:04:43 +01:00