feat(homepage): add guided tour and version display functionality

- Add version API endpoint and response interface in common.ts
- Implement interactive guided tour with 4 steps for new users covering Model Management, Space Management, and User Management
- Add tour translation keys for both English and Chinese locales
- Add data-menu-id attributes to sidebar menu items for tour targeting
- Create VersionCard component to display current platform version
- Update GuideCard component with tour state management and navigation logic
- Enhance homepage dashboard with version information display
- Improve user onboarding experience with step-by-step guided navigation
This commit is contained in:
yujiangping
2026-01-12 16:32:58 +08:00
parent d6b1c2effb
commit d957e27501
9 changed files with 189 additions and 53 deletions

View File

@@ -23,6 +23,10 @@ export interface DataResponse {
new_apps_this_week: Number;
app_week_growth_rate: Number
}
export interface versionResponse{
version: string;
introduction: string;
}
// 首页数据统计
export const getDashboardData = `/home-page/workspaces`
@@ -30,4 +34,9 @@ export const getDashboardData = `/home-page/workspaces`
export const getDashboardStatistics = async () => {
const response = await request.get(`/home-page/statistics`);
return response as DataResponse;
};
// 获取版本号
export const getVersion = async () => {
const response = await request.get(`/home-page/version`);
return response as versionResponse;
};