# team-monolith-product/tmn-workflow-automation architecture

> Architecture diagram of the GitHub repository team-monolith-product/tmn-workflow-automation, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/team-monolith-product/tmn-workflow-automation
- Repository: https://github.com/team-monolith-product/tmn-workflow-automation

## Overview

##### Project Type Analysis
This is a workflow automation tool that appears to integrate with Slack and Notion, utilizing GitHub Actions for automation triggers. The project seems to focus on daily task management, scrum meetings, and deployment summaries.

##### Main Components

A. External Services Layer:
- Slack Integration
- Notion Integration
- GitHub Actions

B. Application Layer:
- Core Application (app.py)
- Task Management Service (manage_tasks_daily.py)
- Daily Scrum Service (daily_scrum.py)
- Deployment Summary Service (summarize_deployment.py)
- Notion Database Interface (list_notion_databases.py)

C. Workflow Automation Layer:
- Build Workflow (build-workflow-automation-slack.yml)
- Daily Scrum Workflow (daily_scrum.yaml)
- Task Management Workflow (manage_tasks_daily.yaml)
- Deployment Summary Workflow (summarize_deployment.yaml)

##### Specific Elements

a. External Services Section:
- ┌─────────┐    ┌─────────┐
- Slack  │    │ Notion  │
- ┘    └─────────┘

b. Application Core:
- ┌─────────────────────────┐
- app.py           │
- (Main Application)     │
- ┘

c. Service Modules:
- ┌─────────┐ ┌──────────┐ ┌─────────┐
- Tasks   │ │  Scrum   │ │ Deploy  │
- Manager │ │ Manager  │ │ Summary │
- ┘ └──────────┘ └─────────┘

d. GitHub Actions Workflows:
- ┌─────────────────────────────┐
- GitHub Actions          │
- (Automated Workflows)      │
- ┘

##### Implementation Notes

- Timing annotations for scheduled tasks
- Document integration points with external services

## Diagram (Mermaid)

```mermaid
graph TB
    %% External Services Layer
    subgraph External
        Slack["Slack Service"]
        Notion["Notion Service"]
    end

    %% Application Layer
    subgraph AppCore
        App["Core Application"]:::core
        TaskMgr["Task Management Service"]:::service
        ScrumMgr["Daily Scrum Service"]:::service
        DeploySumm["Deployment Summary Service"]:::service
        NotionDB["Notion Database Interface"]:::service
    end

    %% GitHub Actions Workflows Layer
    subgraph Workflows
        SlackWF["Slack Integration Workflow"]:::workflow
        ScrumWF["Daily Scrum Workflow"]:::workflow
        TaskWF["Task Management Workflow"]:::workflow
        DeployWF["Deployment Summary Workflow"]:::workflow
    end

    %% Infrastructure
    subgraph Infrastructure
        Docker["Docker Container"]:::infra
        Dependencies["Project Dependencies"]:::infra
    end

    %% Relationships
    Slack <--> App
    Notion <--> App
    App --> TaskMgr
    App --> ScrumMgr
    App --> DeploySumm
    App --> NotionDB
    NotionDB --> Notion
    
    SlackWF --> App
    ScrumWF --> ScrumMgr
    TaskWF --> TaskMgr
    DeployWF --> DeploySumm
    
    Docker --> App
    Dependencies --> App

    %% Click Events
    click App "https://github.com/team-monolith-product/tmn-workflow-automation/blob/main/app.py"
    click TaskMgr "https://github.com/team-monolith-product/tmn-workflow-automation/blob/main/manage_tasks_daily.py"
    click ScrumMgr "https://github.com/team-monolith-product/tmn-workflow-automation/blob/main/daily_scrum.py"
    click DeploySumm "https://github.com/team-monolith-product/tmn-workflow-automation/blob/main/summarize_deployment.py"
    click NotionDB "https://github.com/team-monolith-product/tmn-workflow-automation/blob/main/list_notion_databases.py"
    click SlackWF "https://github.com/team-monolith-product/tmn-workflow-automation/blob/main/.github/workflows/build-workflow-automation-slack.yml"
    click ScrumWF "https://github.com/team-monolith-product/tmn-workflow-automation/blob/main/.github/workflows/daily_scrum.yaml"
    click TaskWF "https://github.com/team-monolith-product/tmn-workflow-automation/blob/main/.github/workflows/manage_tasks_daily.yaml"
    click DeployWF "https://github.com/team-monolith-product/tmn-workflow-automation/blob/main/.github/workflows/summarize_deployment.yaml"
    click Docker "https://github.com/team-monolith-product/tmn-workflow-automation/tree/main/Dockerfile"
    click Dependencies "https://github.com/team-monolith-product/tmn-workflow-automation/blob/main/requirements.txt"

    %% Styling
    classDef core fill:#90EE90,stroke:#333,stroke-width:2px
    classDef service fill:#ADD8E6,stroke:#333
    classDef workflow fill:#FFA07A,stroke:#333
    classDef infra fill:#DCDCDC,stroke:#333
    
    %% Legend
    subgraph Legend
        L1["Core Component"]:::core
        L2["Service Component"]:::service
        L3["Workflow Component"]:::workflow
        L4["Infrastructure"]:::infra
    end
```
