Skip to content

Fix: Switching templates results in a few extra data entries in the entity specification. - #17514

Merged
wangq8 merged 1 commit into
infiniflow:mainfrom
cike8899:feat-structure-wiki
Jul 29, 2026
Merged

wangq8 merged 1 commit into
infiniflow:mainfrom
cike8899:feat-structure-wiki

Conversation

@cike8899

Copy link
Copy Markdown
Contributor

Summary

Fix: Switching templates results in a few extra data entries in the entity specification.

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jul 29, 2026
@cike8899 cike8899 added the ci Continue Integration label Jul 29, 2026
@cike8899
cike8899 marked this pull request as draft July 29, 2026 05:59
@cike8899
cike8899 marked this pull request as ready for review July 29, 2026 05:59
@coderabbitai

coderabbitai Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

SectionFieldGrid reconciliation now includes the selected template kind in both create and edit configuration flows. The related renderSectionTabs callbacks also update when kind changes.

Changes

Template kind reconciliation

Layer / File(s) Summary
Section field grid rendering
web/src/pages/user-setting/compilation-templates/{create-next,edit-next}/components/template-configuration.tsx
SectionFieldGrid keys combine activeFieldsPath with kind, and renderSectionTabs callbacks include kind in their dependencies.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Poem

I’m a rabbit with a key in my paw,
Rebuilding grids by kind—hop hop!
When templates change their tune,
Fresh fields appear quite soon,
And stale views quietly stop.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title matches the main fix: template switching causing extra entity-spec entries.
Description check ✅ Passed The description includes the required Summary section and states the issue being fixed.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@wangq8
wangq8 merged commit e5a7bee into infiniflow:main Jul 29, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants