From 0c49e12fa0fc23b036bbc8dee75093d4a85b3d76 Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Sat, 27 Jun 2026 21:41:53 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9A=B4=EC=98=81=20=EC=84=A4=EC=A0=95?= =?UTF-8?q?=20=EB=B0=B0=ED=8F=AC=EC=99=80=20=ED=83=90=EC=83=89=20UX=20?= =?UTF-8?q?=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yml | 18 ++---------------- .../Components/Admin/InquiryTable.razor | 4 ++-- .../Admin/Pages/Inquiries/InquiryDetail.razor | 13 ++++++++----- TaxBaik.Web/Pages/Blog/Index.cshtml | 2 +- TaxBaik.Web/Pages/Blog/Post.cshtml | 4 ++++ TaxBaik.Web/Pages/Index.cshtml | 2 +- tests/e2e/blog-seo.spec.ts | 2 +- tests/e2e/inquiry-detail.spec.ts | 3 ++- 8 files changed, 21 insertions(+), 27 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 02000db..120b9fe 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -40,22 +40,8 @@ jobs: echo "Missing TAXBAIK_JWT_SECRET_KEY secret" >&2 exit 1 fi - JWT_SECRET_KEY="$JWT_SECRET_KEY" python3 - <<'PY' - import json - import os - from pathlib import Path - - config = { - "Jwt": { - "SecretKey": os.environ["JWT_SECRET_KEY"] - } - } - - Path("./publish/appsettings.Production.json").write_text( - json.dumps(config, ensure_ascii=False, indent=2), - encoding="utf-8", - ) - PY + JWT_SECRET_KEY="$JWT_SECRET_KEY" python3 -c 'import json, os, pathlib; pathlib.Path("./publish/appsettings.Production.json").write_text(json.dumps({"Jwt":{"SecretKey":os.environ["JWT_SECRET_KEY"]}}, ensure_ascii=False, indent=2), encoding="utf-8")' + test -s ./publish/appsettings.Production.json - name: Copy migrations to publish run: | diff --git a/TaxBaik.Web/Components/Admin/InquiryTable.razor b/TaxBaik.Web/Components/Admin/InquiryTable.razor index fcc1cae..7ef52bb 100644 --- a/TaxBaik.Web/Components/Admin/InquiryTable.razor +++ b/TaxBaik.Web/Components/Admin/InquiryTable.razor @@ -28,8 +28,8 @@ @GetPreview(inquiry.Message) @inquiry.CreatedAt.ToString("yyyy-MM-dd") - 상세 + 문의 내용 확인 } diff --git a/TaxBaik.Web/Components/Admin/Pages/Inquiries/InquiryDetail.razor b/TaxBaik.Web/Components/Admin/Pages/Inquiries/InquiryDetail.razor index c5a79cb..921ca4f 100644 --- a/TaxBaik.Web/Components/Admin/Pages/Inquiries/InquiryDetail.razor +++ b/TaxBaik.Web/Components/Admin/Pages/Inquiries/InquiryDetail.razor @@ -9,8 +9,11 @@ @if (inquiry != null) { - - ← 돌아가기 + + 문의 목록으로 돌아가기 @@ -18,9 +21,9 @@ 문의 상세 - 문의 목록 열기 + StartIcon="@Icons.Material.Filled.List" + Href="/taxbaik/admin/inquiries"> + 다른 문의도 보기 diff --git a/TaxBaik.Web/Pages/Blog/Index.cshtml b/TaxBaik.Web/Pages/Blog/Index.cshtml index e4d7bf5..8e754dc 100644 --- a/TaxBaik.Web/Pages/Blog/Index.cshtml +++ b/TaxBaik.Web/Pages/Blog/Index.cshtml @@ -26,7 +26,7 @@ @post.CategoryName
@post.Title

@post.CreatedAt.ToString("yyyy-MM-dd")

- 읽기 + 글 내용 보기 diff --git a/TaxBaik.Web/Pages/Blog/Post.cshtml b/TaxBaik.Web/Pages/Blog/Post.cshtml index cb3a71c..c27ea5a 100644 --- a/TaxBaik.Web/Pages/Blog/Post.cshtml +++ b/TaxBaik.Web/Pages/Blog/Post.cshtml @@ -20,6 +20,10 @@ + + @if (!string.IsNullOrEmpty(Model.Post.ThumbnailUrl)) { @Model.Post.Title@post.CategoryName

@post.Title

@post.CreatedAt.ToString("yyyy년 MM월 dd일")

- 읽기 + 글 내용 보기 diff --git a/tests/e2e/blog-seo.spec.ts b/tests/e2e/blog-seo.spec.ts index 1a90c54..6c68530 100644 --- a/tests/e2e/blog-seo.spec.ts +++ b/tests/e2e/blog-seo.spec.ts @@ -5,7 +5,7 @@ const baseUrl = (process.env.E2E_BASE_URL ?? 'http://178.104.200.7/taxbaik').rep test.describe('blog seo', () => { test('exposes title description and canonical on blog detail pages', async ({ page }) => { await page.goto(`${baseUrl}/blog`); - const firstPost = page.locator('a[href^="/taxbaik/blog/"]').filter({ hasText: '읽기' }).first(); + const firstPost = page.locator('a[href^="/taxbaik/blog/"]').filter({ hasText: '글 내용 보기' }).first(); await expect(firstPost).toBeVisible(); const detailHref = await firstPost.getAttribute('href'); expect(detailHref).toMatch(/^\/taxbaik\/blog\/[a-z0-9-]+$/); diff --git a/tests/e2e/inquiry-detail.spec.ts b/tests/e2e/inquiry-detail.spec.ts index c257ae5..3aac1c8 100644 --- a/tests/e2e/inquiry-detail.spec.ts +++ b/tests/e2e/inquiry-detail.spec.ts @@ -41,6 +41,7 @@ test.describe('inquiry detail', () => { await expect(page.getByRole('button', { name: '신규' })).toBeVisible(); await expect(page.getByRole('button', { name: '연락함' })).toBeVisible(); await expect(page.getByRole('button', { name: '완료' })).toBeVisible(); - await expect(page.getByRole('button', { name: '문의 목록 열기' })).toBeVisible(); + await expect(page.getByRole('button', { name: '문의 목록으로 돌아가기' })).toBeVisible(); + await expect(page.getByRole('link', { name: '다른 문의도 보기' })).toBeVisible(); }); });