How juma1-hub/crystal-investment- works
Crystal Investments is a frontend investment-company site with an investor portal and a browser-storage admin workspace. The main workflow is an administrator reviewing contribution and withdrawal records, recording decisions and allocations, and viewing analytics; investors use account pages for profile, investment, and referral services. Public pages describe the firm and its opportunities. The README emphasizes that records and role changes are local prototype data, not centrally enforced financial operations. Some capabilities are documented but their implementation details were not sampled, so those links are omitted.
Main entry points: AdminConsole.tsx Admin workspace · supabase.ts Supabase client · page.tsx Investor routes · InvestorPortal.tsx Investor portal
Components 20
Public website
- Home page
app/page.tsx - Opportunities
app/opportunities/page.tsx - Company pages
app/about/page.tsx - Editable site text
components/SiteContentText.tsx
Investor services
- Investor routes
app/investor/page.tsx - Investor portal
components/InvestorPortal.tsx - Live overview
components/InvestorLiveOverview.tsx - Referral panel
components/InvestorReferralPanel.tsx
Admin workspace
- Admin route
app/admin/page.tsx - Admin workspace
components/AdminConsole.tsx - Portfolio allocations
components/AdminPortfolioManager.tsx - Site settings
components/AdminSiteManager.tsx - Market conditions
components/MarketConditionsAdmin.tsx - Referral commissions
components/AdminReferralManager.tsx
Data services
- Browser localStorage
- Supabase client
lib/supabase.ts
Other components
- Site visitor
- Investor
- Administrator
- Supabase service
Connections 22
- Site visitor → Home page: browses
app/page.tsx - Site visitor → Opportunities: explores
app/opportunities/page.tsx - Home page → Editable site text: renders
app/page.tsx - Opportunities → Editable site text: renders
app/opportunities/page.tsx - Investor → Investor routes: opens
app/investor/page.tsx - Investor routes → Investor portal: renders
app/investor/page.tsx - Investor routes → Live overview: renders
app/investor/page.tsx - Investor portal → Referral panel: renders
components/InvestorPortal.tsx - Investor portal → Supabase client: uses
components/InvestorPortal.tsx - Live overview → Supabase client: uses
components/InvestorLiveOverview.tsx - Referral panel → Supabase client: uses
components/InvestorReferralPanel.tsx - Administrator → Admin route: opens
app/admin/page.tsx - Admin route → Admin workspace: renders
app/admin/page.tsx - Admin workspace → Portfolio allocations: renders
components/AdminConsole.tsx - Admin workspace → Site settings: renders
components/AdminConsole.tsx - Admin workspace → Market conditions: renders
components/AdminConsole.tsx - Admin workspace → Referral commissions: renders
components/AdminConsole.tsx - Admin workspace → Browser localStorage: reads and writes
components/AdminConsole.tsx - Portfolio allocations → Browser localStorage: reads and writes
components/AdminPortfolioManager.tsx - Site settings → Browser localStorage: reads and writes
components/AdminSiteManager.tsx - Referral commissions → Supabase client: calls
components/AdminReferralManager.tsx - Supabase client → Supabase service: connects
lib/supabase.ts