From d4ed79115c82244b5f9722dd35d550f3a00853d2 Mon Sep 17 00:00:00 2001 From: jb Date: Fri, 19 Jun 2026 12:30:57 -0300 Subject: [PATCH] refactor: show placeholder for DB URL and central server URL fields Drop the hardcoded dummy fallbacks for Database.URL and Application.CentralServerURL in loadConfig so these inputs display their placeholder instead of a pre-filled value. An existing config.toml still seeds them on re-run via the decode, so real defaults are preserved. Co-Authored-By: Claude Opus 4.8 --- internal/tui/model.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/tui/model.go b/internal/tui/model.go index d7b67c4..b9ad42d 100644 --- a/internal/tui/model.go +++ b/internal/tui/model.go @@ -88,13 +88,14 @@ func loadConfig() AppConfig { config.Server.Environment = "production" config.Database.Type = "postgres" - config.Database.URL = "postgres://usuario:senha@banco:5432/app_dono_db" config.Database.MaxConns = 10 config.Database.MinConns = 2 config.Certificates.DirPath = "/caminho/para/diretorio" - config.Application.CentralServerURL = "https://servidor:8443" + // Database.URL and Application.CentralServerURL are intentionally left empty so the + // fields show their placeholder instead of a pre-filled dummy. A real config.toml + // (re-run) still seeds them through the decode below. _, err := os.Stat("config.toml") if err == nil {