给 AVA.analysis() 方法加入分步进度报告能力,并在 site 侧新增 AnalysisSteps UI 组件实现可视化展示。 - #958
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a progress tracking system for the data analysis process, featuring a new AnalysisSteps component and core logic to emit step-by-step updates. It also replaces the previous iframe-based visualization method with a dedicated GPTVisRenderer component utilizing the @antv/gpt-vis library. Feedback includes a recommendation to ensure the GPTVis instance updates when dimensions change and a suggestion to move hardcoded Chinese labels from the core library to the UI layer to better support internationalization.
Contributor
|
🎊 PR Preview bd2e0f2 has been successfully built and deployed to https://antvis-AVA-preview-pr-958.surge.sh 🕐 Build time: 0.011s 🤖 By surge-preview |
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

点击 Generate 后,只有按钮变成loading,没有其他的提示了,用户只能干等着,不清楚运行情况,加上了分析步骤
变动
分析流程改造 (
src/ava.ts)analysis()方法新增options?: AnalysisOptions参数,支持onProgress回调createStepEmitter工厂函数:内部维护步骤数组,按 phase 去重(同 phase 状态更新而非新增),每次 emit 后回调传出完整的AnalysisStep[]进度组件 (
site/components/AnalysisSteps.tsx)Site 集成 (
site/components/Visualization.tsx)onProgress回调,驱动AnalysisSteps实时更新