How sap/architecture-center works
SAP Architecture Center is a Docusaurus-based reference-architecture portal: visitors explore architecture content by domain and use documentation pages to learn and navigate reference designs. Authenticated contributors can edit page content in a custom block editor, with document data held in a client store and backend API support. The graph emphasizes documented homepage navigation and the editor’s evidenced internal layers; README describes the portal’s reference-architecture purpose. Several content, auth, and API implementation links are not fully sampled and are therefore omitted.
Main entry points: EditorCore.ts Editor core · pages/index.tsx Home page · Editor/index.tsx Editor interface · EditorState.ts Document state
Components 28
Architecture portal
- Home page
src/pages/index.tsx - Hero section
src/sections/HeroSection.tsx - Architecture tabs
src/sections/ArchitectureTabsSection.tsx - Architecture views
src/components/ArchitectureTabs/ArchitectureTabs.tsx - News section
src/sections/NewsSection.tsx - Technology domains
src/sections/TechnologyDomainSection.tsx - Additional resources
src/sections/AdditionalResSection.tsx - Quick start
src/pages/quick-start/index.tsx - Document content
src/theme/DocItem/Content/index.tsx - Documentation sidebar
src/theme/DocSidebar/index.tsx
Content editor
- Editor interface
src/components/Editor/index.tsx - Editor context hook
src/components/Editor/hooks/useEditor.ts - Editor core
src/components/Editor/core/EditorCore.ts - Document state
src/components/Editor/core/EditorState.ts - Editor model types
src/components/Editor/core/types.ts - DOM reconciler
src/components/Editor/core/DOMReconciler.ts - Undo history
src/components/Editor/core/History.ts - Operation logger
src/components/Editor/core/OperationLogger.ts - Editor operations
src/components/Editor/core/Operations.ts - Selection handling
src/components/Editor/core/Selection.ts - Lexical conversion
src/components/Editor/utils/convertToLexical.ts
Identity and data
- Authentication context
src/context/AuthContext.tsx - Auth storage
src/utils/authStorage.ts - API hook
src/services/useApi.ts - Backend API service
src/services/api.ts - Page data store
src/store/pageDataStore.ts
Other components
- Visitor
- Express backend
Connections 27
- Visitor → Home page: opens
src/pages/index.tsx - Home page → Hero section: renders
src/pages/index.tsx - Home page → Architecture tabs: renders
src/pages/index.tsx - Home page → News section: renders
src/pages/index.tsx - Home page → Technology domains: renders
src/pages/index.tsx - Home page → Additional resources: renders
src/pages/index.tsx - Architecture tabs → Architecture views: renders
src/sections/ArchitectureTabsSection.tsx - Visitor → Quick start: opens
- Visitor → Document content: reads
- Visitor → Documentation sidebar: navigates
- Editor interface → Editor context hook: uses
src/components/Editor/index.tsx - Editor context hook → Editor core: subscribes
src/components/Editor/hooks/useEditor.ts - Editor core → Document state: updates
src/components/Editor/core/EditorCore.ts - Editor core → DOM reconciler: reconciles
src/components/Editor/core/EditorCore.ts - Editor core → Undo history: uses
src/components/Editor/core/EditorCore.ts - Editor core → Operation logger: records
src/components/Editor/core/EditorCore.ts - Operation logger → Editor operations: uses
src/components/Editor/core/OperationLogger.ts - Editor core → Selection handling: manages
src/components/Editor/core/EditorCore.ts - Editor core → Editor model types: uses
src/components/Editor/core/EditorCore.ts - Document state → Editor model types: defines state with
src/components/Editor/core/EditorState.ts - DOM reconciler → Document state: reads
src/components/Editor/core/DOMReconciler.ts - Editor interface → Lexical conversion: imports
src/components/Editor/index.tsx - Editor interface → Page data store: updates documents
src/components/Editor/index.tsx - Authentication context → Auth storage: stores credentials
src/context/AuthContext.tsx - API hook → Backend API service: configures
src/services/useApi.ts - Editor interface → Authentication context: checks identity
src/components/Editor/index.tsx - Backend API service → Express backend: requests