How nandani-bytecode/shared-notes works
StudySpace is a student-facing platform for finding and discussing community study materials, then organizing personal references to them in a private workspace. The main flow is community discovery → resource viewing/discussion → add a reference → personalize and organize it. The README documents these product capabilities; the graph also reflects routes and dependencies visible in the sampled source index. DataContext and several feature components were only partially excerpted, so uncertain implementation-level connections are omitted.
Main entry points: App.tsx Routes and access · DataContext.tsx Study and workspace state · WorkspacePage.tsx Personal workspace · CommunityDetailPage.tsx Community resources
Components 21
Application and identity
- Routes and access
src/App.tsx - Authentication
src/context/AuthContext.tsx - Application shell
src/components/layout/Layout.tsx
Communities and materials
- Community discovery
src/pages/CommunitiesPage.tsx - Community resources
src/pages/CommunityDetailPage.tsx - Community creation and joining
src/components/communities/CreateCommunityModal.tsx - Resource and announcement actions
src/components/communities/UploadResourceModal.tsx - Subject browsing
src/pages/SubjectDetailPage.tsx
Study experience
- Study dashboard
src/pages/DashboardPage.tsx - Resource route
src/pages/ResourceViewerPage.tsx - Resource viewer
src/components/viewer/ResourceViewerModal.tsx - Discussion feed
src/pages/DiscussionsPage.tsx - Global search
src/components/search/GlobalSearchModal.tsx - PDF generation
src/utils/pdfGenerator.ts
Personal workspace
- Personal workspace
src/pages/WorkspacePage.tsx - Workspace controls
src/components/workspace/PersonalRenameModal.tsx - Workspace resource cards
src/components/workspace/ResourceCard.tsx
Application state
- Study and workspace state
src/context/DataContext.tsx - Demo study data
src/data/mockData.ts - Browser local storage
Other components
- Student
Connections 29
- Student → Routes and access: uses
README.md - Routes and access → Authentication: provides
src/App.tsx - Routes and access → Study and workspace state: provides
src/App.tsx - Routes and access → Application shell: routes through
src/App.tsx - Routes and access → Study dashboard: routes to
src/App.tsx - Routes and access → Community discovery: routes to
src/App.tsx - Routes and access → Community resources: routes to
src/App.tsx - Routes and access → Subject browsing: routes to
src/App.tsx - Routes and access → Resource route: routes to
src/App.tsx - Routes and access → Discussion feed: routes to
src/App.tsx - Routes and access → Personal workspace: routes to
src/App.tsx - Authentication → Demo study data: loads demo users
src/context/AuthContext.tsx - Study and workspace state → Demo study data: loads study data
src/context/DataContext.tsx - Study and workspace state → Authentication: reads current user
src/context/DataContext.tsx - Study and workspace state → Browser local storage: reads and writes
src/context/DataContext.tsx - Community resources → Resource and announcement actions: opens actions
src/pages/CommunityDetailPage.tsx - Resource route → Resource viewer: renders
src/pages/ResourceViewerPage.tsx - Resource viewer → PDF generation: generates PDF data
src/components/viewer/ResourceViewerModal.tsx - Personal workspace → Workspace controls: renders
src/pages/WorkspacePage.tsx - Personal workspace → Workspace resource cards: renders
src/pages/WorkspacePage.tsx - Personal workspace → Study and workspace state: uses workspace state
src/pages/WorkspacePage.tsx - Global search → Study and workspace state: searches study data
src/components/search/GlobalSearchModal.tsx - Community discovery → Study and workspace state: uses community state
src/pages/CommunitiesPage.tsx - Community resources → Study and workspace state: uses community state
src/pages/CommunityDetailPage.tsx - Resource viewer → Study and workspace state: uses resource state
src/components/viewer/ResourceViewerModal.tsx - Community resources → Personal workspace: adds resource references
README.md - Resource viewer → Discussion feed: shows resource discussion
README.md - Community creation and joining → Study and workspace state: updates communities
src/components/communities/CreateCommunityModal.tsx - Resource and announcement actions → Study and workspace state: submits resource
src/components/communities/UploadResourceModal.tsx