createSkillBodySchema.test.ts
990 Bytes
-
feat(skill): optimize skill first-use UX and cross-tab associate flow (#7421) · 01732466
* feat(skill): optimize skill first-use UX and cross-tab associate flow Add dashboard empty-state guidance, skill selector create redirect, and cross-tab associate bridge for Agent skill binding after creation. Co-authored-by: Cursor <cursoragent@cursor.com> * refactor(skill): normalize root parentId to null and simplify modal/list flow - Root directory is now uniformly `null`; collapse fetchParentId/parentId in useSkillSelectData and drop `?? ''` in skill context (server treats falsy parentId as root, so behavior is unchanged). - Create/Import modals no longer swallow onSuccess errors with a toast; callers handle exceptions and list refresh becomes best-effort. - Drop redundant redirectToDetail in CreateSkillModal; openDetailInNewTab fully controls new-tab vs current-page navigation. - Extract passesSandboxGuard helper in skill List. - Dedupe the shared glow-ellipse/filter geometry in SkillEmptyActionCard. refactor(skill): remove unused skill association logic and clean up related components chore(skill): update submodule and remove unused SVG assets - Updated submodule reference in `pro`. - Deleted unused SVG files related to skill selection and import functionality, including `createCardBgDefault.svg`, `createCardBgHover.svg`, `importCardBgDefault.svg`, `importCardBgHover.svg`, and `skillSelectEmptyIcon.svg`. - Refactored `SkillSelectModal` and related components to streamline button actions and improve code clarity. refactor(skill): simplify EmptyTip component and update SkillSelectModal logic * feat(skill): implement skill import size validation and enhance user feedback * refactor(skill): simplify empty card glow effect and import size check --------- Co-authored-by: siigure <siiigureouo@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com>
DigHuang committed