Ho Ngoc Hai
53c33a1c50
feat(mcp): add industrial parks and reports MCP tool servers
...
Add IndustrialParkServer for KCN/KCX search and analytics, and
ReportsServer for market report generation. Include unit tests
for industrial parks server.
Co-Authored-By: Paperclip <noreply@paperclip.ing >
2026-04-16 05:16:11 +07:00
Ho Ngoc Hai
8039b47795
docs: fix Next.js 14→15 references, add libs READMEs
...
- Fix remaining "Next.js 14" references in:
- docs/architecture/IMPLEMENTATION_QUICK_REFERENCE.md
- docs/load-testing/K6_LOAD_TESTING_GUIDE.md
- Create README.md for libs/ai-services/ (FastAPI AVM, moderation, NLP)
- Create README.md for libs/mcp-servers/ (MCP tool server library)
- Note: CLAUDE.md, README.md, and docs/architecture.md were already
updated in a prior pass
Co-Authored-By: Paperclip <noreply@paperclip.ing >
2026-04-15 11:30:00 +07:00
Ho Ngoc Hai
62f4f001b6
test(api): add domain layer unit tests across all modules
...
Cover admin events, notifications, reviews, search VOs, listings (property,
media, events, price/geo/address VOs), auth events, payment events,
subscription events, and analytics events. Raises domain test coverage
from ~24% to ~75%.
Co-Authored-By: Paperclip <noreply@paperclip.ing >
2026-04-09 00:36:39 +07:00
Ho Ngoc Hai
a2e87c34e4
test(mcp-servers): add unit tests for property search, market analytics, and valuation servers
...
29 tests covering all 9 MCP tools: search_properties, compare_properties,
get_property_details, market_report, price_trends, district_comparison,
estimate_property_value, extract_listing_features, and batch_valuation.
Co-Authored-By: Paperclip <noreply@paperclip.ing >
2026-04-08 16:31:35 +07:00
Ho Ngoc Hai
af71270a2e
feat: upgrade major dependencies to latest versions
...
- Prisma 6.19 → 7.7 (driver adapter pattern, prisma.config.ts)
- TypeScript 5.9 → 6.0 (ignoreDeprecations, CSS type declarations)
- Vitest 3.2 → 4.1
- Pino 9.14 → 10.3
- @types/node 22.x → 25.x
All 307 tests pass, typecheck clean, build succeeds.
Co-Authored-By: Paperclip <noreply@paperclip.ing >
2026-04-08 13:15:36 +07:00
Ho Ngoc Hai
9b2b8c2ba5
test(e2e): add 14 new web E2E test files for critical user flows
...
Cover auth (login, register, OAuth callbacks), search with filters,
listing detail, dashboard, analytics, create listing form, admin
dashboard/users/moderation/KYC, navigation routing, and responsive
design. Total 91 test cases using Playwright with API route mocking.
Also fix mcp-servers tsconfig deprecation warning for TS 7.x compat.
Co-Authored-By: Paperclip <noreply@paperclip.ing >
2026-04-08 13:13:46 +07:00
Ho Ngoc Hai
2502aa69b7
fix: production readiness — resolve build, lint, and code quality issues
...
- Fix Next.js build failure: remove duplicate route at (dashboard)/listings/[id]
that conflicted with (public)/listings/[id] (same URL path in two route groups)
- Fix 772 ESLint errors: auto-fix import ordering (import-x/order), remove unused
imports/variables, convert empty interfaces to type aliases, replace require()
with ESM imports, fix consistent-type-imports violations
- Add CLAUDE.md for developer onboarding documentation
- All checks pass: 0 lint errors, typecheck clean, 230 tests passing, build success
Co-Authored-By: Paperclip <noreply@paperclip.ing >
2026-04-08 07:15:06 +07:00
Ho Ngoc Hai
271ad76e6f
fix: resolve E2E test failures and API runtime issues for Docker dev environment
...
- Fix DI issues: circular MCP module dependency, EventBus type import,
SearchModule provider, CacheService metric counters placement
- Fix Express 5 readonly req.query in SanitizeInputMiddleware
- Fix Typesense client lazy initialization (getter instead of constructor)
- Fix MinIO bucket init error handling (non-fatal on 403)
- Fix missing class-validator decorators on bigint DTO fields (priceVND, amountVND)
- Fix subscription plan 404 (was returning 500 for invalid tier)
- Disable CSRF and raise rate limits in test environment
- Update E2E tests to match actual API response shapes
- Update CI workflow with Redis, Typesense, MinIO services and env vars
All 101 API E2E tests now pass against Docker dev environment.
Co-Authored-By: Paperclip <noreply@paperclip.ing >
2026-04-08 05:44:00 +07:00
Ho Ngoc Hai
cb00b12d7b
feat(mcp): add MCP Server Integration — Property Search, Analytics, Valuation
...
Implement 3 MCP servers in libs/mcp-servers/ using @modelcontextprotocol/sdk:
- Property Search: NL search via Typesense, property comparison, detail lookup
- Market Analytics: market reports, price trends, district comparison
- Valuation: AVM integration with Python AI service, feature extraction, batch valuation
Includes NestJS integration module with SSE transport for in-process hosting.
Co-Authored-By: Paperclip <noreply@paperclip.ing >
2026-04-08 03:22:27 +07:00
Ho Ngoc Hai
d99dfbafbc
feat(monitoring): add Prometheus metrics endpoint and Grafana dashboards
...
Add observability stack with @willsoto/nestjs-prometheus for /metrics endpoint,
Prometheus scraping config, and 4 auto-provisioned Grafana dashboards
(API overview, database, search, business metrics).
Co-Authored-By: Paperclip <noreply@paperclip.ing >
2026-04-08 03:08:54 +07:00