Skip to content

docs(sheets): chart / filter / workbook reference corrections - #1351

Merged
zhengzhijiej-tech merged 3 commits into
feat/lark-sheets-developfrom
fix/chart-dim-insert-example
Jun 9, 2026
Merged

docs(sheets): chart / filter / workbook reference corrections#1351
zhengzhijiej-tech merged 3 commits into
feat/lark-sheets-developfrom
fix/chart-dim-insert-example

Conversation

@zhengzhijiej-tech

@zhengzhijiej-tech zhengzhijiej-tech commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Consolidated reference-doc corrections for the sheets skill (synced from the spec source; the larksuite-cli skills/lark-sheets/ tree is generated, not hand-edited).

1. chart: invalid +dim-insert example (P0)

The placement example used non-existent flags --dimension/--start/--end. The real signature is --position + --count; copying it failed Validate with --position is required. Fixed to +dim-insert --position V --count 6 (insert 6 columns before V, i.e. after U).

2. chart: position.row coordinate base

position.row is 0-based (first row = row:0) but was never labeled, while +dim-insert --position and A1 ranges use 1-based rows. Added an explicit 0-based note in the placement checklist.

3. chart: inline --properties quoting pitfall

The three runnable examples contained a quoted sheet prefix ('Sheet1'!A1) inside an inline single-quoted --properties '{...}'; bash strips the inner quotes (and splits names with spaces into words), corrupting the JSON. Converted them to a stdin heredoc (--properties - <<'JSON' … JSON, whose quoted delimiter performs no shell substitution); kept the @file alternative and added a one-line pitfall note.

4. filter / filter-view: condition enums

conditions[].type / compare_type are nested too deep to render in the flag table, so the docs only exposed two values via examples. Added the full type × compare_type × values enum table to both, and called out the equals/notEquals (with s) vs equal/notEqual (no s) gotcha.

5. workbook: +sheet-create --index 0-based

The flag description omitted the coordinate base while siblings +sheet-move / +sheet-copy already state 0-based. Aligned the description.

Scope

skills/lark-sheets/references/lark-sheets-{chart,filter,filter-view,workbook}.md + shortcuts/sheets/data/flag-defs.json, all synced from the spec; the corresponding source fixes (canonical + base) are tracked upstream.

The chart reference's placement example used non-existent flags
--dimension/--start/--end for +dim-insert. The real signature is
--position (required) + --count (required); copying the example
fails Validate with "--position is required". Replace it with
+dim-insert --position V --count 6 (insert 6 columns before V,
i.e. after U), aligning with the sheet-structure reference.
@coderabbitai

coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f537f31e-c5f0-4b36-bda4-e67a9ccb682b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/chart-dim-insert-example

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 and usage tips.

@github-actions github-actions Bot added the size/M Single-domain feat or fix with limited business impact label Jun 9, 2026
Sync three reference-doc corrections from the spec source:

1. chart: label position.row as 0-based (first row = row:0), distinct
   from the 1-based row numbers used by A1 ranges and +dim-insert
   --position, removing the row-base ambiguity.

2. chart: convert the three runnable examples whose JSON contains a
   quoted sheet prefix ('Sheet1'!A1) from inline single-quoted
   --properties '{...}' to a stdin heredoc (--properties - <<'JSON').
   Inside an inline single-quoted string bash strips the inner quotes
   around the sheet name (and splits names with spaces into words),
   corrupting the JSON; a quoted heredoc delimiter performs no shell
   substitution and preserves it. Adds a short note on the pitfall.

3. filter / filter-view: add the full conditions[].type x compare_type
   enum table (text / number / multiValue / color and their respective
   compare_type values and values shape), and call out the
   equals/notEquals (with s) vs equal/notEqual (no s) gotcha. The docs
   previously only showed two values via examples.
The base flag description for +sheet-create's --index omitted the
coordinate base, while its siblings +sheet-move ("Target position
(0-based)") and +sheet-copy already state 0-based. Align the description
so the index base is unambiguous. Synced from the spec source
(flag-defs.json + workbook reference).
@github-actions github-actions Bot added domain/ccm PR touches the ccm domain size/L Large or sensitive change across domains or core paths and removed size/M Single-domain feat or fix with limited business impact labels Jun 9, 2026
@zhengzhijiej-tech zhengzhijiej-tech changed the title docs(sheets): fix invalid +dim-insert example in chart reference docs(sheets): chart / filter / workbook reference corrections Jun 9, 2026
@zhengzhijiej-tech
zhengzhijiej-tech merged commit bed30c4 into feat/lark-sheets-develop Jun 9, 2026
4 checks passed
@zhengzhijiej-tech
zhengzhijiej-tech deleted the fix/chart-dim-insert-example branch June 9, 2026 08:47
xiongyuanwen-byted pushed a commit that referenced this pull request Jun 22, 2026
docs(sheets): chart / filter / workbook reference corrections
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/L Large or sensitive change across domains or core paths

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant