Skip to content

fsafey/atomic-crm

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

521 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Scholar Admin Hub

Beautiful admin dashboard with multiple themes, built on Atomic CRM

🎨 4 Theme Presets β€’ πŸš€ Full CRM Features β€’ πŸ“Š Supabase Backend β€’ πŸ“± Mobile Responsive


🎯 Project Overview

Scholar Admin Hub integrates the best of two worlds:

  • Atomic CRM - Production-ready React SPA with full CRM capabilities
  • arhamkhnz Dashboard - Beautiful themes and modern UI components

Result: A powerful admin dashboard with Islamic-friendly theming (Tangerine) and enterprise CRM features.


🎨 Available Themes

  1. Default (Neutral) - Clean, professional grayscale
  2. Tangerine ⭐ - Warm orange/gold (Islamic aesthetic)
  3. Brutalist - High contrast, bold borders
  4. Soft Pop - Gentle pastels, friendly

πŸš€ Quick Start

# Navigate to project
cd /Users/farieds/Project/standalone-search/scholar-admin-hub

# Start in demo mode (no backend needed)
npm run dev:demo
# Opens on http://localhost:5173/

# OR start with Supabase (full features)
make start  # Starts Supabase + frontend

πŸ“‹ Current Status

βœ… Phase 1 Complete

  • Project created from Atomic CRM base
  • Zustand state management installed
  • Theme infrastructure set up
  • 3 theme presets copied (Tangerine, Brutalist, Soft Pop)
  • Theme store created with persistence
  • Theme provider component created
  • CSS imports configured
  • CRM stub tables created - React Admin loads without 404 errors
  • Scholar dashboard functional - /scholar route works independently

🚧 Phase 2: Next Steps

  • Create ThemeSwitcher component β†’ START HERE
  • Integrate ThemeProvider into app
  • Add theme switcher to layout header
  • Test all 4 themes across CRM views

πŸ“– See HANDOFF.md for complete next steps and context


πŸ—„οΈ Database Architecture

CRM Stub Tables (Future-Ready)

Status: Lightweight placeholder tables created to prevent React Admin 404 errors.

Tables: deals, contacts, companies, contactNotes, dealNotes, tasks, sales, tags Views: contacts_summary, companies_summary RLS: Enabled with public access (stub environment) Migration: 20251019_create_crm_stub_tables_for_scholar_mode.sql

Why stub tables?

  • Scholar dashboard (/scholar) only needs question_submissions table
  • CRM code preserved for future activation
  • React Admin dataProvider requires all resource tables to exist
  • Stub tables = empty schema with minimal overhead

When ready for full CRM:

  1. Run full CRM migration to extend stub tables with complete schema
  2. Add proper RLS policies for multi-tenancy
  3. Seed sample data
  4. Enable CRM routes in navigation

πŸ“š Key Documentation

Document Purpose
HANDOFF.md ⭐ Current status, next steps, complete context for next agent
INTEGRATION_PLAN.md Full 4-day implementation roadmap
README.md This file - project overview

πŸ› οΈ Development Commands

# Development
npm run dev:demo        # Demo mode with fake data
npm run dev             # Full mode with Supabase

# Building
npm run build           # Production build
npm run build:demo      # Demo build

# Testing
npm test                # Run tests
npm run typecheck       # TypeScript check

# Linting
npm run lint:check      # Check linting
npm run lint:apply      # Fix linting issues

πŸ“‚ Key Files & Directories

scholar-admin-hub/
β”œβ”€β”€ HANDOFF.md                   # ⭐ START HERE - Session handoff
β”œβ”€β”€ INTEGRATION_PLAN.md          # Full implementation roadmap
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ stores/
β”‚   β”‚   └── theme-store.ts       # βœ… Theme state (Zustand)
β”‚   β”œβ”€β”€ components/theme/
β”‚   β”‚   β”œβ”€β”€ ThemeProvider.tsx    # βœ… Theme context provider
β”‚   β”‚   └── ThemeSwitcher.tsx    # ❌ TODO - Next task
β”‚   β”œβ”€β”€ styles/presets/
β”‚   β”‚   β”œβ”€β”€ tangerine.css        # βœ… Warm Islamic theme
β”‚   β”‚   β”œβ”€β”€ brutalist.css        # βœ… High contrast theme
β”‚   β”‚   └── soft-pop.css         # βœ… Soft pastel theme
β”‚   └── index.css                # βœ… Modified - Theme imports added
└── package.json                 # βœ… Modified - Zustand added

🎯 Next Session: What to Do

Priority 1: Create ThemeSwitcher Component (20 minutes)

  1. Create file: src/components/theme/ThemeSwitcher.tsx
  2. Copy code from HANDOFF.md β†’ Task 1 section
  3. Verify it compiles without errors

Priority 2: Integrate ThemeProvider (15 minutes)

  1. Modify src/main.tsx
  2. Wrap <App /> with <ThemeProvider>
  3. Start dev server and verify no errors

Priority 3: Add to Layout (20 minutes)

  1. Find src/atomic-crm/layout/Layout.tsx
  2. Import ThemeSwitcher
  3. Add to header (top-right)

Priority 4: Test (30 minutes)

  1. Start dev server: npm run dev:demo
  2. Click theme switcher
  3. Verify all 4 themes work
  4. Check persistence (refresh page)

Total Time: ~1.5 hours to fully working theme system


πŸ“Š Tech Stack

  • React 19 + Vite 7
  • React Router 7
  • Zustand (theme state)
  • React Admin (CRM features)
  • shadcn/ui + Tailwind CSS 4
  • Supabase (backend)
  • TypeScript

πŸ”— Reference Projects

Source Projects (for reference only):

  • Atomic CRM: /Users/farieds/Project/admin-dashboard-references/atomic-crm
  • arhamkhnz Dashboard: /Users/farieds/Project/admin-dashboard-references/arhamkhnz-dashboard

Documentation:

  • Integration Strategy: /Users/farieds/Project/admin-dashboard-references/INTEGRATION_STRATEGY.md
  • Setup Guide: /Users/farieds/Project/admin-dashboard-references/SETUP_COMPLETE.md

πŸ†˜ Need Help?

  1. Read HANDOFF.md - Complete session context
  2. Check INTEGRATION_PLAN.md - Detailed roadmap
  3. Review Atomic CRM docs - ./doc/ directory
  4. Check shadcn docs - https://ui.shadcn.com

Status: Phase 1 Complete βœ… Next: Create ThemeSwitcher component Updated: October 2, 2025 Estimated Time to Working Theme System: 1-2 hours

About

A full-featured CRM built with React, shadcn/ui, and Supabase.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • TypeScript 96.7%
  • CSS 1.8%
  • Other 1.5%