Explain what the '# TODO Later' section at the top of CHANGELOG.md is for (open issues investigated but not fixed here, each with a concrete reason), how it fits the 'Fix open issues' process (fix / close-if-already-fixed / else add to TODO Later with the reason), the category buckets (need infra/running-server, need the running app to reproduce, already-correct, feature/by-design, needs a maintainer decision), that entries use issue links (not commit links) since nothing was committed, and that fixed issues must be REMOVED from the list once their Fixes #NNNN commit closes them. Thanks to xet7.
11 KiB
CLAUDE.md — instructions Claude reads first
Claude Code reads this file at the repo root before doing work here. Follow it.
First: are you the maintainer or a contributor?
Check the current git identity before committing or releasing:
git config user.name && git config user.email
- Maintainer mode — ONLY when the identity is exactly
Lauri Ojansivu <x@xet7.org>(nameLauri Ojansivu, emailx@xet7.org). Then, and only then: commit directly to the current branch asLauri Ojansivu <x@xet7.org>with no AI trailer and no pull request, and the publishing / release steps below are available. (Per the standing rule you still commit only; do not push unless explicitly asked.) - Contributor mode — any other git identity. Then: do not commit directly to the branch and do not run any release/publishing step. Make changes on a branch and open a pull request for the maintainer to review. The "commit as Lauri Ojansivu", "commit directly", and all release instructions below are maintainer-only and do not apply to you.
Everything below marked as maintainer-specific (committing directly, the exact commit author, and the entire "Making a release" / publishing flow) applies only in maintainer mode. The rest (translation policy, CHANGELOG structure, tests, validating from code) is good practice for everyone.
Process: "Fix open issues"
When asked to fix an open issue (one issue at a time):
-
Read the whole issue — the description AND all comments (e.g.
gh issue view <n> --comments, or the GitHub API.../issues/<n>/comments). -
If it is a bug, first check whether it is already fixed in the current WeKan AND FerretDB source code (read the actual code, not just changelogs). It may have been fixed already.
-
If it is NOT fixed yet, fix it, using the newest documentation and issues of the dependencies involved, checking where the newest MAINTAINED dependency lives and reading its source and issues:
- Meteor 3 docs — https://docs.meteor.com/
- Meteor 3 source + issues — https://github.com/meteor/meteor/issues
- other Meteor software docs/code (e.g. Rocket.Chat) for how they solved it
- Meteor forums — https://forums.meteor.com
- AtmosphereJS — https://atmospherejs.com/ ; Packosphere — https://packosphere.com/
- Meteor Community Packages — https://github.com/meteor-community-packages
- Meteor-Files — https://github.com/veliovgroup/Meteor-Files
- npm — https://www.npmjs.com
-
After fixing, add tests — unit tests, negative tests, and UI tests where appropriate — and run the new tests to verify they pass (see Tests / the sandbox build+test instructions in
docs/Security/Sandboxes/vscode/README.md). -
Commit (maintainer only — when the current git user is
Lauri Ojansivu <x@xet7.org>), with no "Co-Authored" / AI trailer, a message body ending:Thanks to (GitHub nickname of the issue creator) and xet7 ! Fixes #1234, -
If the bug is already fixed, still add a commit that CLOSES the issue (a commit whose message ends
Fixes #1234,), noting where/when it was fixed.
Fix from source and test — do not guess. If the environment cannot run the relevant test (e.g. Docker is unavailable in this sandbox), reproduce as closely as possible from source and say clearly what was and was not verified.
Translations (Transifex ↔ machine translations)
WeKan translations live in imports/i18n/data/<lang>.i18n.json (flat
key -> string, 2-space indent, key order matches en.i18n.json). Transifex holds
the human translations. The policy is: never overwrite a human translation with a
machine (or English) one, but always take the newest translations from Transifex.
- Pull with
releases/translations/pull-translations.sh. It runstx pull -a -f(which fills every string that is UNtranslated on Transifex with the English source) and then a per-key merge (releases/translations/merge-translations.mjs) that, for every language file and every key:- Transifex has a real translation (pulled value differs from English) → keep it (the newest human translation always wins);
- the pull reverted it to English but a human translation is committed in git → restore the committed translation (a pull never reverts a human translation, even in files that also received real new Transifex translations);
- no translation anywhere (untranslated on Transifex AND never committed) → leave the English source as a placeholder. This is the only case a non-human value is used. A separate machine-translation step may fill only these English placeholders, so machine translation can never overwrite a human translation.
- Restored languages are pushed back to Transifex so they stop reverting.
- So: only missing strings are machine-translated, and only when missing everywhere. Do not add machine translations over existing human/Transifex strings, and do not let a pull drop existing translations.
General practices (from ../log/v10/Claude.txt)
- [maintainer only] Commit as
Lauri Ojansivu <x@xet7.org>, with no "Co-Authored-By" or any other AI trailer, directly to themainbranch of WeKan and themain-v1branch of the FerretDB fork. Do not make pull requests. (Contributors do the opposite: work on a branch and open a pull request — see the top section.) - [maintainer only] Commit only. Do not push (unless explicitly asked).
- Lauri Ojansivu (xet7) maintains WeKan (https://wekan.fi) and the FerretDB v1 fork.
- Directory structure:
wekan— this repo (https://github.com/wekan/wekan); seedocs/DeveloperDocs/Directory-Structure.md;CHANGELOG.mdat root.../w/wekan.fi— the WeKan website.FerretDBsubdirectory (when present) — https://github.com/wekan/FerretDB, its ownCHANGELOG.md. FerretDB.gofiles must contain no application-specific names (say "the client" / "a Meteor 3 driver" / a bare#NNNN); itsCHANGELOG.mdmay usewekan/wekan#NNNN.sandstormsubdirectory (when present) — https://github.com/sandstorm-io/sandstorm.
CHANGELOG
- During development, add entries under a new
# Upcoming WeKan ® releasesection above the newest release (FerretDB uses## Upcoming FerretDB release). Do not hand-editpackage.jsonor any other version reference — the release workflow bumps those. - WeKan Upcoming structure — CRITICAL VULNERABILITIES first (link to
https://wekan.fi/hall-of-fame/...bleed/), then new features, then updates (Thanks to dependabot.), then bug fixes; each bullet is- [desc](https://github.com/wekan/wekan/commit/...).followed byThanks to (issue creator's GitHub nickname) and xet7., and the section ends withThanks to above GitHub users for their contributions and translators for their translations. # TODO Latersection — a triage backlog near the TOP ofCHANGELOG.md(above the version sections), for open issues that were investigated but not fixed here, each recorded with a concrete REASON so whoever picks it up next knows why. Use it when working through open issues (the "Fix open issues" process): for each issue, either fix it (commit endingFixes #NNNN,), close it if already fixed in current code (commitClose #NNNN/Fixes #NNNN,), or — when it can't be fixed/verified in this environment — add it toTODO Laterunder the matching category with the reason. Group issues by category bullet, e.g.: Need specific infrastructure / a running server stack (LDAP/WebHooks/Sandstorm/proxy — environment owners), Need the running app to reproduce/verify (runtime UI / publication / mergebox / router state, not unit-testable), Already correct in the current code (verified by reading; could not reproduce), Feature requests / behaviour-by-design rather than bugs, and Needs a maintainer decision on the intended contract. Each entry is a normal issue link[#NNNN](https://github.com/wekan/wekan/issues/NNNN) (one-line reason)— issue links here, NOT commit links (nothing was committed). Keep it current: when an issue inTODO Latergets fixed, REMOVE it from the list (its fix commit'sFixes #NNNNcloses it); do not leave fixed issues in the backlog. This is the only CHANGELOG place that uses issue links and lives above the releases; everything else uses the per-release commit-link bullets above.- FerretDB Upcoming structure —
### New Features 🎉,### Fixed 🐛,### Other Changes 🤖; entries end... by @xet7. Thanks to xet7. - Word-wrap both CHANGELOGs at ~80 chars, but never break a long link across lines (a link line may be longer).
Commit message structure
Do something.
Thanks to (original creator of issue) and xet7 !
Fixes #1234,
Fixes #1235.
Making a release — no version number needed [maintainer only]
All publishing / release steps below are maintainer-only. Contributors never run them.
- WeKan: run
./releases/release-all.sh(no arguments). It renames# Upcoming WeKan ® releaseto the next version (same increment as the last release; 9.99 → 10.00) dated today, commits + pushes, and triggers.github/workflows/release-all.yml(itsbumpjob bumpspackage.jsonand every version reference, then the release jobs tagv<new>and publish the GitHub Release). An explicitoldversion newversionpair still overrides. Adding entries under Upcoming is the only hand step. - FerretDB: run
./build.sh release-ferretdbfrom theFerretDBsubdirectory (no version). It renames## Upcoming FerretDB releaseto the next version with the correct git-tag link, commits + tags + pushes, then triggersrelease-all.yml(which in turn triggersdocker.ymlfor the multi-arch image). It refuses to re-release an already-tagged version.
Security issues
- Fix the vulnerability, add a CRITICAL section to the WeKan CHANGELOG like previous
entries, and update
../w/wekan.fi/hall-of-fame/index.htmland the vuln-name subdirectoryindex.htmllike previous security issues.
Tests
rebuild-wekan.sh/rebuild-wekan.bathave a menu to install dependencies, build WeKan and run tests.- Add tests, negative tests and UI tests for all new features and fixes that do not yet have tests. When adding a test, run or validate it and fix it until it works.
- "Check newest test logs": test logs are written outside this repo, in
../log/<datetime>/(one directory per run, e.g.../log/2026-07-21_20-58-09/). The newest datetime directory is the latest run. Each holds the Playwright per-browser logs (wekan-alltests-chromium.log,-firefox.log,-webkit.log), the mocha/unit log (wekan-alltests-mocha.log), the e2e/import logs, andwekan-test-server.log(the WeKan test server + database output). "Check the newest test logs" means: open the most recent../log/<datetime>/and read those.
Environment
- The editor (VSCode) runs inside a Flatpak sandbox, launched by
docs/Security/Sandboxes/vscode/vscode-sandbox.sh. What the sandbox allows/blocks and how it is set up is documented indocs/Security/Sandboxes/vscode/README.mdin that same directory — read it when something behaves differently than a normal host (file access, network, running services).
Always validate from the actual code
- When doing anything, check how it actually works in the code first.