# rocketmakers/armstrong-edge architecture

> Architecture diagram of the GitHub repository rocketmakers/armstrong-edge, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rocketmakers/armstrong-edge
- Repository: https://github.com/rocketmakers/armstrong-edge

## Overview

##### Main Components Structure

a) Core Library Components
- Component Layer (showing all UI components)
- Theme System
- Form System
- Hooks Layer
- Utils Layer

b) Development & Build Infrastructure
- Storybook Integration
- Testing Framework
- Build & Release Pipeline

##### Detailed Component Breakdown

**[Component Library Core]**
- UI Components
- Basic Components (Button, Input, Select, etc.)
- Complex Components (Dialog, Toast, DropdownMenu)
- Form Components (ValidationErrors, InputWrapper)

- Theme System
- CSS Variables
- Animations
- Base Themes

- Form System
- Hooks
- Validation
- State Management

- Utility Layer
- Custom Hooks
- Helper Functions
- Type Definitions

##### Integration Points

How the library integrates with:
- React applications (entry point)
- CSS/Theme implementation
- Storybook documentation
- Testing infrastructure

##### Development Workflow

A separate section showing:
- GitHub Actions workflow
- Release process
- Testing pipeline
- Documentation generation

##### Implementation Details

Use symbols to indicate:

For tools, I recommend using:
- Clear section labels
- Version/date stamp for reference

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph Legend
        A[Component]
        B[(Database)]
        C{Decision}
        D([Oval])
        style A fill:#blue
        style B fill:#green
        style C fill:#purple
        style D fill:#orange
    end

    subgraph CoreLibrary["Component Library Core"]
        subgraph UIComponents["UI Components"]
            BasicComp["Basic Components"]
            ComplexComp["Complex Components"]
            FormComp["Form Components"]
            
            subgraph Basic["Basic Components Detail"]
                Button["Button"]:::basic
                Input["Input"]:::basic
                Select["Select"]:::basic
            end
            
            subgraph Complex["Complex Components Detail"]
                Dialog["Dialog"]:::complex
                Toast["Toast"]:::complex
                DropdownMenu["Dropdown Menu"]:::complex
            end
            
            subgraph FormComps["Form Components Detail"]
                ValErrors["Validation Errors"]:::form
                InputWrapper["Input Wrapper"]:::form
            end
        end

        subgraph ThemeSystem["Theme System"]
            CSSVars["CSS Variables"]:::theme
            Animations["Animations"]:::theme
            BaseThemes["Base Themes"]:::theme
        end

        subgraph FormSystem["Form System"]
            FormHooks["Hooks"]:::form
            Validation["Validation"]:::form
            StateManagement["State Management"]:::form
        end

        subgraph UtilityLayer["Utility Layer"]
            CustomHooks["Custom Hooks"]:::util
            HelperFuncs["Helper Functions"]:::util
            TypeDefs["Type Definitions"]:::util
        end
    end

    subgraph DevInfra["Development Infrastructure"]
        Storybook["Storybook Integration"]:::dev
        Testing["Testing Framework"]:::dev
        BuildRelease["Build & Release Pipeline"]:::dev
    end

    BasicComp --> Basic
    ComplexComp --> Complex
    FormComp --> FormComps
    
    ThemeSystem --> UIComponents
    FormSystem --> FormComp
    UtilityLayer --> UIComponents
    UtilityLayer --> FormSystem
    
    UIComponents --> Storybook
    UIComponents --> Testing
    BuildRelease --> Testing

    %% Click events for component mapping
    click BasicComp "https://github.com/Rocketmakers/armstrong-edge/tree/main/module/src/components"
    click Button "https://github.com/Rocketmakers/armstrong-edge/tree/main/module/src/components/button"
    click Input "https://github.com/Rocketmakers/armstrong-edge/tree/main/module/src/components/input"
    click Select "https://github.com/Rocketmakers/armstrong-edge/tree/main/module/src/components/select"
    click Dialog "https://github.com/Rocketmakers/armstrong-edge/tree/main/module/src/components/dialog"
    click Toast "https://github.com/Rocketmakers/armstrong-edge/tree/main/module/src/components/toast"
    click DropdownMenu "https://github.com/Rocketmakers/armstrong-edge/tree/main/module/src/components/dropdownMenu"
    click ValErrors "https://github.com/Rocketmakers/armstrong-edge/tree/main/module/src/components/validationErrors"
    click InputWrapper "https://github.com/Rocketmakers/armstrong-edge/tree/main/module/src/components/inputWrapper"
    click ThemeSystem "https://github.com/Rocketmakers/armstrong-edge/tree/main/module/src/theme"
    click CSSVars "https://github.com/Rocketmakers/armstrong-edge/blob/main/module/src/theme/variables.css"
    click Animations "https://github.com/Rocketmakers/armstrong-edge/blob/main/module/src/theme/animations.css"
    click BaseThemes "https://github.com/Rocketmakers/armstrong-edge/blob/main/module/src/theme/theme.css"
    click FormSystem "https://github.com/Rocketmakers/armstrong-edge/tree/main/module/src/form"
    click FormHooks "https://github.com/Rocketmakers/armstrong-edge/tree/main/module/src/form/hooks"
    click Validation "https://github.com/Rocketmakers/armstrong-edge/blob/main/module/src/form/utils/validation.ts"
    click StateManagement "https://github.com/Rocketmakers/armstrong-edge/blob/main/module/src/form/hooks/useForm.ts"
    click CustomHooks "https://github.com/Rocketmakers/armstrong-edge/tree/main/module/src/hooks"
    click HelperFuncs "https://github.com/Rocketmakers/armstrong-edge/tree/main/module/src/utils"
    click TypeDefs "https://github.com/Rocketmakers/armstrong-edge/tree/main/module/src/types"
    click Storybook "https://github.com/Rocketmakers/armstrong-edge/blob/main/storybook/.storybook"
    click Testing "https://github.com/Rocketmakers/armstrong-edge/tree/main/module/_test/jest"
    click BuildRelease "https://github.com/Rocketmakers/armstrong-edge/tree/main/.github/workflows"

    %% Styling
    classDef basic fill:#4a9eff
    classDef complex fill:#4a9eff
    classDef form fill:#50C878
    classDef theme fill:#9370DB
    classDef util fill:#808080
    classDef dev fill:#FFA500
```
