[BUG] Saving Configure Board hides all workspace tools (Iterations, Milestones, Pages...) and enables Queue
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 半天
- 新手友好度
- 68/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- javascript
- 领域
- frontend
调研方向
Start in frontend/src/lib/settings/BoardConfigurationPage.svelte: the fallback at ~line 207 builds enabledViews from workspaceViewItems, and the save branch at ~line 774 writes it whenever view_settings exists. Read navigation/workspaceNavigation.js for workspaceViewItems, workspaceOnlyViews and DefaultWorkspaceNavItemIDs, then WorkspaceNavigation.svelte to see how enabledNavIds filters the Tools section. Done means saving columns/backlog alone writes no enabled_views and tools stay visible; note the linked issue #456 blocks the UI recovery path.
由索引模型根据 Issue 内容生成。
描述
Summary
Saving the workspace-scope Configure Board page (/workspaces/:id/board/configure) writes an explicit view_settings.enabled_views override that contains only the collection views plus queue. All workspace tools (agents, iterations, milestones, analytics, actions, pages) disappear from the Tools section of the workspace sidebar, and Queue — opt-in by default — shows up.
Because of #456 the Configure navigation page can't be used to turn the tools back on, so the only way out in the UI is gone.
Environment
- Windshift v0.9.3 (Docker image
ghcr.io/windshiftapp/windshift:v0.9.3, SQLite) - The relevant code is identical on
main(checked at5f1578b)
Steps to reproduce
- Create a new workspace (no explicit navigation override yet). The Tools section shows Agents, Iterations, Milestones, Analytics, Actions, Pages.
- Open Board → Configure, change the columns and/or the backlog statuses (I left Completed work: Show all as is).
- Click Save Changes.
Actual: The Tools section only shows Look and Feel and Settings; Queue appears under the views. The board configuration now contains:
"view_settings": {
"completed_visibility": "all",
"enabled_views": ["backlog", "board", "list", "tree", "map", "roadmap", "queue"]
}
Expected: Saving columns/backlog leaves the navigation as it was (tools visible, Queue off), i.e. no enabled_views override is written unless the user changed the Views tab.
I observed this once on a fresh workspace; the cause below is from reading the code, and the stored list matches it exactly.
Cause
frontend/src/lib/settings/BoardConfigurationPage.svelte:
-
When the scope has no override, the Views state falls back to the collection views only (line ~207):
enabledViews = Array.isArray(effectiveViews) && effectiveViews.length > 0 ? [...effectiveViews] : workspaceViewItems.map((view) => view.id); // backlog … roadmap + queue, no toolsworkspaceViewItems(innavigation/workspaceNavigation.js) contains the six board views andqueue; the tools live inworkspaceOnlyViews. -
On save, that list is written as an explicit override as soon as
view_settingsexists at all — which it does oncecompleted_visibilityhas been stored (line ~774):} else if (viewsDirty || boardConfig?.view_settings) { viewSettings.enabled_views = [...enabledViews]; }
WorkspaceNavigation.svelte then filters the Tools section by enabledNavIds(workspaceId), so every tool that isn't in the list is hidden. queue is in workspaceViewItems, so it becomes enabled although it isn't part of DefaultWorkspaceNavItemIDs.
Suggested fix
- Don't write
enabled_viewsunless the Views tab was actually changed (viewsDirty) — an existingview_settingsobject (e.g. onlycompleted_visibility) is not a reason to materialise the default. - At workspace scope, keep the ids this page doesn't manage when saving, e.g. merge back every id from the effective set that isn't one of the page's view ids (tools), instead of replacing the whole list.
- For the inherited case, fall back to the real workspace default (
DefaultWorkspaceNavItemIDs) rather thanworkspaceViewItems.
Workaround
PUT /rest/api/v2/workspaces/:id/board-configuration (token with collections:read + collections:write) with the current configuration and the tool ids appended to view_settings.enabled_views. Columns must be sent in request shape (id, name, display_order, wip_limit, color, status_ids), see #456. PATCH returns 405 on /rest/api/v2.
- 主要语言
- Go
- 星标
- 421
- 派生
- 50
- 平均合并
- 17 小时 34 分钟
- 30 天内合并 PR
- 80
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Windshiftapp/core 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
Windshiftapp/core#542 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
Windshiftapp/core#334 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
Windshiftapp/core#259 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
[Bug][AI chat] Select menu dont appear when on index page可能已有人在做 @valentimarco 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 20/100
Windshiftapp/core#541 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 45/100
Windshiftapp/core#538 · 1 个 reaction ·
维护者通常 1 天内回复
查看 Windshiftapp/core 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
karmada-io/karmada#8101 ·
维护者通常 1 天内回复
-
product:platform
难度 2/5 1-3 小时 新手友好度 77/100
Infisical/infisical#9746 · 1 条评论 ·
维护者通常 1 天内回复
-
CrossEntropyFilter raises on zero probabilities and single-class results可能已有人在做 @NopeCharon 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 86/100
txn2/mcp-data-platform#2728 ·
维护者通常 1 天内回复
-
effort:s impact:low raised-by:worker risk:low
难度 2/5 1-3 小时 新手友好度 70/100
medici-finance/assay#7259 · 1 条评论 ·
维护者通常 1 天内回复