How wineithinzar41-lang/recycle-discovery-platform works
RE:CYCLE is a bilingual recycling-education web application. Users browse materials and recycled-product examples, explore recycling processes and impacts, take a quiz, and save favorites; global search helps find content across the catalog. The graph preserves these domain areas and the shared localization, search, and preference layers. Route wiring and several shared-data calls are evidenced by excerpts or the source index; unsampled page internals are shown without speculative connections.
Main entry points: App.tsx Route application · useLocalizedData.ts Localized content access · ProcessPage.tsx Process explorer · search.ts Cross-content search
Components 25
Application shell
- Route application
src/App.tsx - Shared layout
src/layouts/AppLayout.tsx
Recycling education
- Home page
src/pages/HomePage.tsx - Materials catalog
src/pages/MaterialsPage.tsx - Material details
src/pages/MaterialDetailPage.tsx - Product catalog
src/pages/ProductsPage.tsx - Process explorer
src/pages/ProcessPage.tsx - Journey explorer
src/components/process/JourneyExplorer.tsx - Process timeline
src/components/process/ProcessTimeline.tsx - Impact education
src/pages/ImpactPage.tsx - Recycling quiz
src/pages/QuizPage.tsx - Saved favorites
src/pages/FavoritesPage.tsx
Content and localization
- Material records
src/data/materials.ts - Product records
src/data/products/index.ts - Expanded products
src/data/products/expansion.ts - Process records
src/data/process.ts - Localized content access
src/hooks/useLocalizedData.ts - Translation resources
src/i18n/content/process.ts
Shared features
- Language provider
src/i18n/LanguageProvider.tsx - Global search dialog
src/components/layout/SearchDialog.tsx - Cross-content search
src/utils/search.ts - Search state
src/context/SearchContext.tsx - Favorites state
src/context/FavoritesContext.tsx - Browser storage hook
src/hooks/useLocalStorage.ts
Other components
- Site visitor
Connections 28
- Site visitor → Route application: opens
src/App.tsx - Route application → Shared layout: wraps routes
src/App.tsx - Route application → Home page: routes to
src/App.tsx - Route application → Materials catalog: routes to
src/App.tsx - Route application → Material details: routes to
src/App.tsx - Route application → Product catalog: routes to
src/App.tsx - Route application → Process explorer: routes to
src/App.tsx - Route application → Impact education: routes to
src/App.tsx - Route application → Recycling quiz: routes to
src/App.tsx - Route application → Saved favorites: routes to
src/App.tsx - Shared layout → Global search dialog: renders
src/layouts/AppLayout.tsx - Process explorer → Journey explorer: renders
src/pages/ProcessPage.tsx - Process explorer → Process timeline: renders
src/pages/ProcessPage.tsx - Process explorer → Localized content access: loads localized data
src/pages/ProcessPage.tsx - Impact education → Localized content access: loads localized data
src/pages/ImpactPage.tsx - Recycling quiz → Localized content access: loads quiz content
src/pages/QuizPage.tsx - Localized content access → Material records: localizes
src/hooks/useLocalizedData.ts - Localized content access → Product records: localizes
src/hooks/useLocalizedData.ts - Localized content access → Process records: localizes
src/hooks/useLocalizedData.ts - Localized content access → Translation resources: uses translations
src/hooks/useLocalizedData.ts - Product records → Expanded products: assembles records
src/data/products/index.ts - Global search dialog → Cross-content search: queries
src/components/layout/SearchDialog.tsx - Global search dialog → Search state: uses search state
src/components/layout/SearchDialog.tsx - Cross-content search → Material records: searches
src/utils/search.ts - Cross-content search → Product records: searches
src/utils/search.ts - Cross-content search → Process records: searches
src/utils/search.ts - Favorites state → Browser storage hook: persists through
src/context/FavoritesContext.tsx - Route application → Language provider: provides language
src/App.tsx