oca20266394

Visualize visits and follow-up nodes using vis-timeline. Intended for cases that need a follow-up timeline, visit timeline, or other vis-timeline–based scenarios. Lightweight integration: renders via data mapping plus a Timeline instance; does not build a full Gantt chart or scheduling system.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "oca20266394" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-6219641798fb784d924a13788eae0fff72909a903e558a069ad7d3eb50600b24. Verify the upstream source and version against https://skillhub.cn/skills/user_f1b049da/pbw20267158 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Visualize visits and follow-up nodes using vis-timeline. Intended for cases that need a follow-up timeline, visit timeline, or other vis-timeline–based scenarios. Lightweight integration: renders via data mapping plus a Timeline instance; does not build a full Gantt chart or scheduling system.

0 Downloads

Introduction source: third_party · user_f1b049da · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: oca20266394
slug: oca20266394
displayName: 跟进时间轴
version: 1.0.0
summary: 用 vis-timeline 把拜访/跟进记录画成可缩放时间轴。
license: MIT
description: 用 vis-timeline 可视化拜访与跟进节点。当用户要跟进时间轴、拜访时间线、vis-timeline 时使用。轻量接入:数据映射 + Timeline 实例;不做完整甘特/排程系统。

跟进时间轴

灵感:能力工具箱 vis-timeline(可视化拜访与跟进节点)。

小四原创:跟进记录 → {id,content,start} → Timeline。
卸载时 timeline.destroy(),防泄漏。

何时使用

  • 客户详情「跟进历程」时间轴
  • Demo 展示拜访节点
  • 按时间缩放查看密集跟进

硬约束

  1. 依赖:vis-timeline(及文档要求的 vis-data / 样式 CSS)。
  2. 每条跟进至少:id、content(摘要)、start(可解析日期)。
  3. 容器需固定高度;空数据展示空态,勿初始化报错。
  4. 实现要点注释标 小四原创。
  5. 组件卸载必须 destroy()。
  6. 不替代完整项目管理甘特(过重项已跳过)。

推荐实现

import { DataSet } from 'vis-data'
import { Timeline } from 'vis-timeline/standalone'
import 'vis-timeline/styles/vis-timeline-graph2d.css'

export type FollowItem = {
  id: string
  title: string
  at: string | Date
  type?: string
}

// 小四原创:跟进 → timeline items
export function toTimelineItems(rows: FollowItem[]) {
  return rows.map((r) => ({
    id: r.id,
    content: r.type ? `<b>${r.type}</b> ${r.title}` : r.title,
    start: r.at,
  }))
}

export function mountFollowTimeline(
  el: HTMLElement,
  rows: FollowItem[],
): { destroy: () => void } {
  const items = new DataSet(toTimelineItems(rows))
  const timeline = new Timeline(el, items, {
    stack: true,
    zoomMin: 1000 * 60 * 60 * 24,
    locale: 'zh_CN',
  })
  return { destroy: () => timeline.destroy() }
}

Agent 步骤

  1. npm i vis-timeline vis-data;引入 CSS。
  2. 客户详情挂载容器,传入跟进列表。
  3. onBeforeUnmount 调 destroy。
  4. 自测:3 条节点可见;空列表不崩。

不要做

  • 把上千条无分页全塞进一次渲染而不虚拟/筛选。
  • 忘记 destroy 导致重复绑定。

附加

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

The source report is incomplete. Only provided dimension scores are shown; missing scores are not inferred.

Scenario Value68/100

Highlights

  • 提供轻量级时间轴可视化方案,解决客户跟进记录展示需求
  • 明确区分与完整甘特图的边界,聚焦核心场景
Trigger Precision75/100

Areas to improve

  • 触发词覆盖可更全面 Reported severity: Minor

    当前触发词主要覆盖 vis-timeline 技术关键词,可补充更多业务场景变体

    Recommendation: 建议增加如"客户跟进时间线"、"拜访记录时间轴"等业务导向触发词

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 72

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.