1. 20 Apr, 2026 2 commits
  2. 19 Apr, 2026 1 commit
    • Hoanganhvu123's avatar
      feat(epic8+docx): complete Inbound Webhooks CRM Inbox + Full DOCX Document Management · a67917c3
      Hoanganhvu123 authored
      EPIC 8 - INBOUND WEBHOOKS & CRM INBOX 
      ========================================
      Backend:
      - Add is_read field to memos table with auto-migration
      - Inbound webhook endpoint: POST /inbound_webhooks/{workspace_id}
      - Inbox endpoints: GET /users/{id}/inbox/unread_count, GET /users/{id}/inbox/memos
      - Webhook payload formatting (title+body → markdown, arbitrary → bullet list)
      - Optional secret verification via X-Webhook-Secret header
      - Database indexes: idx_memos_is_read, idx_memos_workspace
      
      Frontend:
      - Inboxes.tsx: Two tabs (Notifications + Unread Memos)
      - useInboxUnreadCount hook with 60s refetch
      - useMarkMemoAsRead mutation
      - Navigation badge: notifications + unread memos count
      - i18n: inbox.* keys (en/vi)
      
      DOCUMENT MANAGEMENT (DOCX/PDF) 🆕
      ==================================
      Backend:
      - New table: cuccu_documents with full schema
      - DocumentService: upload, list, get, update, delete, process, import_to_memo
      - AI enhancement via OpenAI (tag extraction + summarization)
      - python-docx integration for text extraction
      - Status workflow: PENDING → PROCESSING → COMPLETED/FAILED
      - API routes: /documents/upload, /documents, /documents/{id}, /documents/{id}/process, /documents/{id}/import
      
      Frontend:
      - New page: DocumentsPage (route: /app/documents)
      - Components: UploadArea, DocumentList, DocumentCard, PreviewPanel
      - Hooks: useDocuments, useDocumentUpload, useDocumentProcess, useDocumentImport
      - AI enhancement panel with toggles (extract tags, generate summary)
      - Drag-and-drop file upload with validation
      - Status badges, tag display, content preview
      - Workspace isolation support
      - Full i18n support (en/vi)
      
      Files changed:
      - Backend: 15+ files (new: api/documents/, common/sqlite_client.py updates, schemas, services, config)
      - Frontend: 20+ files (new: components/Documents/, hooks/useDocuments.ts, docxService.ts, pages/DocumentsPage.tsx)
      - Tests: test_inbox.py (5 tests passing)
      - Plan docs: epic-8-inbound-webhooks-crm-inbox-done.md, docx-frontend-detailed-plan.md
      
      🤖 Generated with Claude Code
      a67917c3
  3. 18 Apr, 2026 2 commits
  4. 17 Apr, 2026 1 commit
  5. 16 Apr, 2026 4 commits
    • Hoanganhvu123's avatar
    • Hoanganhvu123's avatar
      feat: port BrightBean Studio social management suite into Canifa pipeline · 853b7504
      Hoanganhvu123 authored
      Phase 2 - AI Content Pipeline & Social Management:
      
      == Backend Modules ==
      - common/notification/: Notification engine (in-app, email, webhook, Slack, HMAC-signed)
      - common/social/approval_gate.py: Editorial state machine (draft -> review -> approved -> published)
      - common/social/post_queue.py: Post queue + calendar slot scheduling
      - common/social/scheduler.py: Background publish engine (parallel, exponential backoff)
      - common/media/image_processor.py: Media processor (Pillow resize, ffmpeg thumbnails)
      - common/content_templates.py: 30+ fashion content templates + Vietnamese RSS feeds (ported from BrightBean builtin_templates.py 968L)
      
      == API Routes ==
      - api/notification_route.py: Notification CRUD + test endpoints
      - api/content_approval_route.py: Approval workflow (approve/reject/submit)
      - api/queue_route.py: Queue + calendar + posting slots
      - api/media_route.py: Media library (upload/resize/delete)
      - api/templates_route.py: Content templates + RSS feed catalog
      - api/social_inbox_route.py: Unified social inbox (FB/IG/TikTok messages)
      
      == Static Dashboards (zero-build) ==
      - static/content-approval/index.html: Approval queue UI
      - static/content-calendar/index.html: Weekly calendar + queue sidebar
      - static/media-library/index.html: Drag-drop upload + asset grid + platform resize
      - static/social-inbox/index.html: 3-column inbox (filters/list/detail) + reply/note composer
      - static/content-composer/index.html: Post editor + templates + AI enhancement + schedule
      
      == Server ==
      - server.py: Registered all new routers + publish engine autostart + dashboard links in banner
      853b7504
    • Vũ Hoàng Anh's avatar
    • Vũ Hoàng Anh's avatar
  6. 14 Apr, 2026 1 commit
  7. 13 Apr, 2026 1 commit
  8. 10 Apr, 2026 1 commit
    • Vũ Hoàng Anh's avatar
      feat: add AI Diagram Agent - 2-agent LangGraph with Mermaid.js · 68319fd8
      Vũ Hoàng Anh authored
      - New diagram agent: Planner generates Mermaid code, Responder explains
      - FastAPI route: /api/diagram/chat + /clear with Redis session history
      - Frontend: split-pane UI with canvas pan/zoom (scroll wheel + drag)
      - Auto-fit diagram to view, grid background, PNG export
      - Prompt enforces ASCII syntax labels for Mermaid compatibility
      - Planner LLM max_tokens=4000 for complex diagram generation
      - Supports: flowchart, sequence, class, ER, gantt, mindmap, pie chart
      68319fd8
  9. 09 Apr, 2026 1 commit
  10. 04 Apr, 2026 4 commits
  11. 03 Apr, 2026 1 commit
  12. 27 Mar, 2026 2 commits
  13. 25 Mar, 2026 1 commit
  14. 19 Mar, 2026 1 commit
  15. 18 Mar, 2026 1 commit
  16. 17 Mar, 2026 2 commits
  17. 13 Mar, 2026 1 commit
  18. 09 Mar, 2026 1 commit