Skip to content

Feat: Alter "Compilation" to "Operator" - #17273

Merged
yingfeng merged 2 commits into
infiniflow:mainfrom
cike8899:feat-structure-wiki
Jul 23, 2026
Merged

yingfeng merged 2 commits into
infiniflow:mainfrom
cike8899:feat-structure-wiki

Conversation

@cike8899

Copy link
Copy Markdown
Contributor

@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jul 23, 2026
@coderabbitai

coderabbitai Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Updated English and Simplified Chinese flow-builder translations to use “Operator” terminology and describe operator templates, while shortening built-in template labels.

Changes

Operator terminology localization

Layer / File(s) Summary
Localized operator labels
web/src/locales/en.ts, web/src/locales/zh.ts
Updated template labels, compiler titles, and compiler descriptions to use operator terminology in both locales.

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

Suggested reviewers: euvre, dcc123456, lynn-inf

Poem

I’m a rabbit with a template to share,
“Operator” now hops through the air.
English and Chinese align,
With labels more fine—
Carrots for every clear phrase we prepare!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description only links to a commit and does not provide the required summary or background context. Replace the link-only text with a brief Summary explaining what changed and why, including any relevant background context.
✅ Passed checks (4 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 accurately reflects the main change: renaming "Compilation" to "Operator".

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.

@cike8899 cike8899 added the ci Continue Integration label Jul 23, 2026
@cike8899
cike8899 marked this pull request as draft July 23, 2026 02:58
@cike8899
cike8899 marked this pull request as ready for review July 23, 2026 02:58

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@web/src/locales/en.ts`:
- Around line 3197-3199: Update the related user-facing translation keys,
including knowledgeDetails.compilation,
knowledgeConfiguration.compilationTemplate, and setting.compilationTemplates, to
use the new “Operator” terminology consistently with compiler and
compilerDescription. Keep the labels semantically equivalent while replacing the
remaining “Compilation” wording.

In `@web/src/locales/zh.ts`:
- Around line 2791-2792: Complete the terminology rename in the zh locale by
updating the user-facing “编译” strings at the referenced flow-builder entries to
use the same “算子” terminology as compiler and compilerDescription. Preserve the
existing message meaning and formatting while ensuring all related labels and
descriptions in this flow-builder experience are consistent.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 214e05bc-5f4e-43df-adce-de41fe178b18

📥 Commits

Reviewing files that changed from the base of the PR and between 3bc39f9 and 8271c01.

📒 Files selected for processing (2)
  • web/src/locales/en.ts
  • web/src/locales/zh.ts

Comment thread web/src/locales/en.ts
Comment on lines +3197 to +3199
compiler: 'Operator',
compilerDescription:
'Compiles document chunks using knowledge compilation templates into structured artifacts.',
'Processes document chunks using operator templates into structured artifacts.',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Keep the terminology consistent within this locale.

This introduces “Operator” and “operator templates” while nearby user-facing strings still use “Compilation” (for example knowledgeDetails.compilation, knowledgeConfiguration.compilationTemplate, and setting.compilationTemplates). Update those remaining labels as part of the rename, or keep this text aligned with the existing terminology.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@web/src/locales/en.ts` around lines 3197 - 3199, Update the related
user-facing translation keys, including knowledgeDetails.compilation,
knowledgeConfiguration.compilationTemplate, and setting.compilationTemplates, to
use the new “Operator” terminology consistently with compiler and
compilerDescription. Keep the labels semantically equivalent while replacing the
remaining “Compilation” wording.

Comment thread web/src/locales/zh.ts
Comment on lines +2791 to +2792
compiler: '算子',
compilerDescription: '使用算子模板将文档块处理为结构化工件。',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift

Complete the terminology rename in this locale.

This now renders “算子”, but the same file still exposes user-facing “编译” terminology at Lines 410, 844, 1517-1518, 1531, and 1560. Users will see inconsistent terminology in the same flow-builder experience; update those strings as part of this rename.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@web/src/locales/zh.ts` around lines 2791 - 2792, Complete the terminology
rename in the zh locale by updating the user-facing “编译” strings at the
referenced flow-builder entries to use the same “算子” terminology as compiler and
compilerDescription. Preserve the existing message meaning and formatting while
ensuring all related labels and descriptions in this flow-builder experience are
consistent.

@yingfeng
yingfeng merged commit 1e445fb into infiniflow:main Jul 23, 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:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants