Skip to content

feat: 新建任务默认项目(#56),lib 解除跟踪与 0.9.3 发布准备 - #57

Merged
cloader merged 2 commits into
mainfrom
feat/56-default-workspace-setting
Oct 23, 2026
Merged

cloader merged 2 commits into
mainfrom
feat/56-default-workspace-setting

Conversation

@cloader

@cloader cloader commented Oct 23, 2026

Copy link
Copy Markdown
Owner

Closes #56。

变更

默认项目(#56)

  • BoardSettings.defaultWorkspaceId:协议字段 + asBoardSettings 校验(trim、空白=未设置、未知字段仍丢弃)
  • settings/update 拒绝指向已注销工作区的 id(invalid_input);读取时悬空引用惰性跳过
  • 设置弹窗新增「默认项目」选择器;表单初始值链 initialWorkspaceId():任务 > 看板筛选 > 默认项目 > 列表第一项
  • zh/en 词条

0.9.3 发布准备

验证

  • npm run typecheck ✅
  • 全量 43 套件 / 550 用例 ✅(fresh build 后)
  • npm pack --dry-run 确认 tarball 含 lib(134 文件)

Board settings gain defaultWorkspaceId: the new-task form starts from it when no board project filter is set, instead of always falling back to the first registered workspace. Priority: task > board filter > default project (when still registered) > first registered workspace.

- protocol: BoardSettings.defaultWorkspaceId + asBoardSettings validation (trim, blank = unset, unknown fields still dropped)

- routes: settings/update rejects ids that are no longer registered

- client: settings modal selector, form fallback chain via initialWorkspaceId(), zh/en i18n

- tests: helper chain, settings validation, routes persistence/rejection, SettingsModal save/clear/dangling, TaskFormModal initial selection
lib/ moves back to build output (gitignored, regenerated by npm run build); prepublishOnly now builds and tests so the npm tarball always ships fresh lib. Changelog gains the 0.9.3 entry (#52 stays in 0.9.2 — v0.9.2 tag already exists), READMEs add 0.9.3, and the version bumps to 0.9.3.
@cloader
cloader merged commit b99293b into main Oct 23, 2026
1 of 2 checks passed
@cloader
cloader deleted the feat/56-default-workspace-setting branch October 23, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

新建任务的项目默认值不可配置:固定回落到工作区列表第一项

1 participant