fix: per-page WASM render mode, Contact checkbox binding, Telegram inquiry channel
TaxBaik CI/CD / build-and-deploy (push) Successful in 2m11s

- Admin: replace the global @rendermode on <Routes>/<Router> with per-page
  render mode. Login.razor now prerenders (form visible before WASM loads);
  every other [Authorize] page stays prerender: false to avoid the
  AuthorizeRouteView blank-render regression from earlier attempts. Adds a
  "준비 중" -> "로그인" splash tied to WASM boot completion, and lets the
  authenticated-shell loading overlay stay up until AdminShell actually renders.
- Contact.cshtml: fix the "Agree" checkbox missing value="true" - a checked
  box sent the browser-default "on", which bool model binding can't parse,
  so ModelState.IsValid silently went false and OnPostAsync returned a blank
  form with no visible error on every submission. Validation summary widened
  from ModelOnly to All so this class of failure isn't silent again.
- TelegramInquiryNotificationService: read Telegram:InquiryChatId (falling
  back to ChatId) instead of only ChatId, matching the channel routing
  CLAUDE.md documents and deploy.yml already provisions as separate secrets.
- Reconcile CLAUDE.md's self-contradicting Phase 8 prerender notes (Phase 9),
  rewrite validate_admin_render.sh for the per-page design, and add a
  SmartAdmin 5.5 design reference section to DOUZONE_UX_GUIDE.md for future
  admin screens (existing screens unchanged, tracked as WBS P4-03).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-03 10:15:27 +09:00
parent d015bb6c92
commit e5981769b9
42 changed files with 198 additions and 77 deletions
+2 -2
View File
@@ -38,7 +38,7 @@
<form method="post" id="contactForm">
@Html.AntiForgeryToken()
<div asp-validation-summary="ModelOnly" class="text-danger mb-3"></div>
<div asp-validation-summary="All" class="text-danger mb-3"></div>
<div class="mb-3">
<label for="name" class="form-label">이름 <span class="text-danger">*</span></label>
@@ -73,7 +73,7 @@
</div>
<div class="mb-3 form-check">
<input type="checkbox" class="form-check-input" id="agree" name="Agree" required />
<input type="checkbox" class="form-check-input" id="agree" name="Agree" value="true" required />
<label class="form-check-label" for="agree">
개인정보 수집·이용에 동의합니다
</label>
@@ -23,10 +23,12 @@ public class TelegramInquiryNotificationService : IInquiryNotificationService
public async Task NotifyCreatedAsync(int inquiryId, string name, string phone, string serviceType, string message, string? ipAddress, DateTime createdAtUtc, CancellationToken ct = default)
{
var botToken = _configuration["Telegram:BotToken"];
var chatId = _configuration["Telegram:ChatId"];
var chatId = _configuration["Telegram:InquiryChatId"];
if (string.IsNullOrWhiteSpace(chatId))
chatId = _configuration["Telegram:ChatId"];
if (string.IsNullOrWhiteSpace(botToken) || string.IsNullOrWhiteSpace(chatId))
{
_logger.LogWarning("텔레그램 새 문의 알림 설정이 누락되었습니다. Telegram:BotToken 또는 Telegram:ChatId를 확인하세요.");
_logger.LogWarning("텔레그램 새 문의 알림 설정이 누락되었습니다. Telegram:BotToken 또는 Telegram:InquiryChatId/ChatId를 확인하세요.");
return;
}
@@ -80,10 +82,12 @@ public class TelegramInquiryNotificationService : IInquiryNotificationService
public async Task NotifyStatusChangedAsync(int inquiryId, string name, string phone, string serviceType, string previousStatus, string newStatus, string? changedBy = null, CancellationToken ct = default)
{
var botToken = _configuration["Telegram:BotToken"];
var chatId = _configuration["Telegram:ChatId"];
var chatId = _configuration["Telegram:InquiryChatId"];
if (string.IsNullOrWhiteSpace(chatId))
chatId = _configuration["Telegram:ChatId"];
if (string.IsNullOrWhiteSpace(botToken) || string.IsNullOrWhiteSpace(chatId))
{
_logger.LogWarning("텔레그램 상태 변경 알림 설정이 누락되었습니다. Telegram:BotToken 또는 Telegram:ChatId를 확인하세요.");
_logger.LogWarning("텔레그램 상태 변경 알림 설정이 누락되었습니다. Telegram:BotToken 또는 Telegram:InquiryChatId/ChatId를 확인하세요.");
return;
}
+14 -3
View File
@@ -239,11 +239,12 @@ window.taxbaikAdminSession = {
window.addEventListener('hashchange', window.taxbaikAdminSession.syncRouteClass);
if (document.documentElement.classList.contains('admin-login-route')) {
// Login prerenders immediately; no boot splash needed.
window.taxbaikAdminSession.hideLoading();
}
// Keep the initial overlay hidden unless explicitly enabled elsewhere.
window.taxbaikAdminSession.hideLoading();
// Non-login routes: leave the overlay showing until AdminShell's
// OnAfterRenderAsync(firstRender) calls hideLoading once WASM has
// actually rendered the authenticated shell.
const modal = document.getElementById('components-reconnect-modal');
if (!modal) return;
@@ -266,6 +267,16 @@ window.taxbaikAdminSession = {
form.dataset.bound = '1';
window.taxbaikAdminSession.traceUiState('admin-login', 'bindLoginForm attached');
// 업데이트 스플래시: 제출 핸들러가 실제로 붙기 전까지는 버튼을 "준비 중" 상태로 두고,
// 여기서 활성화해 사용자가 로그인 가능 시점을 알 수 있게 한다.
const readyButton = form.querySelector('#admin-login-submit');
if (readyButton) {
readyButton.disabled = false;
const label = readyButton.querySelector('span');
if (label) label.textContent = '로그인';
}
form.addEventListener('submit', async function (event) {
event.preventDefault();