Skip to content

fix: change citation labels from "Fig. 1" to "[1]" - #19781

Merged
wangq8 merged 1 commit into
infiniflow:mainfrom
Yannnnnnny:fig
Sep 17, 2026
Merged

wangq8 merged 1 commit into
infiniflow:mainfrom
Yannnnnnny:fig

Conversation

@Yannnnnnny

Copy link
Copy Markdown
Contributor

Change citation markers from “Fig. 1” / “图 1” to the language-neutral format [1].
Rename “Show quote” to “Show citations” in the English interface.

@coderabbitai

coderabbitai Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: d902ea30-9c42-4053-93d1-52cfd8f0bfc2

📥 Commits

Reviewing files that changed from the base of the PR and between c0e1fa6 and 237b606.

📒 Files selected for processing (6)
  • web/src/components/markdown-content/index.tsx
  • web/src/components/next-markdown-content/index.tsx
  • web/src/components/next-message-item/reference-image-list.tsx
  • web/src/locales/en.ts
  • web/src/locales/zh.ts
  • web/src/pages/next-search/markdown-content/index.tsx

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

Citation references now display bracketed indexes such as [1]. The English quote action uses “Show citations”. The Chinese common.figure translation uses citation terminology.

Changes

Citation label updates

Layer / File(s) Summary
Bracketed citation markers
web/src/components/markdown-content/index.tsx, web/src/components/next-markdown-content/index.tsx, web/src/components/next-message-item/reference-image-list.tsx, web/src/pages/next-search/markdown-content/index.tsx
Citation markers and image labels now render as bracketed indexes instead of translated “Figure N” text.
Citation translation wording
web/src/locales/en.ts, web/src/locales/zh.ts
The English chat.quote value now says “Show citations”. The Chinese common.figure value now uses 引文.

Priority: ⬇️ Low

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

Change: Bug fix

Suggested reviewers: wangq8

Merge Risk: ⚪ Minimal · up to 237b6

The citation labels and wording changes have no supported merge-blocking risk.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 6 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: citation labels now use bracketed numbers instead of figure labels.
Description check ✅ Passed The description explains both intended changes and matches the pull request scope. It omits the required "### Summary" heading and detailed background context, but the content is mostly complete.
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.
  • Fix all pre-merge checks with AI

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

A rabbit sees brackets, neat and bright,
Citation numbers hop into sight.
“Show citations,” the button now sings,
While 引文 gives the Chinese wings.
Four little markers keep references right.

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

@wangq8
wangq8 merged commit c862400 into infiniflow:main Sep 17, 2026
1 check passed
@Yannnnnnny
Yannnnnnny deleted the fig branch September 17, 2026 08:07
huang-aoqin added a commit to tecpie/ragflow that referenced this pull request Sep 17, 2026
Preserve dev-specific features (citation streaming/tool_call, tenant model id, MinerU layout, rest_api_max_page_size, metadata safety fallbacks) while taking upstream main updates since d3a6aaa (infiniflow#19580..infiniflow#19781).

Co-authored-by: Cursor <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants