From 00def89a66dd057d36872ed6be1f8c6a62da0dc5 Mon Sep 17 00:00:00 2001 From: Coff0xc <184964491+Coff0xc@users.noreply.github.com> Date: Sat, 21 Nov 2026 19:55:14 +0000 Subject: [PATCH] fix(web): clear and mask test-account passwords on the task form Creating a task left the credential rows in the form, and the password input was plain text. The rows are cleared after a successful create, and the password field is masked. --- CHANGELOG.md | 1 + web/src/app/(main)/function/tasks/page.tsx | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5af6fb6..e2669b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ All notable changes to this project are documented in this file. The format is b ### Fixed +- **Task form does not keep test-account secrets on screen**: after a task is created the credential rows are cleared, and the password field is masked. - **Docker Compose database passwords with URL-special characters**: `docker-compose.yml` no longer pastes `POSTGRES_PASSWORD` into `ARTEX_PG_DSN`. The server builds the URL from `ARTEX_PG_HOST`, `ARTEX_PG_PORT`, `ARTEX_PG_USER`, `ARTEX_PG_PASSWORD`, `ARTEX_PG_DBNAME` and `ARTEX_PG_SSLMODE`, percent-encoding the user and password, so `/`, `?`, `%`, `@`, `:` and spaces connect. An explicit `ARTEX_PG_DSN` still wins and is not rewritten. `ARTEX_PG_PASSWORD` is removed from the environment with the other startup secrets (#450). ## [0.7.0] - 2026-11-21 diff --git a/web/src/app/(main)/function/tasks/page.tsx b/web/src/app/(main)/function/tasks/page.tsx index d6ac89a..27345fe 100644 --- a/web/src/app/(main)/function/tasks/page.tsx +++ b/web/src/app/(main)/function/tasks/page.tsx @@ -3273,6 +3273,7 @@ function CreateTaskSheet({ setSeedFirstIntent(false); setCoverageEnabled(true); setInterceptRules([]); + setCredentials([]); setUploadCount(0); draftIdRef.current = ""; setOpen(false); @@ -3457,6 +3458,8 @@ function CreateTaskSheet({ onChange={(e) => setCredentials((prev) => prev.map((x, j) => (j === i ? { ...x, username: e.target.value } : x)))} /> setCredentials((prev) => prev.map((x, j) => (j === i ? { ...x, password: e.target.value } : x)))}