# akbarumar88/indodax-sinyal-app architecture

> Architecture diagram of the GitHub repository akbarumar88/indodax-sinyal-app, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-04-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/akbarumar88/indodax-sinyal-app
- Repository: https://github.com/akbarumar88/indodax-sinyal-app

## Overview

1. **Overall shape**
   - This repository is a **Create React App single-page frontend**. There is no backend code here; the app is a client-side UI that likely consumes external data through runtime configuration.

2. **Application shell**
   - `src/index.js` is the React entrypoint that mounts the app into `public/index.html`.
   - `src/App.js` is the main composition root, with `src/App.css` and `src/index.css` providing app-wide styling.
   - `src/App_old.js` suggests there was an older app shell retained during a refactor or migration.

3. **Primary feature area: chart-driven views**
   - The `src/screens/` folder contains the main business views:
     - `Home.js`
     - `Chart.js`
     - `ChartLast.js`
     - `ChartJenis.js`
     - `ChartJenisDate.js`
     - `ChartVolumeDate.js`
     - `Unsur.js`
     - `Senyawa.js`
   - The naming indicates the app is centered on **data exploration / reporting**, with multiple chart variants and category/date-based breakdowns.

4. **Screen-level responsibility**
   - The screens appear to be the “pages” of the app and likely own:
     - data retrieval
     - filtering state
     - chart/table composition
     - switching between views such as “jenis”, “date”, “volume”, and category-specific result sets
   - This suggests a layered structure where screens orchestrate data and presentation, while reusable UI lives in `components/`.

5. **Reusable UI components**
   - `src/components/` contains shared interaction controls:
     - `Searchbar.js`
     - `FilterView.js`
     - `FilterPeriode.js`
     - `Pagination.js`
   - These are likely used across multiple screens to provide consistent search, filtering, time-period selection, and page navigation.

6. **State/data helpers**
   - `src/helper/` contains cross-cutting utilities:
     - `basic_helper.js` for general-purpose transformations or formatting
     - `usePagination.js` for pagination state/logic
     - `useWindowDimensions.js` for responsive behavior
   - This implies some logic is abstracted out of the screens so the UI remains reusable and responsive.

7. **Runtime configuration**
   - `public/env.js` is notable because it suggests **environment values are injected at runtime**, not only at build time.
   - That usually means API endpoints or deployment-specific settings are expected to be configurable without rebuilding the app.

8. **Styling and presentation stack**
   - The repo uses standard CSS files plus `tailwind.config.js` and `postcss.config.js`, so the UI likely combines:
     - component/page CSS
     - Tailwind utility classes
     - PostCSS processing
   - This is a frontend styling boundary only; no styling logic appears outside the client app.

9. **Static/public assets**
   - `public/manifest.json`, `robots.txt`, and `index.html` are standard SPA hosting assets.
   - `public/` is the deployment surface for the compiled app and any runtime-loaded config.

10. **Testing and quality**
    - `src/App.test.js` and `src/setupTests.js` indicate the project has at least basic React test scaffolding.
    - `src/reportWebVitals.js` is the default CRA performance reporting hook.

11. **Likely data flow**
    - User enters through `Home` or another screen.
    - Screens fetch or receive dataset-driven content.
    - Shared controls such as search, filter, and period selection narrow the dataset.
    - Pagination and responsive helpers control how results are displayed.
    - Chart screens then render the filtered data into visual summaries.

12. **Important architectural boundary**
    - The main boundary is between:
      - **screen orchestration** in `src/screens/`
      - **reusable interaction/presentation pieces** in `src/components/`
      - **shared logic** in `src/helper/`
    - If you draw the architecture, this is the cleanest way to separate responsibilities.

13. **Repository type summary**
    - This is a **frontend analytics/dashboard-style React application** with multiple chart views, filtering controls, pagination, and responsive behavior, built with CRA and styled via CSS/Tailwind.

Main entry points: [`src/App.js`](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/App.js) (App Root), [`src/screens/Chart.js`](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/screens/Chart.js) (Chart), [`src/screens/Home.js`](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/screens/Home.js) (Home), [`src/index.js`](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/index.js) (Entry Point)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public shell"]
  node_public_index_html["Index HTML<br/>spa host<br/>[index.html]"]
  node_public_env_js["Runtime Env<br/>config<br/>[env.js]"]
end

subgraph group_app["App shell"]
  node_src_index_js["Entry Point<br/>react bootstrap<br/>[index.js]"]
  node_src_app_js["App Root<br/>composition root<br/>[App.js]"]
  node_src_app_old_js["Old App<br/>legacy shell<br/>[App_old.js]"]
  node_src_html_js["HTML View<br/>presentation helper<br/>[HTML.js]"]
end

subgraph group_screens["Screens"]
  node_src_screens_home_js["Home<br/>screen<br/>[Home.js]"]
  node_src_screens_chart_js["Chart<br/>screen<br/>[Chart.js]"]
  node_src_screens_chartlast_js["Last Chart<br/>screen<br/>[ChartLast.js]"]
  node_src_screens_chartjenis_js["Jenis Chart<br/>screen<br/>[ChartJenis.js]"]
  node_src_screens_chartjenisdate_js["Jenis Date<br/>screen<br/>[ChartJenisDate.js]"]
  node_src_screens_chartvolumedate_js["Volume Date<br/>screen<br/>[ChartVolumeDate.js]"]
  node_src_screens_unsur_js["Unsur<br/>screen<br/>[Unsur.js]"]
  node_src_screens_senyawa_js["Senyawa<br/>screen<br/>[Senyawa.js]"]
end

subgraph group_components["Components"]
  node_src_components_searchbar_js["Searchbar<br/>ui control<br/>[Searchbar.js]"]
  node_src_components_filterview_js["Filter View<br/>ui control<br/>[FilterView.js]"]
  node_src_components_filterperiode_js["Period Filter<br/>ui control<br/>[FilterPeriode.js]"]
  node_src_components_pagination_js["Pagination<br/>ui control<br/>[Pagination.js]"]
end

subgraph group_helpers["Helpers"]
  node_src_helper_basic_helper_js["Basic Helper<br/>[basic_helper.js]"]
  node_src_helper_usepagination_js["usePagination<br/>hook<br/>[usePagination.js]"]
  node_src_helper_usewindowdimensions_js["useWindowDims<br/>hook"]
end

subgraph group_styles["Styling"]
  node_src_app_css["App CSS<br/>styles<br/>[App.css]"]
  node_src_index_css["Index CSS<br/>styles<br/>[index.css]"]
  node_tailwind_config["Tailwind Config<br/>style config<br/>[tailwind.config.js]"]
  node_postcss_config["PostCSS Config<br/>build config<br/>[postcss.config.js]"]
end

node_public_index_html -->|"hosts"| node_src_index_js
node_public_env_js -->|"configures"| node_src_app_js
node_src_index_js -->|"mounts"| node_src_app_js
node_src_app_js -->|"opens"| node_src_screens_home_js
node_src_app_js -->|"navigates"| node_src_screens_chart_js
node_src_app_js -->|"navigates"| node_src_screens_chartlast_js
node_src_app_js -->|"navigates"| node_src_screens_chartjenis_js
node_src_app_js -->|"navigates"| node_src_screens_chartjenisdate_js
node_src_app_js -->|"navigates"| node_src_screens_chartvolumedate_js
node_src_app_js -->|"navigates"| node_src_screens_unsur_js
node_src_app_js -->|"navigates"| node_src_screens_senyawa_js
node_src_app_js -.->|"renders"| node_src_html_js
node_src_screens_chart_js -->|"uses"| node_src_components_searchbar_js
node_src_screens_chart_js -->|"uses"| node_src_components_filterview_js
node_src_screens_chart_js -->|"uses"| node_src_components_filterperiode_js
node_src_screens_chart_js -->|"uses"| node_src_components_pagination_js
node_src_screens_chart_js -->|"uses"| node_src_helper_usepagination_js
node_src_screens_chart_js -->|"uses"| node_src_helper_usewindowdimensions_js
node_src_screens_home_js -->|"uses"| node_src_components_searchbar_js
node_src_screens_home_js -->|"uses"| node_src_components_filterview_js
node_src_screens_home_js -->|"uses"| node_src_helper_basic_helper_js
node_src_screens_chartjenis_js -->|"uses"| node_src_helper_basic_helper_js
node_src_screens_chartjenisdate_js -->|"uses"| node_src_helper_usewindowdimensions_js
node_src_screens_chartvolumedate_js -->|"uses"| node_src_components_filterperiode_js
node_src_components_pagination_js -->|"backed by"| node_src_helper_usepagination_js
node_src_components_filterview_js -->|"uses"| node_src_helper_basic_helper_js
node_src_app_js -->|"styles"| node_src_app_css
node_src_index_js -->|"styles"| node_src_index_css
node_tailwind_config -.->|"paired with"| node_postcss_config
node_src_app_js -.->|"retains"| node_src_app_old_js

click node_public_index_html "https://github.com/akbarumar88/indodax-sinyal-app/blob/master/public/index.html"
click node_public_env_js "https://github.com/akbarumar88/indodax-sinyal-app/blob/master/public/env.js"
click node_src_index_js "https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/index.js"
click node_src_app_js "https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/App.js"
click node_src_app_old_js "https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/App_old.js"
click node_src_html_js "https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/HTML.js"
click node_src_screens_home_js "https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/screens/Home.js"
click node_src_screens_chart_js "https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/screens/Chart.js"
click node_src_screens_chartlast_js "https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/screens/ChartLast.js"
click node_src_screens_chartjenis_js "https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/screens/ChartJenis.js"
click node_src_screens_chartjenisdate_js "https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/screens/ChartJenisDate.js"
click node_src_screens_chartvolumedate_js "https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/screens/ChartVolumeDate.js"
click node_src_screens_unsur_js "https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/screens/Unsur.js"
click node_src_screens_senyawa_js "https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/screens/Senyawa.js"
click node_src_components_searchbar_js "https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/components/Searchbar.js"
click node_src_components_filterview_js "https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/components/FilterView.js"
click node_src_components_filterperiode_js "https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/components/FilterPeriode.js"
click node_src_components_pagination_js "https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/components/Pagination.js"
click node_src_helper_basic_helper_js "https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/helper/basic_helper.js"
click node_src_helper_usepagination_js "https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/helper/usePagination.js"
click node_src_helper_usewindowdimensions_js "https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/helper/useWindowDimensions.js"
click node_src_app_css "https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/App.css"
click node_src_index_css "https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/index.css"
click node_tailwind_config "https://github.com/akbarumar88/indodax-sinyal-app/blob/master/tailwind.config.js"
click node_postcss_config "https://github.com/akbarumar88/indodax-sinyal-app/blob/master/postcss.config.js"

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_public_index_html,node_public_env_js toneBlue
class node_src_index_js,node_src_app_js,node_src_app_old_js,node_src_html_js toneAmber
class node_src_screens_home_js,node_src_screens_chart_js,node_src_screens_chartlast_js,node_src_screens_chartjenis_js,node_src_screens_chartjenisdate_js,node_src_screens_chartvolumedate_js,node_src_screens_unsur_js,node_src_screens_senyawa_js toneMint
class node_src_components_searchbar_js,node_src_components_filterview_js,node_src_components_filterperiode_js,node_src_components_pagination_js toneRose
class node_src_helper_basic_helper_js,node_src_helper_usepagination_js,node_src_helper_usewindowdimensions_js toneIndigo
class node_src_app_css,node_src_index_css,node_tailwind_config,node_postcss_config toneTeal
```

## Components

### Public shell

Static host assets and runtime config.

- [Index HTML](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/public/index.html): spa host · Browser entry document for the React app. · `public/index.html`
- [Runtime Env](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/public/env.js): config · Runtime-injected environment values. · `public/env.js`

### App shell

React entrypoint and top-level composition.

- [Entry Point](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/index.js): react bootstrap · Mounts the app into the DOM. · `src/index.js`
- [App Root](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/App.js): composition root · Top-level application composition and routing surface. · `src/App.js`
- [Old App](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/App_old.js): legacy shell · Retained previous app shell during refactor. · `src/App_old.js`
- [HTML View](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/HTML.js): presentation helper · Auxiliary HTML-related UI logic. · `src/HTML.js`

### Screens

Main data-driven views and chart variants.

- [Home](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/screens/Home.js): screen · Primary landing view for the dashboard. · `src/screens/Home.js`
- [Chart](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/screens/Chart.js): screen · Main chart-driven data exploration view. · `src/screens/Chart.js`
- [Last Chart](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/screens/ChartLast.js): screen · Recent or latest-results chart view. · `src/screens/ChartLast.js`
- [Jenis Chart](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/screens/ChartJenis.js): screen · Category-based chart breakdown view. · `src/screens/ChartJenis.js`
- [Jenis Date](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/screens/ChartJenisDate.js): screen · Category-by-date breakdown view. · `src/screens/ChartJenisDate.js`
- [Volume Date](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/screens/ChartVolumeDate.js): screen · Volume-over-time chart view. · `src/screens/ChartVolumeDate.js`
- [Unsur](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/screens/Unsur.js): screen · Element-focused results view. · `src/screens/Unsur.js`
- [Senyawa](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/screens/Senyawa.js): screen · Compound-focused results view. · `src/screens/Senyawa.js`

### Components

Reusable UI controls shared by screens.

- [Searchbar](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/components/Searchbar.js): ui control · Shared text search input. · `src/components/Searchbar.js`
- [Filter View](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/components/FilterView.js): ui control · Shared view-level filtering control. · `src/components/FilterView.js`
- [Period Filter](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/components/FilterPeriode.js): ui control · Shared date/period selection control. · `src/components/FilterPeriode.js`
- [Pagination](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/components/Pagination.js): ui control · Shared page navigation control. · `src/components/Pagination.js`

### Helpers

Cross-cutting logic and hooks.

- [Basic Helper](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/helper/basic_helper.js): utility · General-purpose formatting or transformation helpers. · `src/helper/basic_helper.js`
- [usePagination](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/helper/usePagination.js): hook · Pagination state and slice logic. · `src/helper/usePagination.js`
- [useWindowDims](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/helper/useWindowDimensions.js): hook · Responsive viewport measurement hook. · `src/helper/useWindowDimensions.js`

### Styling

Global and component styling layers.

- [App CSS](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/App.css): styles · Application-scoped styling. · `src/App.css`
- [Index CSS](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/src/index.css): styles · Global stylesheet for the app. · `src/index.css`
- [Tailwind Config](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/tailwind.config.js): style config · Tailwind utility framework configuration. · `tailwind.config.js`
- [PostCSS Config](https://github.com/akbarumar88/indodax-sinyal-app/blob/master/postcss.config.js): build config · PostCSS processing configuration. · `postcss.config.js`

## Connections

- Index HTML → Entry Point: hosts · The HTML document loads the React bundle.
- Runtime Env → App Root: configures · Runtime settings feed the application shell.
- Entry Point → App Root: mounts · Bootstraps the root React tree.
- App Root → Home: opens · Top-level app composes the home view.
- App Root → Chart: navigates · App exposes the main chart workflow.
- App Root → Last Chart: navigates · App links to latest-results view.
- App Root → Jenis Chart: navigates · App links to category chart view.
- App Root → Jenis Date: navigates · App links to category-by-date view.
- App Root → Volume Date: navigates · App links to volume-over-time view.
- App Root → Unsur: navigates · App links to element-focused view.
- App Root → Senyawa: navigates · App links to compound-focused view.
- App Root → HTML View: renders · App uses auxiliary HTML-related presentation.
- Chart → Searchbar: uses · Chart screen accepts search input.
- Chart → Filter View: uses · Chart screen filters the dataset.
- Chart → Period Filter: uses · Chart screen applies period selection.
- Chart → Pagination: uses · Chart screen paginates results.
- Chart → usePagination: uses · Chart screen relies on pagination logic.
- Chart → useWindowDims: uses · Chart screen adapts to viewport size.
- Home → Searchbar: uses · Home view can expose search.
- Home → Filter View: uses · Home view can filter result sets.
- Home → Basic Helper: uses · Home view uses shared data helpers.
- Jenis Chart → Basic Helper: uses · Category chart uses shared transformations.
- Jenis Date → useWindowDims: uses · Date chart adapts responsively.
- Volume Date → Period Filter: uses · Volume chart is period-driven.
- Pagination → usePagination: backed by · Pagination UI is powered by the pagination hook.
- Filter View → Basic Helper: uses · Filter controls share helper logic.
- App Root → App CSS: styles · App shell imports app-scoped styles.
- Entry Point → Index CSS: styles · Entry point loads global styles.
- Tailwind Config → PostCSS Config: paired with · Tailwind is processed through PostCSS.
- App Root → Old App: retains · Legacy shell remains as a reference during migration.
