Skip to content

feat: add relation-network templates: relation-network-simple-circle-… - #197

Merged
Aarebecca merged 3 commits into
antvis:mainfrom
taosin:feat/relation-network-templates
Feb 6, 2026
Merged

Aarebecca merged 3 commits into
antvis:mainfrom
taosin:feat/relation-network-templates

Conversation

@taosin

@taosin taosin commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

变更说明

  • 新增内置模板:relation-network-simple-circle-node、relation-network-icon-badge,基于已有结构 relation-network(力导向布局)提供两种节点样式。
  • 更新模板列表:.skills/infographic-creator/SKILL.md、.skills/infographic-syntax-creator/references/prompt.md 中的可用模板列表。

使用方式

数据格式与现有 relation 类模板一致,支持 nodes + relations 或兜底 items(中心-多节点由力导向自动布线):

infographic relation-network-simple-circle-node
data
  title 概念关系网络
  nodes
    - id center
      label 核心概念
    - id a
      label 概念 A
  relations
    center -> a

如下图示:
截屏2026-02-05 09 01 13
截屏2026-02-05 09 00 55
截屏2026-02-05 09 00 40

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @taosin, 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!

此拉取请求引入了两个新的关系网络图表模板,旨在扩展图表生成能力,为用户提供更多样化的节点样式选择。这些模板基于现有的力导向布局,并已集成到内置模板配置和相关文档中,方便用户发现和使用。

Highlights

  • 新增关系网络模板: 新增了两个内置的关系网络模板:relation-network-simple-circle-node 和 relation-network-icon-badge。
  • 节点样式扩展: 这两个新模板基于现有的力导向布局 relation-network 结构,提供了两种不同的节点样式(简单圆形节点和图标徽章节点)。
  • 文档更新: ���新了技能文档和提示词引用文档中的可用模板列表,以包含新添加的模板,方便用户发现和使用。
Changelog
  • .skills/infographic-creator/SKILL.md
    • 在可用模板列表中新增了 relation-network-icon-badge 和 relation-network-simple-circle-node。
  • .skills/infographic-syntax-creator/references/prompt.md
    • 在提示词引用文档的模板列表中新增了 relation-network-icon-badge 和 relation-network-simple-circle-node。
  • src/templates/built-in.ts
    • 新增了 relation-network-icon-badge 模板的定义,其设计结构为 relation-network,项目类型为 icon-badge。
    • 新增了 relation-network-simple-circle-node 模板的定义,其设计结构为 relation-network,项目类型为 simple-circle-node。
Activity
  • 此拉取请求目前没有人工活动记录。
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@gemini-code-assist gemini-code-assist 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.

Code Review

本次变更主要是新增了两个基于 relation-network 结构的内置模板:relation-network-simple-circle-node 和 relation-network-icon-badge,并更新了相关文档。代码实现遵循了项目中现有的模式,整体上是清晰和正确的。

我发现新增的模板定义存在一些代码重复,虽然这与文件中的现有风格一致,但我还是在 src/templates/built-in.ts 文件中提出了一条关于代码可维护性的建议,旨在通过重构减少重复代码。此评论已保留,因为它不与提供的规则冲突。

Comment thread src/templates/built-in.ts Resolved
@codecov-commenter

codecov-commenter commented Feb 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 45.62%. Comparing base (631c04c) to head (382618e).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #197      +/-   ##
==========================================
+ Coverage   45.59%   45.62%   +0.02%     
==========================================
  Files         335      335              
  Lines       26834    26848      +14     
  Branches     2151     2151              
==========================================
+ Hits        12236    12250      +14     
  Misses      14588    14588              
  Partials       10       10              
Flag Coverage Δ
infographic 45.62% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/templates/built-in.ts 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
Comment thread .skills/infographic-creator/SKILL.md Outdated
- relation-dagre-flow-tb-animated-simple-circle-node
- relation-dagre-flow-tb-badge-card
- relation-dagre-flow-tb-simple-circle-node
- relation-network-icon-badge

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.

这两个模版可以先加到 src/templates/built-in.ts 即可,SKILL 和 prompt 可以先不加

remove templates:
- relation-network-icon-badge
- relation-network-simple-circle-node
@Aarebecca
Aarebecca merged commit 11bfa9a into antvis:main Feb 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants