2026-05-21 11:44:21 -05:00
|
|
|
# CLAUDE.md
|
|
|
|
|
|
|
|
|
|
This file provides guidance to Claude Code when working with this repository.
|
|
|
|
|
|
|
|
|
|
## Project Overview
|
|
|
|
|
|
2026-06-23 11:08:46 -05:00
|
|
|
**MokoSuiteStoreLocator** -- A Joomla 5/6 package providing a store locator listing component with coordinating map and search modules.
|
2026-05-21 11:44:21 -05:00
|
|
|
|
|
|
|
|
| Field | Value |
|
|
|
|
|
|---|---|
|
|
|
|
|
| **Platform** | joomla |
|
|
|
|
|
| **Extension type** | package (component + modules) |
|
2026-06-23 11:08:46 -05:00
|
|
|
| **Element** | `pkg_mokosuitestorelocator` |
|
2026-05-21 11:44:21 -05:00
|
|
|
| **Language** | PHP |
|
|
|
|
|
| **Default branch** | main |
|
|
|
|
|
| **License** | GPL-3.0-or-later |
|
2026-06-23 11:08:46 -05:00
|
|
|
| **Wiki** | [MokoSuiteStoreLocator Wiki](https://git.mokoconsulting.tech/MokoConsulting/MokoSuiteStoreLocator/wiki) |
|
2026-05-21 11:44:21 -05:00
|
|
|
| **Standards** | [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home) |
|
|
|
|
|
|
|
|
|
|
## Package Contents
|
|
|
|
|
|
|
|
|
|
| Extension | Type | Element |
|
|
|
|
|
|---|---|---|
|
2026-06-23 11:08:46 -05:00
|
|
|
| Store Locator Component | component | `com_mokosuitestorelocator` |
|
|
|
|
|
| Store Locator Map | module (site) | `mod_mokosuitestorelocator_map` |
|
|
|
|
|
| Store Locator Search | module (site) | `mod_mokosuitestorelocator_search` |
|
2026-05-21 11:44:21 -05:00
|
|
|
|
|
|
|
|
## Common Commands
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
composer install # Install PHP dev dependencies
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Architecture
|
|
|
|
|
|
|
|
|
|
This is a Joomla package. Key layout:
|
|
|
|
|
|
2026-06-23 11:08:46 -05:00
|
|
|
- `source/pkg_mokosuitestorelocator.xml` -- package manifest
|
|
|
|
|
- `source/script.php` -- package install/upgrade/uninstall script
|
|
|
|
|
- `source/packages/com_mokosuitestorelocator/` -- main component
|
2026-05-21 11:44:21 -05:00
|
|
|
- `admin/` -- admin MVC (controllers, models, views, forms, tables, SQL)
|
|
|
|
|
- `site/` -- frontend MVC (controllers, models, views, templates)
|
2026-06-23 11:08:46 -05:00
|
|
|
- `mokosuitestorelocator.xml` -- component manifest
|
|
|
|
|
- `source/packages/mod_mokosuitestorelocator_map/` -- map display module
|
|
|
|
|
- `source/packages/mod_mokosuitestorelocator_search/` -- search/filter module
|
2026-05-21 11:44:21 -05:00
|
|
|
|
|
|
|
|
## Database Table
|
|
|
|
|
|
2026-06-23 11:08:46 -05:00
|
|
|
`#__mokosuitestorelocator_locations` -- stores location data including coordinates, address, contact info, and business hours.
|
2026-05-21 11:44:21 -05:00
|
|
|
|
|
|
|
|
## Rules
|
|
|
|
|
|
2026-05-21 20:09:06 +00:00
|
|
|
- **Workflow directory**: `.mokogitea/` (not `.gitea/` or `.github/`)
|
|
|
|
|
|
2026-05-21 11:44:21 -05:00
|
|
|
- **Never commit** `.claude/`, `.mcp.json`, `TODO.md`, or `*.min.css`/`*.min.js`
|
|
|
|
|
- **Attribution**: use `Authored-by: Moko Consulting` in commits
|
|
|
|
|
- **Branch strategy**: develop on `dev/`, merge to `main` for release
|
|
|
|
|
- **Wiki**: documentation lives in the Gitea wiki, not in `docs/` files
|
|
|
|
|
- **Standards**: this repo follows [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home)
|
2026-06-23 11:08:46 -05:00
|
|
|
- **PHP minimum**: 8.2
|
|
|
|
|
- **Joomla minimum**: 5.0
|
2026-05-21 11:44:21 -05:00
|
|
|
- **Joomla table operations**: always use bind() -> check() -> store(), never save()
|
2026-06-23 11:08:46 -05:00
|
|
|
- **Namespace**: `Moko\Component\MokoSuiteStoreLocator` for the component
|