Add CLAUDE.md for TemplateProject#25
Conversation
Code Review — PR #25: Add CLAUDE.md for TemplateProjectOverview: This is a documentation-only PR that adds a Factual accuracyEverything cross-checks correctly against the source except one minor framing issue:
The semantics are correct, but the order is the opposite of how the code is structured: the A reader who opens Also worth explicitly mentioning the Suggestions
What's done well
Minor nits
Verdict: Approve with the branch-ordering clarification as the one substantive fix. The rest are minor suggestions that would improve navigation but aren't blockers. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 11bc828019
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| ## When duplicating | ||
|
|
||
| `../duplicate.py` rewrites names and IDs across the project tree. After duplication, the layout pattern above is what you keep; the parameters, control tags, and DSP are what you replace. |
There was a problem hiding this comment.
Ensure duplicated CLAUDE.md is renamed
When a new plugin is created with duplicate.py, this new file is copied from TemplateProject but its contents are not rewritten because duplicate.py explicitly lists CLAUDE.md in FILTERED_FILE_NAMES. That leaves the copied project's agent instructions still saying TemplateProject and claiming names were rewritten, so agents working in the duplicated plugin get stale project context. Either allow this file to go through the rename pass or note/exclude it from copied project instructions.
Useful? React with 👍 / 👎.
Code ReviewOverviewThis PR adds a
|
| Area | Assessment |
|---|---|
| Correctness | ✅ The duplicate.py change is correct and well-motivated |
| Documentation quality | ✅ Accurate, concise, and targets real pain points |
| Project conventions | ✅ Consistent with the root CLAUDE.md style |
| Test coverage | |
| Security | ✅ No concerns |
This is a solid, low-risk addition. The minor suggestions above are all optional polish — nothing blocks merging.
Documents the responsive IGraphics layout pattern (two-branch mLayoutFunc keyed off NControls(), SetLayoutOnResize, corner resizer) and gives a checklist for adding new controls without breaking resize behavior.
13b41ba to
472ea1b
Compare
Summary
TemplateProject.cpp(two-branchmLayoutFunckeyed offNControls(),SetLayoutOnResize(true), corner resizer).SetTargetAndDrawRECTsin the resize branch,AttachControlin the initial branch).config.hsize/ID fields, and what to keep vs. replace after runningduplicate.py.Test plan