# magmodules/magento2-shopreview-hyva architecture

> Architecture diagram of the GitHub repository magmodules/magento2-shopreview-hyva, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/magmodules/magento2-shopreview-hyva
- Repository: https://github.com/magmodules/magento2-shopreview-hyva

## Overview

This is a small Magento module that adapts Magmodules Shopreview for Hyvä storefronts. Its visible runtime surface consists of frontend templates for the review form, review listing, and review widget; the README documents broader Shopreview features, but those belong to the required base extension and are not implemented in this repository. Template dispatch and the contents of Magento configuration files were not shown, so no rendering links are asserted.

Main entry points: [`src/etc/frontend/di.xml`](https://github.com/magmodules/magento2-shopreview-hyva/blob/main/src/etc/frontend/di.xml) (Frontend configuration), [`src/view/frontend/templates/form/view.phtml`](https://github.com/magmodules/magento2-shopreview-hyva/blob/main/src/view/frontend/templates/form/view.phtml) (Review form), [`src/view/frontend/templates/review/listing.phtml`](https://github.com/magmodules/magento2-shopreview-hyva/blob/main/src/view/frontend/templates/review/listing.phtml) (Review listing), [`src/view/frontend/templates/widget/review.phtml`](https://github.com/magmodules/magento2-shopreview-hyva/blob/main/src/view/frontend/templates/widget/review.phtml) (Review widget)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_module["Module integration"]
  node_module_config["Frontend configuration<br/>[di.xml]"]
  node_module_decl["Module declaration<br/>[module.xml]"]
end

subgraph group_views["Frontend templates"]
  node_form_view["Review form<br/>[view.phtml]"]
  node_review_listing["Review listing<br/>[listing.phtml]"]
  node_review_widget["Review widget<br/>[review.phtml]"]
end

node_magento(("Magento storefront"))
node_hyva["Hyvä theme"]
node_shopreview["Shopreview extension"]

node_hyva -->|"integrates with"| node_shopreview
node_shopreview -->|"required dependency"| node_module_config
node_magento -.->|"renders"| node_form_view
node_magento -.->|"renders"| node_review_listing
node_magento -.->|"renders"| node_review_widget

click node_module_config "https://github.com/magmodules/magento2-shopreview-hyva/blob/main/src/etc/frontend/di.xml"
click node_module_decl "https://github.com/magmodules/magento2-shopreview-hyva/blob/main/src/etc/module.xml"
click node_form_view "https://github.com/magmodules/magento2-shopreview-hyva/blob/main/src/view/frontend/templates/form/view.phtml"
click node_review_listing "https://github.com/magmodules/magento2-shopreview-hyva/blob/main/src/view/frontend/templates/review/listing.phtml"
click node_review_widget "https://github.com/magmodules/magento2-shopreview-hyva/blob/main/src/view/frontend/templates/widget/review.phtml"

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_module_config,node_module_decl,node_shopreview toneBlue
class node_form_view,node_review_listing,node_review_widget toneAmber
class node_magento,node_hyva toneIndigo
```

## Components

### Module integration

- [Frontend configuration](https://github.com/magmodules/magento2-shopreview-hyva/blob/main/src/etc/frontend/di.xml): `src/etc/frontend/di.xml`
- [Module declaration](https://github.com/magmodules/magento2-shopreview-hyva/blob/main/src/etc/module.xml): `src/etc/module.xml`

### Frontend templates

- [Review form](https://github.com/magmodules/magento2-shopreview-hyva/blob/main/src/view/frontend/templates/form/view.phtml): `src/view/frontend/templates/form/view.phtml`
- [Review listing](https://github.com/magmodules/magento2-shopreview-hyva/blob/main/src/view/frontend/templates/review/listing.phtml): `src/view/frontend/templates/review/listing.phtml`
- [Review widget](https://github.com/magmodules/magento2-shopreview-hyva/blob/main/src/view/frontend/templates/widget/review.phtml): `src/view/frontend/templates/widget/review.phtml`

### Other components

- **Magento storefront**
- **Hyvä theme**
- **Shopreview extension**

## Connections

- Hyvä theme → Shopreview extension: integrates with (evidence: `README.md`)
- Shopreview extension → Frontend configuration: required dependency
- Magento storefront → Review form: renders
- Magento storefront → Review listing: renders
- Magento storefront → Review widget: renders
