Repository navigation
feat: add relation-network templates: relation-network-simple-circle-… - #197
Conversation
…node / relation-network-icon-badge
Summary of ChangesHello @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
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
本次变更主要是新增了两个基于 relation-network 结构的内置模板:relation-network-simple-circle-node 和 relation-network-icon-badge,并更新了相关文档。代码实现遵循了项目中现有的模式,整体上是清晰和正确的。
我发现新增的模板定义存在一些代码重复,虽然这与文件中的现有风格一致,但我还是在 src/templates/built-in.ts 文件中提出了一条关于代码可维护性的建议,旨在通过重构减少重复代码。此评论已保留,因为它不与提供的规则冲突。
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ 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
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
| - 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 |
There was a problem hiding this comment.
这两个模版可以先加到 src/templates/built-in.ts 即可,SKILL 和 prompt 可以先不加
remove templates: - relation-network-icon-badge - relation-network-simple-circle-node
变更说明
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(中心-多节点由力导向自动布线):如下图示:


