45 lines
5.1 KiB
Markdown
45 lines
5.1 KiB
Markdown
# DuneRealms website working instructions
|
|
|
|
## Repository ownership
|
|
|
|
- `unimatrix/web:main` owns the website, control panels, web APIs and their deployment configuration.
|
|
- `unimatrix/plugins:main` owns Minecraft plugins, resource packs, game-server configuration and worlds. Do not import or deploy those components from this repository.
|
|
- `dev/MC` is a historical development reference. Check actual subtree hashes before importing anything: the latest website, item cards and cookbook were already present on web/main when the repositories were separated on 29 November 2026.
|
|
- The GitHub `unimatrixgit/mcdune-backup` repository is a recovery backup. Its existence does not authorise a rollback or replacement of newer work.
|
|
|
|
## Changes and review
|
|
|
|
- Code and test locally, commit to a task branch and push a pull request. Do not push directly to main or merge unrelated branches.
|
|
- Preserve unrelated work and game/account data. Never change identity, permissions, balances or progression as a workaround.
|
|
- Use the current owner instructions as authoritative. Historical combined-repository plans and role resets are superseded.
|
|
- Merge only the exact reviewed commit after required checks and owner approval. Do not bypass an automatic approval rejection through another tool or Git command.
|
|
- Keep the current website PR focused and coordinate overlapping changes before editing another chat's files.
|
|
|
|
## Build inputs and checks
|
|
|
|
- Website source and required data live under `website/`. Cookbook inputs live under `website/data/cookbook`, with recorded source hashes.
|
|
- Website item-design export utilities live in `website/scripts`. `tools/README.md` is a temporary compatibility input for the previously installed staging command; no plugin tooling belongs there.
|
|
- Use Node22 and the locked pnpm dependencies. Run `pnpm build` and `pnpm test` from `website/`.
|
|
- Run `.forgejo/tests/web-deploy.test.mjs` with Node and `website/ops/test_*.py` with Python on Linux. The Linux deployment checks require `fcntl` and cannot pass natively on Windows.
|
|
- Tests that create local HTTP servers need permission for loopback connections. Report environmental failures accurately and rerun with the needed permission; do not weaken production code to hide them.
|
|
- Required release evidence includes the commit, actual checks, CI run, generated artifact and live serving revision. A build or artifact upload is not proof of deployment.
|
|
- Owner's mandatory release rule, 29 November 2026: EVERY plugin, page, asset and configuration alteration goes through the committed build pipeline. Do not publish independently created plugin JARs/pages, copy local edits live, or leave direct live patches outside the build. SSH may resolve a blocker, but its persistent correction must be committed and included in the next verified build.
|
|
|
|
## Access and server changes
|
|
|
|
- Prefer Composio for DuneGit metadata, pull requests and CI actions. Local HTTPS Git is authorised for code, commits and pushes.
|
|
- Server SSH is restricted to the owner's designated coordinating web/scope chat for resolving blockers. Other agents/chats must not use SSH without a later explicit owner change.
|
|
- Any necessary server alteration must also be reflected in source or deployment configuration and committed, with verification, so later builds retain the fix. Do not leave undocumented hot patches.
|
|
- Never write credentials, private keys, tokens or credential-bearing URLs to source, commits, logs or ordinary artifacts.
|
|
|
|
## Product behavior
|
|
|
|
- Preserve the accepted DuneRealms design and reuse existing navigation, services and domain permissions.
|
|
- DuneForge is the existing `#forge/git-workspace` workspace; the root DuneGit register is `/git/`.
|
|
- Item cards display authoritative metadata from native Bukkit items or a verified signed HQ design. Do not invent quality, marks, lore, enchantments or stats from material names.
|
|
- Official CMS Exchange publications use the existing item-definition key and an immutable `cms.item` binding to the exact In-game Bank Treasury account. Player resales of custom items pay the player. Preserve the recovered HQ publisher, recipient-bound `/redeem` gift flow and atomic publication/payment/delivery receipts; do not replace them with placeholders or infer an official payee from an item's name or origin alone.
|
|
- Preserve real voting, banking and item-issuance boundaries. Public presentation must not expose serialized items, signatures or service credentials.
|
|
- Describe what is coded, tested, merged and deployed separately. Mark unavailable features honestly.
|
|
- The owner requires one shared header and footer across portal, CP and other website surfaces. Use one canonical source and publication path; aligning labels on separate implementations is insufficient. Verify signed-in rendering as well as emitted HTML.
|
|
|
|
- Workspace menus (Staff, User CP and Bank) must display every menu item in the normal page flow. Never add a viewport height cap, sticky scrolling container or independent scrollbar to `#sidebar` or `#sidebar-right`. Scroll the main page; do not hide overflow to conceal unreachable links. Verify this after shared stylesheet publication.
|

Staff