# sanjana123642/sentryflow-console architecture

> Architecture diagram of the GitHub repository sanjana123642/sentryflow-console, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sanjana123642/sentryflow-console
- Repository: https://github.com/sanjana123642/sentryflow-console

## Overview

SentryFlow Console is a React log-monitoring dashboard. Its current workflow generates sample logs, stores them in Redux, checks alert thresholds, and presents live logs alongside filtering, history, search, frequency analytics, alert configuration, and simulated server health. The graph distinguishes UI orchestration, log and alert state, and analysis/health features. The README describes dashboard capabilities; the sampled implementation shows simulated data rather than connections to external log sources or notification services.

Main entry points: [`src/App.jsx`](https://github.com/sanjana123642/sentryflow-console/blob/main/src/App.jsx) (App and views), [`src/components/ErrorFilterPanel.jsx`](https://github.com/sanjana123642/sentryflow-console/blob/main/src/components/ErrorFilterPanel.jsx) (Error filters), [`src/redux/store.js`](https://github.com/sanjana123642/sentryflow-console/blob/main/src/redux/store.js) (Redux store), [`src/redux/logSlice.js`](https://github.com/sanjana123642/sentryflow-console/blob/main/src/redux/logSlice.js) (Log state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Dashboard UI"]
  node_app["App and views<br/>[App.jsx]"]
  node_live["Live log stream<br/>[LiveLogStream.jsx]"]
  node_history["Virtualized history"]
  node_filter["Error filters"]
  node_alertform["Alert configuration<br/>[AlertForm.jsx]"]
  node_search["Regex search<br/>[RegexSearch.jsx]"]
  node_frequency["Frequency tracker"]
  node_chart["Error frequency chart"]
  node_boundary["Chart error boundary"]
  node_serverhub["Server health panel"]
  node_entry["React entry point<br/>[main.jsx]"]
end

subgraph group_runtime["Log and Alert State"]
  node_loggen["Sample log generator<br/>[useLogGenerator.js]"]
  node_filterstate["Filter state<br/>[filterSlice.js]"]
  node_alertstate["Alert state<br/>[alertSlice.js]"]
  node_logstate["Log state<br/>[logSlice.js]"]
  node_store["Redux store<br/>[store.js]"]
end

subgraph group_analysis["Analysis and Health"]
  node_alertutils["Alert time formatting<br/>[alertUtils.js]"]
  node_regexutils["Regex utilities<br/>[regexUtils.js]"]
  node_frequencyutils["Frequency calculations<br/>[frequencyUtils.js]"]
  node_servercontext["Simulated server state<br/>[ServerContext.jsx]"]
end

node_user(("Dashboard user"))

node_user -->|"uses"| node_app
node_entry -->|"provides state"| node_store
node_entry -->|"renders"| node_app
node_app -->|"starts"| node_loggen
node_loggen -->|"dispatches logs"| node_logstate
node_loggen -->|"dispatches triggers"| node_alertstate
node_app -->|"renders"| node_live
node_app -->|"renders"| node_history
node_app -->|"renders"| node_filter
node_app -->|"dispatches undo redo"| node_filterstate
node_filter -->|"dispatches filters"| node_filterstate
node_filter -->|"computes counts"| node_frequencyutils
node_filter -->|"reads logs"| node_logstate
node_app -->|"renders"| node_alertform
node_alertform -->|"dispatches rules"| node_alertstate
node_alertform -->|"formats times"| node_alertutils
node_app -->|"renders"| node_search
node_search -->|"reads logs"| node_logstate
node_search -->|"builds and highlights"| node_regexutils
node_history -->|"uses matching"| node_regexutils
node_app -->|"renders"| node_frequency
node_frequency -->|"calculates frequencies"| node_frequencyutils
node_app -->|"wraps chart"| node_boundary
node_boundary -->|"renders"| node_chart
node_chart -->|"calculates series"| node_frequencyutils
node_app -->|"renders"| node_serverhub
node_app -->|"provides server state"| node_servercontext
node_serverhub -->|"reads status"| node_servercontext
node_store -->|"registers reducer"| node_logstate
node_store -->|"registers reducer"| node_filterstate
node_store -->|"registers reducer"| node_alertstate

click node_app "https://github.com/sanjana123642/sentryflow-console/blob/main/src/App.jsx"
click node_loggen "https://github.com/sanjana123642/sentryflow-console/blob/main/src/hooks/useLogGenerator.js"
click node_live "https://github.com/sanjana123642/sentryflow-console/blob/main/src/components/LiveLogStream.jsx"
click node_history "https://github.com/sanjana123642/sentryflow-console/blob/main/src/components/VirtualizedLogHistory.jsx"
click node_filter "https://github.com/sanjana123642/sentryflow-console/blob/main/src/components/ErrorFilterPanel.jsx"
click node_filterstate "https://github.com/sanjana123642/sentryflow-console/blob/main/src/redux/filterSlice.js"
click node_alertform "https://github.com/sanjana123642/sentryflow-console/blob/main/src/components/AlertForm.jsx"
click node_alertutils "https://github.com/sanjana123642/sentryflow-console/blob/main/src/utils/alertUtils.js"
click node_alertstate "https://github.com/sanjana123642/sentryflow-console/blob/main/src/redux/alertSlice.js"
click node_logstate "https://github.com/sanjana123642/sentryflow-console/blob/main/src/redux/logSlice.js"
click node_store "https://github.com/sanjana123642/sentryflow-console/blob/main/src/redux/store.js"
click node_search "https://github.com/sanjana123642/sentryflow-console/blob/main/src/components/RegexSearch.jsx"
click node_regexutils "https://github.com/sanjana123642/sentryflow-console/blob/main/src/utils/regexUtils.js"
click node_frequency "https://github.com/sanjana123642/sentryflow-console/blob/main/src/components/FrequencyTracker.jsx"
click node_chart "https://github.com/sanjana123642/sentryflow-console/blob/main/src/components/ErrorFrequencyChart.jsx"
click node_frequencyutils "https://github.com/sanjana123642/sentryflow-console/blob/main/src/utils/frequencyUtils.js"
click node_boundary "https://github.com/sanjana123642/sentryflow-console/blob/main/src/components/GraphErrorBoundary.jsx"
click node_serverhub "https://github.com/sanjana123642/sentryflow-console/blob/main/src/components/ServerStatusHub.jsx"
click node_servercontext "https://github.com/sanjana123642/sentryflow-console/blob/main/src/context/ServerContext.jsx"
click node_entry "https://github.com/sanjana123642/sentryflow-console/blob/main/src/main.jsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_live,node_history,node_filter,node_alertform,node_search,node_frequency,node_chart,node_boundary,node_serverhub,node_entry,node_user toneBlue
class node_loggen,node_filterstate,node_alertstate,node_logstate,node_store toneAmber
class node_alertutils,node_regexutils,node_frequencyutils,node_servercontext toneMint
```

## Components

### Dashboard UI

- [App and views](https://github.com/sanjana123642/sentryflow-console/blob/main/src/App.jsx): `src/App.jsx`
- [Live log stream](https://github.com/sanjana123642/sentryflow-console/blob/main/src/components/LiveLogStream.jsx): `src/components/LiveLogStream.jsx`
- [Virtualized history](https://github.com/sanjana123642/sentryflow-console/blob/main/src/components/VirtualizedLogHistory.jsx): `src/components/VirtualizedLogHistory.jsx`
- [Error filters](https://github.com/sanjana123642/sentryflow-console/blob/main/src/components/ErrorFilterPanel.jsx): `src/components/ErrorFilterPanel.jsx`
- [Alert configuration](https://github.com/sanjana123642/sentryflow-console/blob/main/src/components/AlertForm.jsx): `src/components/AlertForm.jsx`
- [Regex search](https://github.com/sanjana123642/sentryflow-console/blob/main/src/components/RegexSearch.jsx): `src/components/RegexSearch.jsx`
- [Frequency tracker](https://github.com/sanjana123642/sentryflow-console/blob/main/src/components/FrequencyTracker.jsx): `src/components/FrequencyTracker.jsx`
- [Error frequency chart](https://github.com/sanjana123642/sentryflow-console/blob/main/src/components/ErrorFrequencyChart.jsx): `src/components/ErrorFrequencyChart.jsx`
- [Chart error boundary](https://github.com/sanjana123642/sentryflow-console/blob/main/src/components/GraphErrorBoundary.jsx): `src/components/GraphErrorBoundary.jsx`
- [Server health panel](https://github.com/sanjana123642/sentryflow-console/blob/main/src/components/ServerStatusHub.jsx): `src/components/ServerStatusHub.jsx`
- [React entry point](https://github.com/sanjana123642/sentryflow-console/blob/main/src/main.jsx): `src/main.jsx`

### Log and Alert State

- [Sample log generator](https://github.com/sanjana123642/sentryflow-console/blob/main/src/hooks/useLogGenerator.js): `src/hooks/useLogGenerator.js`
- [Filter state](https://github.com/sanjana123642/sentryflow-console/blob/main/src/redux/filterSlice.js): `src/redux/filterSlice.js`
- [Alert state](https://github.com/sanjana123642/sentryflow-console/blob/main/src/redux/alertSlice.js): `src/redux/alertSlice.js`
- [Log state](https://github.com/sanjana123642/sentryflow-console/blob/main/src/redux/logSlice.js): `src/redux/logSlice.js`
- [Redux store](https://github.com/sanjana123642/sentryflow-console/blob/main/src/redux/store.js): `src/redux/store.js`

### Analysis and Health

- [Alert time formatting](https://github.com/sanjana123642/sentryflow-console/blob/main/src/utils/alertUtils.js): `src/utils/alertUtils.js`
- [Regex utilities](https://github.com/sanjana123642/sentryflow-console/blob/main/src/utils/regexUtils.js): `src/utils/regexUtils.js`
- [Frequency calculations](https://github.com/sanjana123642/sentryflow-console/blob/main/src/utils/frequencyUtils.js): `src/utils/frequencyUtils.js`
- [Simulated server state](https://github.com/sanjana123642/sentryflow-console/blob/main/src/context/ServerContext.jsx): `src/context/ServerContext.jsx`

### Other components

- **Dashboard user**

## Connections

- Dashboard user → App and views: uses (evidence: `README.md`)
- React entry point → Redux store: provides state (evidence: `src/main.jsx`)
- React entry point → App and views: renders (evidence: `src/main.jsx`)
- App and views → Sample log generator: starts (evidence: `src/App.jsx`)
- Sample log generator → Log state: dispatches logs (evidence: `src/hooks/useLogGenerator.js`)
- Sample log generator → Alert state: dispatches triggers (evidence: `src/hooks/useLogGenerator.js`)
- App and views → Live log stream: renders (evidence: `src/App.jsx`)
- App and views → Virtualized history: renders (evidence: `src/App.jsx`)
- App and views → Error filters: renders (evidence: `src/App.jsx`)
- App and views → Filter state: dispatches undo redo (evidence: `src/App.jsx`)
- Error filters → Filter state: dispatches filters (evidence: `src/components/ErrorFilterPanel.jsx`)
- Error filters → Frequency calculations: computes counts (evidence: `src/components/ErrorFilterPanel.jsx`)
- Error filters → Log state: reads logs (evidence: `src/components/ErrorFilterPanel.jsx`)
- App and views → Alert configuration: renders (evidence: `src/App.jsx`)
- Alert configuration → Alert state: dispatches rules (evidence: `src/components/AlertForm.jsx`)
- Alert configuration → Alert time formatting: formats times (evidence: `src/components/AlertForm.jsx`)
- App and views → Regex search: renders (evidence: `src/App.jsx`)
- Regex search → Log state: reads logs (evidence: `src/components/RegexSearch.jsx`)
- Regex search → Regex utilities: builds and highlights (evidence: `src/components/RegexSearch.jsx`)
- Virtualized history → Regex utilities: uses matching (evidence: `src/components/VirtualizedLogHistory.jsx`)
- App and views → Frequency tracker: renders (evidence: `src/App.jsx`)
- Frequency tracker → Frequency calculations: calculates frequencies (evidence: `src/components/FrequencyTracker.jsx`)
- App and views → Chart error boundary: wraps chart (evidence: `src/App.jsx`)
- Chart error boundary → Error frequency chart: renders (evidence: `src/App.jsx`)
- Error frequency chart → Frequency calculations: calculates series (evidence: `src/components/ErrorFrequencyChart.jsx`)
- App and views → Server health panel: renders (evidence: `src/App.jsx`)
- App and views → Simulated server state: provides server state (evidence: `src/App.jsx`)
- Server health panel → Simulated server state: reads status (evidence: `src/components/ServerStatusHub.jsx`)
- Redux store → Log state: registers reducer (evidence: `src/redux/store.js`)
- Redux store → Filter state: registers reducer (evidence: `src/redux/store.js`)
- Redux store → Alert state: registers reducer (evidence: `src/redux/store.js`)
