first push

This commit is contained in:
jhartworks committed 2026-11-09 10:37:41 +01:00
commit 2a81b4a502
845 files changed
+356635

No files matched your search

+53
View File
@@ -0,0 +1,53 @@
# Contributing
Thanks for looking. NextFloor is free and open source out of conviction, and every contribution keeps it that way: whatever you add belongs to everyone, under the MIT licence. It is a small project and is built with AI assistance (see the README), so contributions are welcome the same way: written by you, with a tool, or both. Please just say in the pull request if an AI wrote a good part of it, and make sure you have understood and run what you send.
## Before a pull request
```bash
cd frontend
npm install
npm run typecheck
npm test
npm run build # the built bundles are committed; CI fails when they are stale
cd ..
ruff check . && ruff format --check .
pytest -q # the Home Assistant side
```
- Keep a change small and say what it is for. A screenshot helps for anything you can see (`npm run screenshot` renders the preview).
- New furniture or vehicles: the built-in packs come from `tools/build_packs.py`; the format of your own packs is in [docs/packs.md](docs/packs.md). Please only use sizes and shapes you made yourself, never another project's files or a brand's own 3D models.
- 3D models you own (for example a car): they stay on your own Home Assistant and never go into this repository, see [docs/models.md](docs/models.md).
## How changes flow
- Work happens on `dev`; `main` is what HACS users receive and only moves with a release. Larger features are developed on a branch and merged through a pull request, so CI runs before the merge.
- Commit messages: a short summary in the style `feat: …`, `fix: …`, `docs: …`, `build: …`, `test: …` (Conventional Commits), with the issue number when there is one.
- Every user-visible change goes into `CHANGELOG.md` under **Unreleased** in the same commit.
- A release: `manifest.json` version, the changelog section, a tag `v<version>` on `main` and a GitHub release with the changelog text. The release workflow then attaches `nextfloor.zip`, which HACS installs.
## Version numbers
Versions read `0.MINOR.PATCH` or `0.MINOR.PATCH.HOTFIX`. The number tells what an update brings:
| Part | Example | When |
| --- | --- | --- |
| **Hotfix** | 0.26.5 → 0.26.5.1 | A bug reported in an issue that breaks something in the current release. The hotfix holds that fix only, nothing else from `dev`. |
| **Patch** | 0.26.5.x → 0.26.6 | The usual release: fixes and small additions collected on `dev`, nothing anyone has to change. The hotfix part is dropped again. |
| **Minor** | 0.26.x → 0.27.0 | A planned release around one big topic, or anything users have to act on: a storage migration, a removed or renamed option, changed card YAML. Rule of thumb: if someone has to do or relearn something after the update, it is a minor. |
| **Major** | 1.0.0 | Once, when storage format, card YAML and plugin API are stable and documented, and no known bug loses data or crashes. |
- A wish or an improvement is never a hotfix, even when it comes as an issue: it ships with the next patch.
- **A hotfix:** branch `hotfix/<version>` from the release tag, the fix and its changelog section `## [<version>]`, a pull request into `main`, then the release. Afterwards `main` is merged into `dev`, so the next release is a fast-forward again. The fix lands on `dev` as well and is part of the next patch.
- Before a minor, a pre-release `0.27.0-beta.1` can go out on GitHub for those who switched on betas.
- Counted on their own, not with the app version: the plugin API (`apiVersion`) only climbs when plugins would break, and a change of the stored plan format always means a minor.
- Home Assistant and HACS accept and sort the four-part numbers (0.26.5 < 0.26.5.1 < 0.26.5.10 < 0.26.6).
- Security problems go through [private reporting](SECURITY.md), not a public issue.
## Translations
German and English are built in. Further languages are files in `frontend/lang/<code>.json` (keys as in `frontend/src/i18n.ts`), fetched only when Home Assistant runs in that language; a key a file lacks shows in English. They are community-maintained: new texts land in German and English first. Pack items and paint colours are named under `pack:<pack>:<item>`, `packname:<pack>` and `color:<colour>`. The integration's own texts are in `custom_components/nextfloor/translations/`.
## Ideas and bugs
[Discussions](https://github.com/therealMRBK/NextFloor/discussions) for ideas and questions, [issues](https://github.com/therealMRBK/NextFloor/issues/new/choose) for bugs. For a bug, the version, your Home Assistant version and what you expected help most.