- Wrap /api/currentUser response in { data } in oneapi.json so the
generated service matches the actual mock and worker response shape,
restoring msg.data dereference in getInitialState (regression would
have left currentUser as the response envelope, breaking access checks)
- Narrow the customFunctionName cast from () => any to () => string
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Replace `{`, `}`, and `-` characters with underscores before building
function names from path segments. This prevents invalid identifiers
when the OpenAPI path contains parameters like `{id}` or kebab-case
segments.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
The openapi generator now returns API.CurrentUser directly instead of
wrapping it in { data: API.CurrentUser }. Update app.tsx to use the
return value directly instead of accessing msg.data.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Add customFunctionName hook to capitalize operationId first letter,
ensuring generated parameter type names follow PascalCase convention
(e.g., GetFakeCaptchaParams, RuleParams) consistent with schema-derived
types (e.g., CurrentUser, LoginParams). Update service imports to
match regenerated file organization.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* fix: remove legacy ant-legacy-form-item CSS class references
Replace all `.ant-legacy-form-item` selectors with `.ant-form-item`
in StandardFormRow, advanced-form, and account settings styles.
These legacy class names were removed in antd v6.
Closes#11814
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* fix: replace ant-form-item-control-wrapper with ant-form-item-control
The `.ant-form-item-control-wrapper` class was removed in antd v4+.
The correct class is `.ant-form-item-control`. Three files were still
referencing the legacy class name.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
The react-doctor GitHub Action workflow and its corresponding
React Review badge in README are no longer needed.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* feat: add pro-upgrade skill for AI-assisted project upgrades
Add a Claude Code skill and Codex-compatible instructions that enable
AI agents to upgrade Ant Design Pro projects by diffing the latest
template and intelligently merging framework changes while preserving
business code. Works for any version gap (v5→v6, v6.x→latest, etc.).
Closesant-design/ant-design-pro#11800
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* chore: revert AGENTS.md to simple link to CLAUDE.md
CLAUDE.md already contains the Upgrading section, no need to
duplicate in AGENTS.md.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* chore: replace AGENTS.md with symlink to CLAUDE.md
Avoid duplicating content — Codex reads AGENTS.md which now points
directly to CLAUDE.md where all guidance (including the pro-upgrade
skill reference) lives.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* docs: add upgrade FAQ to cheatsheets
Add guidance for upgrading Ant Design Pro projects using the
pro-upgrade skill in both Chinese and English cheatsheets.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* docs: add skill install instructions to upgrade FAQ
Users upgrading from older versions won't have the skill file,
so provide a curl command to download it from the latest template.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* docs: use npx skills add for skill installation
Replace curl command with `npx skills add ant-design/ant-design-pro`
in both cheatsheets.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* fix: address PR review feedback
- Preflight warning: change from Chinese-only to English
- Dependency merging: preserve user deps not found in template by default
- antd migrate: use version placeholders instead of hardcoded "5 6"
- Business files: use recursive glob src/services/**/*.ts
- Cheatsheet: temper "upgrade" to "assist" to avoid overpromising
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>