# playground.issp.gmbh / uiframework (cloccojs) - rules for coding assistants

These rules apply to every assistant that changes anything under `uiframework/` (Claude, Codex, OpenCode, ...) and to people.

## 1. Version every iteration

When you are done with a change to `uiframework/` (cloccojs components, gallery views, endpoints, styles), archive it **before you finish**:

```powershell
cd tools
.\New-VersionSnapshot.ps1 -Tool Claude -Title "One line: what changed" -Notes "point one","point two"
```

`-Tool` is the assistant you are: `Claude`, `Codex`, `OpenCode` (or `Human`, `Other`).
The script derives the version (yy.MM.ddHH from the newest file time, like `index.php`), keeps the state of this iteration in
`uiframework/versions/<version>/` and adds it to `uiframework/versions/versions.json`, which the **Licensing / Support** view shows
with a link to every archived version. Old versions are never overwritten or deleted. Do not edit anything inside
`uiframework/versions/<version>/` afterwards.

Run it once, after your last edit and after the checks, not after every small step.
The script also rewrites `uiframework/bom.json` (the bill of materials, `tools/New-Bom.ps1`) that the About dialog reads. If you add a module or a third-party component, nothing else needs doing: the BOM is generated from the files. If an application that uses cloccojs (alpha.meinbeleg.at) copied files from here, run `New-Bom.ps1` there too (see its header).

## 2. Bump the cache-busting suffix

`index.content.html` loads scripts and styles as `file?v=...`. When you change a file, change its `?v=` there (browsers cache them),
otherwise users keep running the old code.

## 3. License

cloccojs is MIT licensed, alternatively GPL v3.0, free of charge. Every code file in `uiframework/cloccojs/*.js|css` and the PHP files
starts with a one-line note:

`/* License: MIT (see ../license.txt); alternatively GPL v3.0. (c) 2026 ISSP Software und Service GmbH */`

New files get the same line (PHP: `//` comment after `<?php`). Do not add it to `vendor/`.

## 4. Languages

The gallery has 7 languages (`cloccojs/i18n.js`, `Object.assign(tr.xx, {...})`): de, en, fr, es, it, cs, sk. New keys: at least en, de, fr, es, it; cs and sk fall back to English.
