10 Commits

Author SHA1 Message Date
kjh2064 e2472b7ea1 feat(portal): 고객 포털 인증과 소셜 로그인 기반 추가 2026-06-28 18:39:29 +09:00
kjh2064 4b62d35266 feat: implement Telegram multi-channel logging and enhance admin UI/UX guidelines
TaxBaik CI/CD / build-and-deploy (push) Successful in 49s
Telegram Logging Enhancements:
- Support multi-channel notifications (inquiry: -5434691215, system: -5585148480)
- New methods: SendInquiryNotificationAsync, SendSystemNotificationAsync
- Dynamic chat ID routing based on notification type
- Backward compatible with existing default ChatId configuration

Admin UI/UX Improvements (CLAUDE.md 10.5):
- Enter key focus transition between form fields
- Auto-submit on last field (with validation)
- Tab key equivalent with explicit input intent
- Applied to all admin management pages

Dorsum ERP Integration Guide (CLAUDE.md 10.6):
- Clear role definition: Dorsum (tax processing) vs TaxBaik (CRM/customer management)
- Elimination of data duplication principles
- Unique TaxBaik features (contract tracking, revenue management, CRM activities)
- Data ownership matrix (who owns what data)
- Future Dorsum API sync strategy (webhook/polling)

Guidelines Updates:
- Form field Enter key handling pattern
- Multi-tenant company management alignment
- API-first architecture reinforcement

Build Status:  Success (0 errors, 3 warnings)
2026-06-28 17:19:39 +09:00
kjh2064 2bde490e9e feat: integrate Serilog and Telegram notifications
TaxBaik CI/CD / build-and-deploy (push) Successful in 51s
- Add Serilog for structured logging (Console + File)
- Implement TelegramNotificationService for admin alerts
- Log successful/failed login attempts with Telegram notifications
- Add application startup/shutdown logging
- Log important events to Telegram Chat ID: -5585148480
- Configuration: Telegram:BotToken and Telegram:ChatId in appsettings

Features:
- Automatic daily log rotation
- Structured logging with timestamps
- Environment-aware alerts
- Error and info level Telegram messages

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-06-28 16:19:38 +09:00
kjh2064 db81f94051 feat: implement API-based account management with test account
TaxBaik CI/CD / build-and-deploy (push) Successful in 49s
- Add Admin:PasswordResetToken configuration for secure password reset API
- Create V012 migration: Add test_admin account for E2E testing
- Create V013 migration: Ensure admin and test_admin accounts exist
- Use reset-password API endpoint instead of manual bcrypt hashing
- Test accounts now managed via API (not migrations/seeds)

Account setup:
- admin: Use reset-password API to set password
- test_admin: For E2E and Playwright testing

API Verification:
 POST /api/auth/login - test_admin login successful
 POST /api/auth/reset-password - Password reset working
 GET /api/inquiry - Returns 205 inquiries (test data)
 GET /api/faq - FAQ data accessible
 GET /api/admin/dashboard/summary - Dashboard API working

Data Note:
Local dev DB contains test data (205 inquiries from Playwright E2E tests).
Production server DB retains all customer data (not affected by local migrations).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 11:55:53 +09:00
kjh2064 0d07b2d26a fix: make API client base URL configurable for green-blue deployments
Previously, all browser clients (AdminDashboardClient, InquiryBrowserClient, etc.)
had hardcoded BaseAddress of http://localhost:5001/taxbaik/api/. This caused
issues when implementing green-blue deployments where ports alternate between
5001/5002.

Changes:
- Add ApiClient:BaseUrl configuration in appsettings.json (default: 5001)
- Update Program.cs to read configuration instead of hardcoding
- All 6 browser clients now use dynamic configuration
- Deployment script prepared for green-blue support (port can be injected via
  ApiClient__BaseUrl environment variable)

Deployment Note:
- For green-blue: Set ApiClient__BaseUrl environment variable before starting
  the service on the alternate port (5002)
- Nginx still routes /taxbaik to the active instance
- Supports zero-downtime deployments

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 11:28:22 +09:00
kjh2064 f54cab5562 feat: notify telegram on new inquiries
TaxBaik CI/CD / build-and-deploy (push) Successful in 1m33s
TaxBaik Browser E2E / browser-e2e (push) Successful in 2m8s
2026-06-27 15:58:42 +09:00
kjh2064 57269e281d refactor: Web과 Admin 통합 - 단일 포트 5001로 운영
TaxBaik CI/CD / build-and-deploy (push) Failing after 36s
분리의 단점을 제거하고 단일 앱으로 통합:

구조 변경:
- TaxBaik.Admin → TaxBaik.Web/Components/Admin/
- Admin Services → TaxBaik.Web/Services/
- 포트: 5001 (기존 5002 제거)

경로:
- 홈페이지: http://localhost:5001/taxbaik
- 관리자: http://localhost:5001/taxbaik/admin

기술:
- Razor Pages (Web) + Blazor Server (Admin) 통합
- 단일 Program.cs로 양쪽 모두 지원
- JWT 인증 유지
- MudBlazor UI 유지

장점:
- 개발 복잡도 감소 (터미널 1개)
- 배포 단순화 (앱 1개)
- DB 마이그레이션 1회 실행

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-06-26 22:35:21 +09:00
kjh2064 525e988637 설정: 백원숙 세무사 연락처 정보 추가
연락처 정보:
- 전화번호: 010-4122-8268
- 이메일: taxbaik5668@gmail.com
- 카카오톡 채널: http://pf.kakao.com/_xoxchTX
- 인스타그램: https://www.instagram.com/taxtory5668/

수정 사항:
- appsettings.json: SiteSettings에 연락처 추가
- _Header.cshtml: 헤더의 전화번호 링크 반영
- _Layout.cshtml: 모바일 CTA 바 카카오톡 직접 링크 연결
- _Footer.cshtml: 전화, 이메일, 채널 링크 모두 반영
- Contact.cshtml: 전화 상담 옵션 추가

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-26 15:13:19 +09:00
kjh2064 6a37cfead4 구현: W3 공개 홈페이지 (Razor Pages SSR)
공개 사이트 (port 5001):
- Program.cs: AddRazorPages, AddInfrastructure, AddApplication, UsePathBase("/taxbaik")
- appsettings.json: PostgreSQL 연결 문자열

레이아웃 및 공통 컴포넌트:
- _Layout.cshtml: Bootstrap 5, Noto Sans KR, OG 메타 태그, 모바일 고정 CTA 바
- _Header.cshtml: sticky navbar, 로고, 네비게이션 링크, 상담신청 버튼
- _Footer.cshtml: 사업자정보, 연락처, KakaoTalk, 저작권
- _ViewImports.cshtml, _ViewStart.cshtml
- site.css: CSS 변수 (--color-primary, --color-cta 등), 반응형 스타일
- site.js: 모바일 CTA 바 제어, sticky 헤더 효과

페이지 구현:
1. Index.cshtml (메인 랜딩): Hero, 신뢰도 strip, 서비스 카드, 최근 블로그
2. Services.cshtml (서비스): 4개 서비스 소개, 상담료 안내
3. About.cshtml (소개): 세무사 프로필, 3개 자격증, 서비스 철학
4. Contact.cshtml (상담신청): 폼 (이름, 전화, 이메일, 분야, 문의), ValidationException 처리
5. Blog/Index.cshtml (블로그 목록): 카테고리 필터 탭, 12개 그리드, 페이지네이션
6. Blog/Post.cshtml (포스트 상세): 브레드크럼, 제목, 메타정보, 콘텐츠, CTA, 공유 버튼

SEO:
- robots.txt: /taxbaik 허용, /admin 차단, sitemap 링크
- Sitemap.cshtml: 동적 생성 (정적 페이지 + 모든 포스트)

기술:
- Dapper 기반 DB 접근
- 페이징: 12개/페이지
- 한국어 입력값 검증

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-26 15:10:39 +09:00
kjh2064 6dff8e7777 Initial project setup: solution + 5 projects
- Domain, Infrastructure, Application (class libraries)
- Web (ASP.NET Core empty)
- Admin (Blazor Server)
- All net8.0 target framework
- Project references configured

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-26 14:51:00 +09:00