Skip to content

refactor(core): rename top-level directories for clarity#282

Merged
GiZano merged 1 commit into
mainfrom
refactor/folders
May 20, 2026
Merged

refactor(core): rename top-level directories for clarity#282
GiZano merged 1 commit into
mainfrom
refactor/folders

Conversation

@GiZano

@GiZano GiZano commented May 20, 2026

Copy link
Copy Markdown
Owner

Overview

This PR renames the three top-level project directories to shorter, more precise names. The previous names (backend-data-elaborator, frontend-mobile-app, iot-data-harvester) were overly verbose, making terminal commands, CI path filters, and documentation references unnecessarily long. The new names better reflect what each directory actually contains.

Old | New -- | -- backend-data-elaborator/ | backend/ frontend-mobile-app/ | mobile/ iot-data-harvester/ | firmware/

Changes Made

Directory renames

  • backend-data-elaborator/backend/
  • frontend-mobile-app/mobile/
  • iot-data-harvester/firmware/

.github/workflows/backend-ci.yml

yaml
# Before
paths:
  - 'backend-data-elaborator/**'
  - '.github/workflows/backend-ci.yml'

# After
paths:
  - 'backend/**'
  - '.github/workflows/backend-ci.yml'

Also update the cd commands and hashFiles path inside the job steps:

yaml
key: ${{ runner.os }}-pip-${{ hashFiles('backend/api/requirements.txt') }}
# ...
cd backend/api

.github/workflows/frontend-ci.yml

yaml
# Before
paths:
  - 'frontend-mobile-app/**'

# After
paths:
  - 'mobile/**'
yaml
key: ${{ runner.os }}-node-${{ hashFiles('mobile/package-lock.json') }}
# ...
cd mobile

.github/workflows/iot-ci.yml

yaml
# Before
paths:
  - 'iot-data-harvester/**'

# After
paths:
  - 'firmware/**'
yaml
cd firmware/esp32_code

README.md — Update project structure section:

QuakeGuard/
├── backend/
│   └── api/
├── mobile/
│   ├── app/
│   ├── src/
│   └── context/
└── firmware/
    └── esp32_code/
        └── src/

docker-compose.yml — Verify build context paths if any reference the old directory name directly.

stress_test.py — Verify no hardcoded relative paths reference the old directory name.

Impact

No functional changes. Pure structural refactor. All CI pipelines, Docker builds, and application code behavior remain identical.

⚠️ Action Required for all developers

After pulling this branch, your local repository structure will change. Run:

bash
git pull origin develop

If you have any local scripts or aliases pointing to the old directory names, update them manually.

Testing Performed

  • Verified backend-ci.yml triggers correctly on a change inside backend/
  • Verified frontend-ci.yml triggers correctly on a change inside mobile/
  • Verified iot-ci.yml triggers correctly on a change inside firmware/
  • Verified docker compose up --build completes successfully from the new path
  • Verified stress test runs correctly from backend/api/

Related Issues

No Related Issue

- backend-data-elaborator to backend
- frontend-mobile-app to frontend
- iot-data-harvester to firmware
@GiZano GiZano requested a review from riccardo0731 as a code owner May 20, 2026 07:54
@GiZano GiZano merged commit d399718 into main May 20, 2026
5 checks passed
@GiZano GiZano deleted the refactor/folders branch May 20, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant