Repository navigation
docs: sync interaction and spreadsheet API docs with source code - #3324
Conversation
Syncs interaction.en.md and interaction.zh.md API tables and interfaces to match the packages/s2-core/src/common/interface/interaction.ts source code, adding missing scrolling and highlight methods, and missing ScrollOffsetConfig properties in spreadsheet docs. Co-authored-by: Alexzjt <9548248+Alexzjt@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
你好 @Alexzjt,非常感谢你的贡献. Hello, @Alexzjt, Thanks for your contribution. In order to make the code more robust, please add the corresponding unit tests, and update the docs if there are API changes. |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the accuracy and completeness of the API documentation for the interaction and spreadsheet modules. It updates existing documentation to reflect the current type definitions and adds newly available methods and configuration options, ensuring that both English and Chinese documentation are synchronized with the codebase. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request aims to synchronize the API documentation with the source code. While many updates are correct, I've found several discrepancies in the method signatures and interface definitions in both the English and Chinese interaction documentation files. Specifically, the signatures for changeCell, highlightCell, and selectCell are incorrect, and the ChangeCellOptions interface is missing some properties. These inconsistencies could confuse users of the library. The changes in the spreadsheet documentation seem correct. Please address the comments to ensure the API documentation is fully aligned with the source code.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## next #3324 +/- ##
==========================================
+ Coverage 75.77% 78.70% +2.93%
==========================================
Files 257 224 -33
Lines 11994 12469 +475
Branches 2464 2830 +366
==========================================
+ Hits 9088 9814 +726
+ Misses 1398 949 -449
- Partials 1508 1706 +198 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Size Change: 0 B Total Size: 740 kB ℹ️ View Unchanged
|
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request synchronizes the API documentation with the source code, which is a great improvement for developers using the library. The changes in interaction.en.md, interaction.zh.md, spreadsheet.en.md, and spreadsheet.zh.md correctly reflect the latest type definitions and add missing methods. I've found a minor formatting issue in one of the markdown tables that could affect rendering. Please see my specific comment for details. Overall, good work on keeping the documentation up-to-date.
Note: Security Review has been skipped due to the limited scope of the PR.
Syncs interaction.en.md and interaction.zh.md API tables and interfaces to match the packages/s2-core/src/common/interface/interaction.ts source code, adding missing scrolling and highlight methods, and missing ScrollOffsetConfig properties in spreadsheet docs. Co-authored-by: Alexzjt <9548248+Alexzjt@users.noreply.github.com>
…vis#3324) * docs: sync interaction API docs with source code Syncs interaction.en.md and interaction.zh.md API tables and interfaces to match the packages/s2-core/src/common/interface/interaction.ts source code, adding missing scrolling and highlight methods, and missing ScrollOffsetConfig properties in spreadsheet docs. Co-authored-by: Alexzjt <9548248+Alexzjt@users.noreply.github.com> * docs: 按 CR 意见修改 * docs: sync interaction API docs with source code Syncs interaction.en.md and interaction.zh.md API tables and interfaces to match the packages/s2-core/src/common/interface/interaction.ts source code, adding missing scrolling and highlight methods, and missing ScrollOffsetConfig properties in spreadsheet docs. Co-authored-by: Alexzjt <9548248+Alexzjt@users.noreply.github.com> --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: Alexzjt <9548248+Alexzjt@users.noreply.github.com>
👀 PR includes
🔧 Chore
📝 Description
Synchronize the API documentation with the latest source code type definitions in
packages/s2-core/src/common/interface:interaction.en.mdandinteraction.zh.mdto match the currentChangeCellOptionsdefinition and add missing methods (e.g.scrollTo,scrollToCell,highlightCell,updateDataCellRelevantHeaderCells, etc) from theRootInteractionclass to the English API doc table.spreadsheet.en.mdandspreadsheet.zh.md'sScrollOffsetConfigconfiguration missing properties likerowHeaderOffsetXandskipScrollEvent.🖼️ Screenshot
🔍 Self-Check before the merge
PR created automatically by Jules for task 2074946402769805559 started by @Alexzjt