Commit Graph

236 Commits

Author SHA1 Message Date
JCBSComputer 4035f5fad4 Fixed Resources, Added Error Logging/Messages, Fixed Pumkin Spice Background
Build & Auto-Repair / build (push) Has been cancelled
2026-07-06 09:13:45 +02:00
JCBSComputer dbec6c0851 Target Job AI Fixed. Now works and find leads
Build & Auto-Repair / build (push) Has been cancelled
2026-07-03 16:09:50 +02:00
JCBSComputer cfc69d47d3 Fixed AI. Optimized. Colour/Theme fixed. Added Forgot Password. Cuba theme — Added to client portal settings. Topbar search. Search, loading states
Build & Auto-Repair / build (push) Has been cancelled
2026-07-03 11:46:37 +02:00
JCBSComputer 51ec96ce7b Merge remote-tracking branch 'caitlin/main' into main
Build & Auto-Repair / build (push) Has been cancelled
- Adopt color theme management in website-theme-provider
- FOUC-prevention inline script in layout.tsx
- Facebook scraper search in ai-assistant page
- addAssistantMessage + timestamp cleanup in ai-chat
- New scripts (run-migrations.mjs), browser-use-service, job-selector
- Keep deleted-by-theirs files: campaigns, projects, proposals, client portal
2026-07-03 11:07:42 +02:00
JCBSComputer 7820896a35 Luminous added to Client Portal
Build & Auto-Repair / build (push) Has been cancelled
2026-07-03 11:01:25 +02:00
JCBSComputer a446a19760 Fixed Themes colors
Build & Auto-Repair / build (push) Has been cancelled
2026-07-03 10:39:04 +02:00
JCBSComputer dd56014318 Optimization FIxed/ Fixed Olama to run on startup
Build & Auto-Repair / build (push) Has been cancelled
2026-07-03 10:12:09 +02:00
JCBSComputer 9df7475f35 Fixed Black & White Theme. Text is more readable
Build & Auto-Repair / build (push) Has been cancelled
2026-07-02 17:15:25 +02:00
Rene 12115644e9 Fix Cuba theme: use body::before background with Malecón photo + transparency overrides
Build & Auto-Repair / build (push) Has been cancelled
2026-07-02 17:14:57 +02:00
Rene d1c62d940f Merge remote + add Cuba theme with classic car at golden hour
Build & Auto-Repair / build (push) Has been cancelled
2026-07-02 17:01:12 +02:00
Rene a7f3058668 Add Cuba theme: classic car on playa at golden hour
- New cuba-theme.css with warm sunset HSL palette (oranges, turquoise,
  golden hour tones) and classic Cuban car background image
- cuba-tokens.json with full color definitions and chart config
- Registered in themeClasses provider, layout.tsx import, and settings UI
2026-07-02 16:58:46 +02:00
JCBSComputer a1fef1d8bb Fixed Forest Theme
Build & Auto-Repair / build (push) Has been cancelled
2026-07-02 16:45:11 +02:00
Uwais 5d315bed22 feat: add forest minimal theme with light/dark botanical SVG backgrounds
Build & Auto-Repair / build (push) Has been cancelled
2026-07-02 16:34:47 +02:00
JCBSComputer abcef070c3 Pinned conversations no longer move on click or new messages
Build & Auto-Repair / build (push) Has been cancelled
2026-07-02 16:13:49 +02:00
JCBSComputer 211d026fb8 Add conversation pinning: pinned chats stay at top of sidebar
Build & Auto-Repair / build (push) Has been cancelled
2026-07-02 16:09:07 +02:00
caitlin dd6767980a search button theme fix in ai assistant 2026-07-02 16:04:53 +02:00
JCBSComputer 4c732c850f Fix: missing DB columns (ml_score, capacity_hours) + CSS escape fix + SQL error logging
Build & Auto-Repair / build (push) Has been cancelled
2026-07-02 15:58:40 +02:00
Yukon-Boop aabdbf9b91 Luminous theme (PATCH)
Build & Auto-Repair / build (push) Has been cancelled
2026-07-02 14:56:12 +02:00
Yukon-Boop fc099c6d00 New Theme (Luminous)
Build & Auto-Repair / build (push) Has been cancelled
2026-07-02 14:27:27 +02:00
Ace c1c4afadbb Merge branch 'main' of https://git.coastit.co.za/caitlin/CRM_ENVR 2026-07-02 13:26:58 +02:00
Ace 37679a7a60 Added Ai load fix 2026-07-02 13:26:56 +02:00
user 0a4988156f B/W theme: distinguishable chart greys, hover glow, avatar PFP desaturation
Build & Auto-Repair / build (push) Has been cancelled
2026-07-02 10:12:18 +02:00
Hannah_Bagga c0cb715ced ai assistant page fixed 2026-07-01 21:07:42 +02:00
JCBSComputer 53ae0944be Added Delete Files for Proposals & Quotes
Build & Auto-Repair / build (push) Has been cancelled
2026-07-01 16:54:39 +02:00
Jaundre 956e2697c9 Update README.md
Build & Auto-Repair / build (push) Has been cancelled
2026-07-01 16:38:43 +02:00
JCBSComputer 4a33ca0368 Fixed AI Auto Launch, Fixed Client Login not working
Build & Auto-Repair / build (push) Has been cancelled
2026-07-01 16:36:48 +02:00
Rene 7606af04ab Fix splash page /status endpoint for removed scraper service
Build & Auto-Repair / build (push) Has been cancelled
- Remove scraper health check (port 3008) since dev:browser-use
  was removed from dev:start; always report scraper as ready
- Add checkPort helper with localhost fallback for frontend
  check to handle Windows IPv6/IPv4 resolution issues
2026-07-01 16:10:38 +02:00
Rene 26319281d4 Fix splash page loop when scraper service is unavailable
Build & Auto-Repair / build (push) Has been cancelled
Skip browser/Facebook detection in /setup/status when port 3008
is not reachable, so first_run only depends on env + Ollama.
This prevents the setup wizard from showing endlessly when
browser-use service is not running.
2026-07-01 16:05:22 +02:00
Rene 183d6c629d Remove crash-prone dev:repair and dev:browser-use from dev:start
Build & Auto-Repair / build (push) Has been cancelled
These two processes exit with code 1 (Python not found / watch mode crash)
and are non-essential for the CRM. The core services needed are:
AI server (3001), Signaling (3007), and Next.js (3006).
2026-07-01 15:55:18 +02:00
JCBSComputer 6f622b6329 Add client portal themes (Cyberpunk etc.), settings page, semantic Tailwind classes
Build & Auto-Repair / build (push) Has been cancelled
2026-07-01 15:47:44 +02:00
Uwais ef2e12ec5e fix: force high-contrast user name text in resource planning cards
Build & Auto-Repair / build (push) Has been cancelled
2026-07-01 15:45:29 +02:00
Rene a02f013f38 Replace native selects with shadcn Select across all pages
Build & Auto-Repair / build (push) Has been cancelled
- lead-scoring-settings.tsx: Feature type dropdown
- bug-report-modal.tsx: Severity dropdown
- client-portal/support/page.tsx: Severity dropdown
- time-tracking/page.tsx: Timer project + manual entry project dropdowns
- proposals/new/page.tsx: Lead + customer dropdowns
2026-07-01 15:39:00 +02:00
Rene 2979078edd Fix customer/owner dropdown readability in New Project dialog
Build & Auto-Repair / build (push) Has been cancelled
Replace native <select> elements with shadcn Select component
so dropdown options use the theme's styled popover colors
2026-07-01 15:32:31 +02:00
Rene 3fe32d923e Add descriptive error messages across all API routes and toast notifications on client pages
Build & Auto-Repair / build (push) Has been cancelled
- 86 catch blocks in 49 API route files now return the actual error message via error.message
- 14 campaign/lead/config catch blocks that lacked console.error now log errors
- 17 client pages/components now show toast.error notifications on API failures
- Silent .catch(() => {}) and finally-only try blocks now surface errors to users
2026-07-01 15:20:30 +02:00
Hannah_Bagga 1269f6cce8 Revert "Removed quick tips, recent prompts Messages today, Tokens used"
This reverts commit 370f935cbb.
2026-07-01 14:36:47 +02:00
Uwais 727dcddf37 Update cyberpunk theme: light mode overrides synced to dark mode colors
Build & Auto-Repair / build (push) Has been cancelled
2026-07-01 14:34:59 +02:00
Hannah_Bagga 370f935cbb Removed quick tips, recent prompts Messages today, Tokens used 2026-07-01 14:24:32 +02:00
JCBSComputer 9bfd4e47ee Added Client Portal(Working)
Build & Auto-Repair / build (push) Has been cancelled
2026-07-01 13:34:58 +02:00
Rene 00bda54695 Add Lead Scoring ML + Email Sequences/Drip Campaigns
Build & Auto-Repair / build (push) Has been cancelled
Lead Scoring:
- lead_scoring_config table with configurable feature weights
- Scoring engine: boolean, keyword, and range-based feature scoring
- Settings tab: configure scoring features, run scoring on all leads
- ml_score + ml_score_details columns on leads table
- API: /api/leads/score, /api/leads/score/config
- mlScore returned in lead detail and list APIs

Email Campaigns:
- email_campaigns, email_campaign_steps, subscribers, logs tables
- Campaign list page with status badges and subscriber counts
- Campaign detail with step management, subscriber search/add, send
- Drip logic: steps with configurable delay days, template variables
- Variable replacement ({{name}}, {{email}}) in email bodies
- Sidebar: Campaigns nav item
2026-07-01 13:33:24 +02:00
Rene 963ea1d1b8 Revert "Add CI/CD pipeline (Gitea Actions)"
Build & Auto-Repair / build (push) Has been cancelled
This reverts commit eef290a20a.
2026-07-01 13:20:06 +02:00
Rene eef290a20a Add CI/CD pipeline (Gitea Actions)
Build & Auto-Repair / build (push) Has been cancelled
CI / build (push) Has been cancelled
Runs on push/PR to main: npm ci -> tsc --noEmit -> next build
Also fixes eslint flat config imports and adds typecheck script
2026-07-01 13:17:33 +02:00
Ace faf9dd551a Merge branch 'main' of https://git.coastit.co.za/caitlin/CRM_ENVR 2026-07-01 13:16:59 +02:00
Ace f67d9377a0 trying to fix AI chat 2026-07-01 13:16:57 +02:00
Hannah_Bagga 38fb3a47a8 Merge branch 'main' of https://git.coastit.co.za/caitlin/CRM_ENVR 2026-07-01 13:14:35 +02:00
Hannah_Bagga bc422edcf7 colour scheme problem fixed 2026-07-01 13:13:31 +02:00
Rene ef75d16bf4 Add Resource Planning: team capacity, utilisation, workload overview
Build & Auto-Repair / build (push) Has been cancelled
- Migration 024: adds capacity_hours column to users (default 40h/week)
- /api/resource-planning: aggregates hours from time_entries, open tasks,
  active projects per user with utilisation calculations
- /resource-planning page: overview stats cards, per-member capacity bars
  with colour-coded status (green=available, yellow=busy, orange=near
  capacity, red=overloaded)
- Sidebar: new Resources nav item (BarChart3 icon)
2026-07-01 13:12:48 +02:00
TroodonEnjoyer da5f8360bc Merge branch 'main' of https://git.coastit.co.za/caitlin/CRM_ENVR 2026-07-01 13:07:32 +02:00
TroodonEnjoyer 37af1febcc Automate DB migrations + fix audit trigger + drop forced password change
- scripts/run-migrations.mjs: auto-applies unapplied .sql files on
  npm run dev/setup via psql, tracks state in _migrations table
- 020_fixes.sql: sets password_change_required=FALSE for all users,
  fixes audit_password_change UUID cast, re-enables trigger
- package.json: hook migrations into dev:precheck
- setup.mjs: hook into npm run setup
- run_all.sql: add 020_fixes.sql to migration order
2026-07-01 13:07:15 +02:00
Rene 9f4dd4fc6b Revert "Add CI/CD pipeline (Gitea Actions) and fix eslint flat config"
Build & Auto-Repair / build (push) Has been cancelled
This reverts commit bcd2d73e70.
2026-07-01 13:06:02 +02:00
Rene bcd2d73e70 Add CI/CD pipeline (Gitea Actions) and fix eslint flat config
Build & Auto-Repair / build (push) Has been cancelled
CI / build (push) Has been cancelled
- .gitea/workflows/ci.yml: lint, typecheck, build on push/PR
- package.json: add typecheck script (tsc --noEmit)
- eslint.config.mjs: add .js extensions for flat config module resolution
2026-07-01 13:04:55 +02:00