Skip to content

docs(docs): clarify native document icon limitations - #2891

Open
maojiebc wants to merge 1 commit into
larksuite:mainfrom
maojiebc:docs/native-document-icon-limitations
Open

maojiebc wants to merge 1 commit into
larksuite:mainfrom
maojiebc:docs/native-document-icon-limitations

Conversation

@maojiebc

@maojiebc maojiebc commented Nov 4, 2026 •

Copy link
Copy Markdown

Summary

Agents handling requests to change a document's native title emoji can confuse it with a cover, a Drive preview icon, or an emoji inserted into the title text. Document the current capability boundary and direct users to the supported manual UI flow while the public API request remains open.

Changes

  • Add a native title icon routing note to the Docs skill.
  • Explain that docs +resource-* supports covers only, with no supported --type icon or --emoji flag.
  • Clarify that drive +cover --spec icon downloads a file-list preview preset; it does not expose editable title-icon metadata.
  • Link the public Docx documentation, official UI instructions, and the existing feature request. Avoid claims about internal storage, prioritization, or a future release schedule.
  • Warn agents against silently renaming documents by prepending emoji when the user requested a native icon.

This is documentation only. It does not implement native document icon editing or resolve the upstream API capability request.

Test Plan

  • node scripts/skill-format-check/index.js
  • git diff --check
  • Local Markdown reference targets and section anchors verified for all three changed files.
  • Cross-checked current resource-cover validation and Drive preview implementation, the official Go SDK's Document / DocumentDisplaySetting models, and Feishu's document-icon UI instructions.
  • make quality-gate QUALITY_GATE_CHANGED_FROM=origin/main (includes the canonical build).
  • No live tenant writes or Go behavior tests: no executable code, command flags, request shapes, or output contracts change.

Related Issues

Summary by CodeRabbit

  • Documentation
    • Clarified that the CLI cannot read, set, or remove a document’s native title icon.
    • Explained the difference between native title icons, cover images, file-list icons, and emoji in document text.
    • Added guidance on managing native title icons through the client or web interface.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


maojiebc seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions github-actions Bot added domain/ccm PR touches the ccm domain size/M Single-domain feat or fix with limited business impact labels Nov 4, 2026
@coderabbitai

coderabbitai Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The documentation states that the CLI cannot read, set, or remove native title icons. It distinguishes these icons from covers and downloadable file-list icons, and points to the client or web interface for manual changes.

Changes: Native Title Icon Guidance

Layer / File(s) Summary
Icon scope and instructions
skills/lark-doc/SKILL.md, skills/lark-doc/references/lark-doc-resource-cover.md, skills/lark-drive/references/lark-drive-cover.md
The documentation describes the CLI’s native title icon limitations, distinguishes title icons from covers and downloadable icons, and directs users to the client or web interface for changes.

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

Change: Other

Suggested reviewers: sunpeiyang996, liujinkun2025

Merge Risk: Minimal · up to 7661e

The guidance distinguishes native document title icons from covers and downloadable preview icons. No actionable merge-blocking risk is identified; merge after normal checks and contribution requirements are satisfied.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title "docs(docs): clarify native document icon limitations" matches the main change. The PR adds routing notes and reference text that explain native title icons are not supported by the CLI, and…
Description check Passed The description covers the summary, the list of changes, and the test plan. It follows the template's section headings. The Test Plan omits the template's unit-test and manual-verification checkboxes.…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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.
Full details: Title check

Explanation

The title "docs(docs): clarify native document icon limitations" matches the main change. The PR adds routing notes and reference text that explain native title icons are not supported by the CLI, and how they differ from covers, Drive preview icons, and title-text emoji. The title uses a Conventional Commits prefix. The scope "docs(docs)" repeats the word and adds no information, but it does not make the title unclear.

Full details: Description check

Explanation

The description covers the summary, the list of changes, and the test plan. It follows the template's section headings. The Test Plan omits the template's unit-test and manual-verification checkboxes. The author replaced them with documentation-specific checks, which is reasonable for a docs-only change. The Related Issues section links #2834 and says the feature request stays open, so it does not use the template's Closes/Fixes wording. The description explains the scope and the reason for the documentation change.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (3 skipped: 3 unsupported.)

Finishing Touches
Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Tip

🎯 Customize your risk assessments

Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

✅ Automatic approvals, with your rules

Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

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
Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 241b662d-544e-40ec-a760-74add3b59fa3
Commits

Reviewing files that changed from the base of the PR and between d520948 and 7661ed5.

Files selected for processing: 3
  • skills/lark-doc/SKILL.md
  • skills/lark-doc/references/lark-doc-resource-cover.md
  • skills/lark-drive/references/lark-drive-cover.md

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

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain/ccm PR touches the ccm domain size/M Single-domain feat or fix with limited business impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants