Repository navigation
feat(buddy): 新建空间默认使用所选文件夹名 - #236
Merged
shanyuhai123 merged 2 commits intoOct 8, 2026
Merged
Conversation
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.
背景与关联 / Context and related issue
主要改动 / Changes
useSpaceEditor.ts:选择主目录后,若空间尚未创建且名称仍为空,用所选目录名(去掉结尾分隔符)预填名称;已有空间或用户已手填名称时保持原样,不覆盖用户输入。验证 / Verification
pnpm --filter @uselexora/lexora-buddy test:unit src/modules/tasks/widgets/task-index/__tests__/useSpaceEditor.spec.ts通过;pnpm --filter @uselexora/lexora-buddy type-check通过;改动文件 eslint 通过。pnpm lint(仅对改动文件执行)。兼容与风险 / Compatibility and risks
只影响"新建空间"表单的默认值,不改变已有空间数据与保存逻辑;无数据迁移。
界面变更 / UI changes
新建空间表单默认名称由空变为所选目录名;无布局变化。