Hannah_Bagga
f6d1d91fc6
AI Chat page looks better. Caitlin is my witness
2026-06-29 14:51:59 +02:00
TroodonEnjoyer
39fb39db12
Fixed the login again?
2026-06-26 22:30:54 +02:00
Ace
cd37d5a987
Merge branch 'main' of https://git.coastit.co.za/caitlin/CRM_ENVR
2026-06-26 21:36:17 +02:00
Ace
d138c60203
Fixing calander
2026-06-26 21:36:09 +02:00
Hannah_Bagga
fa97abb5b6
Merge branch 'main' of https://git.coastit.co.za/caitlin/CRM_ENVR
2026-06-26 20:59:21 +02:00
Hannah_Bagga
3998285fd5
Fixed the gif picker just need to add in gifs
2026-06-26 20:58:57 +02:00
Hannah_Bagga
4c1db42873
Chat page fits whole screen now
2026-06-26 20:46:20 +02:00
Hannah_Bagga
c428435f2f
Removed video call, fixed logo, CRM changes with color theme
2026-06-26 20:30:46 +02:00
TroodonEnjoyer
1b5f244f28
Login possible fix and something else I can't remember
2026-06-26 19:39:45 +02:00
Hannah_Bagga
a876f2d769
Merge branch 'main' of https://git.coastit.co.za/caitlin/CRM_ENVR
2026-06-26 19:23:02 +02:00
Hannah_Bagga
214c4a1852
Spiderman Theme Fixed
2026-06-26 19:22:54 +02:00
Ace
bf6fbe3ee4
Merge branch 'main' of https://git.coastit.co.za/caitlin/CRM_ENVR
2026-06-26 18:47:54 +02:00
Ace
d6534eb338
Commit Test
2026-06-26 18:47:39 +02:00
Ace
a08f23ab0f
Fixed the messages, chats, voice note, voice call, stickers, gifs, emoji's , file attachments
2026-06-26 18:47:35 +02:00
TroodonEnjoyer
bccba1434b
ATTEMPTED to fix my databse stuff, security etc, and a Issue Cait had
2026-06-26 18:37:28 +02:00
caitlin
fe09d15359
Fixed the route issue
2026-06-26 17:59:40 +02:00
caitlin
2b8f2e7b59
Resolve merge conflicts in chats/page.tsx
2026-06-26 17:16:18 +02:00
caitlin
fb99b49686
Fix for route
2026-06-26 16:53:37 +02:00
caitlin
75746f4cab
Merge remote-tracking branch 'origin/main' into master
2026-06-26 16:47:37 +02:00
JCBSComputer
a022e3cca3
Merge origin/main into local (conflict resolved in chats/page.tsx)
2026-06-26 16:43:44 +02:00
JCBSComputer
68483e9b60
Calender & Linked Added
2026-06-26 16:38:18 +02:00
Rene
77b246b565
Attachment fixed
2026-06-26 16:35:31 +02:00
Ace
bd581739f9
Fuckups fixed
2026-06-26 16:30:48 +02:00
caitlin
ec8207fca7
Update login page styling and sidebar collapse logo
2026-06-26 16:22:28 +02:00
Hannah_Bagga
66ae711cf0
Merge branch 'main' of https://git.coastit.co.za/caitlin/CRM_ENVR
...
# Conflicts:
# src/app/(dashboard)/chats/page.tsx
2026-06-26 15:20:42 +02:00
Hannah_Bagga
827b0598e6
voice note and sticker pack and gifs
2026-06-26 15:18:09 +02:00
Chariah
7a76841309
Current state
2026-06-26 14:31:38 +02:00
Hannah_Bagga
82e8ce8ae9
Merge branch 'main' of https://git.coastit.co.za/caitlin/CRM_ENVR
2026-06-26 11:21:45 +02:00
Hannah_Bagga
343f814569
npm
2026-06-26 11:21:10 +02:00
TroodonEnjoyer
20a1744e7f
Security architecture upgrade + bug reporting system
...
Database & Security:
- Dual password storage: bcrypt (auth) + pgcrypto AES-256 (recovery)
- SUPER_ADMIN master key recovery system (master_keys table)
- Row Level Security on customers, leads, opportunities, communications, tasks
- SALES_USER: own records only
- ADMIN: all records
- SUPER_ADMIN: all records (bypasses RLS)
- Immutable audit logs (DELETE/UPDATE blocked by triggers)
- New audit event types: BUG_CREATED, BUG_UPDATED, BUG_ASSIGNED,
BUG_RESOLVED, LOGIN, LOGOUT
- Database export logging (database_export_logs table)
- Backup logging with pg_dump script (scripts/backup.ps1)
- Fixed audit constraint to allow new action types
Authentication:
- Random JWT secret generated on every dev server start
(invalidates all prior sessions after restart)
- Session cookie is now session-only (no maxAge)
- setSessionContext() for RLS integration
Bug Reporting System:
- bug_reports table with RLS (insert by all, select/update by admin only)
- POST /api/bug-reports (any authenticated user)
- GET /api/bug-reports (admin/super_admin only)
- PATCH /api/bug-reports/:id (admin/super_admin only)
- POST /api/auth/recover (super_admin password recovery)
- Audit logging for all bug report actions
Other:
- Added 'dev' to UserRole type
- Bug report modal UI with severity selector
- Added bug report button to topbar
2026-06-26 11:13:28 +02:00
Hannah_Bagga
1465016b56
.....
2026-06-25 15:15:35 +02:00
Ace
1f032dc098
Added rene changes
2026-06-24 18:43:38 +02:00
Ace
b245b352e7
Updated Ai to pull from facebook, added a loading SVG to make user wait for server too boot up, and added commands that can be used to start off the AI exstraction
2026-06-24 17:17:38 +02:00
Ace
b2a2f7e40f
Ahh fix bloating size upload was to large
2026-06-24 09:54:28 +02:00
Ace
e872ab9736
feat: Enhance dashboard UI with Spider-Man theme
...
- Added Spider-Man themed watermarks and gradients to the dashboard components.
- Updated color scheme for various dashboard elements to match the Spider-Man theme.
- Introduced new styles and animations for loading states and visual elements.
- Refactored existing components to incorporate the new design elements, including charts and cards.
- Updated global styles to support the new theme and added custom fonts.
- Adjusted layout and responsiveness for better user experience.
2026-06-23 20:24:27 +02:00
Hannah_Bagga
97e8da3bfd
Merge remote changes from origin/main
2026-06-23 19:54:00 +02:00
Hannah_Bagga
3a927b25b6
.
2026-06-23 19:12:10 +02:00
Hannah_Bagga
b4be369f25
no clue
2026-06-23 19:11:42 +02:00
Hannah_Bagga
e78503b5c1
Spider-man theme???
2026-06-23 19:07:40 +02:00
Ace
c355d0e2e5
Refactor code structure for improved readability and maintainability
2026-06-23 14:25:39 +02:00
Ace
ff56cea4b8
feat: add Facebook account tracking and management
...
- Introduced new migration for `facebook_accounts` and `facebook_scrape_logs` tables.
- Updated the scraping logic to handle Facebook accounts, including success and failure tracking.
- Implemented API endpoints for managing Facebook accounts and their scrape logs.
- Enhanced user permissions to restrict access to Facebook account management to admins and super admins.
- Added a dialog component for displaying and managing Facebook accounts in the UI.
- Updated lead fetching logic to include user role checks for assignment and access.
2026-06-23 14:18:18 +02:00
caitlin
cc56fe6286
Merge branch 'main' of https://git.coastit.co.za/caitlin/CRM_ENVR
2026-06-23 10:01:52 +02:00
caitlin
491ff52b90
Fixed notifications, It shows when you get get a
...
message and from who
2026-06-23 09:59:53 +02:00
Ace
1adc4806fa
Files Changed
...
Security Fixes
File Change
.env.local Placeholder JWT secret (rotate to random value: openssl rand -base64 64)
src/middleware.ts Removed /api/auth/me bypass; API routes return JSON 401 (not 302 redirect)
src/lib/auth.ts sameSite: "lax" → "strict" (create + destroy cookie); SVG name chars are pre-computed (no injection)
src/lib/avatar.ts Added sanitizeName() — strips non-alphanumeric/safe chars, max 50 chars
src/app/api/users/route.ts POST restricted to super_admin; validates role against whitelist ["sales","admin","super_admin","dev"]; validates active defaults to true
src/app/api/users/[id]/route.ts DELETE restricted to super_admin; blocks self-deletion
src/app/api/leads/[id]/route.ts GET: non-admin users filtered by assigned_to; PATCH: ownership check + score validated 0-100 range
src/app/api/leads/route.ts DELETE: ownership + admin check; GET: ownership filter for non-admin users
src/app/api/conversations/[id]/messages/route.ts GET/POST: verify user is a conversation_participant before access
rust-ai/src/main.rs CORS: AllowOrigin::list(["localhost:3006", "127.0.0.1:3006"]) (was Any)
Performance Fixes
File Change
src/app/api/leads/route.ts Added limit (default 50), offset query params; ownership filter in SQL
src/app/api/users/route.ts Added limit (default 50), offset query params
src/app/api/conversations/route.ts Added LIMIT 50
src/app/api/leads/[id]/notes/route.ts Added limit (default 50), offset query params
src/app/api/conversations/[id]/messages/route.ts Added limit (default 100), offset, before query params
src/app/(dashboard)/chats/page.tsx Pruned to 5 cached conversations; useMemo wraps messages/conversation/filteredConversations; otherParticipant moved outside component; added 10MB file size limit; recordingChunksRef cleared on discard
src/app/(dashboard)/leads/[id]/page.tsx Optimistic status update rolls back on fetch failure
database/migrations/003_chat.sql Added composite index idx_messages_conversation_created on (conversation_id, created_at DESC)
Code Quality Fixes
File Change
src/lib/ai.ts Removed dead getInstructions()/updateInstructions() (called nonexistent /ai/instructions)
src/lib/auth.ts bcrypt.hash(password, 12) — kept (acceptable, OWASP-recommended)
src/app/login/page.tsx "Forgot password?" button now shows alert to contact admin (was no-op)
src/components/users/user-form-dialog.tsx Password min 6 → 8 chars
26 silent catch {} blocks across 16 files (see below) Added console.warn("...") context messages
2026-06-23 09:45:30 +02:00
caitlin
ba947cea87
I fixed the lightmode on the sidebar and added
...
more colour themes. I fixed the settings buttons.
2026-06-22 16:26:45 +02:00
caitlin
c5766d1624
Fixed notifications button
2026-06-22 15:39:55 +02:00
Ace
be5808f3fc
AI somewhat added
2026-06-22 12:37:38 +02:00
Ace
571af27f50
added update from code pull new changes now
2026-06-19 10:19:57 +02:00
William_Britz
e5726fdbb2
Merge branch 'main' of https://git.coastit.co.za/caitlin/CRM_ENVR
2026-06-19 09:53:52 +02:00
William_Britz
ebc29c47a4
ANYTHING
2026-06-19 09:52:24 +02:00