Add hints / guards against silent or unclear failures
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- javascript
调研方向
首先复现列出的 Workbench 用例:不支持的子项、多个子项、Gtk.Adjustment 属性顺序、分组的 ToggleButtons,以及缺失的图标。检查 Workbench 当前如何报告或处理这些示例,然后为每个用例定义明确的行为;完成应意味着用户能收到清晰的反馈,或在不发生卡死的情况下阻止有问题的渲染。
由索引模型根据 Issue 内容生成。
描述
Some things fail (or crash even) silently—we should add measures to inform users and possibly prevent the rendering.
https://floss.social/@sonny/109975391706946091
I discussed with James if this belongs in Blueprint or Workbench, no clear winner. Let's start/iterate in Workbench and possibly transfer to Blueprint later.
No child allowed
crash: no
priority: high
Passing children to objects that don't accept any such as Label will not provide any feedback. It is confusing to beginners as the children don't get rendered but no explanation is given.
We should emit an error.
Label {
label: "Hello";
Button {
label: "World";
}
}
Single child allowed
crash: no
priority: high
Some widgets like AdwStatusPage, Adw.Clamp, ScrolledWindow, ... allow only one child. It doesn't error but only the last child will be rendered. It's confusing and makes the user think they did something wrong.
OK
Adw.StatusPage {
Button {
label: "a";
}
}
KO
Adw.StatusPage {
Button {
label: "a";
}
Button {
label: "b";
}
}
Order of properties on Gtk.Adjustment
crash: no
priority: medium
OK:
Scale one {
width-request: 130;
adjustment: Gtk.Adjustment {
lower: 0;
upper: 100;
value: 50;
};
}
KO:
Scale one {
width-request: 130;
adjustment: Gtk.Adjustment {
lower: 0;
value: 50;
upper: 100;
};
}
ToggleButton grouped to each others
Grouping ToggleButtons to each others will render fine but will cause Workbench to freeze when clicking on one of them.
crash: yes
priority: low
KO
using Gtk 4.0;
using Adw 1;
Box {
halign: center;
valign: center;
orientation: horizontal;
ToggleButton button_first {
label: "Toggle On";
group: button_second;
}
ToggleButton button_second {
label: "Toggle Off";
group: button_first;
}
}
OK:
using Gtk 4.0;
using Adw 1;
Box {
halign: center;
valign: center;
orientation: horizontal;
ToggleButton button_first {
label: "Toggle On";
}
ToggleButton button_second {
label: "Toggle Off";
group: button_first;
}
}
icon not found
crash: no
priority: low
some references does'nt show up and are replaced by a corrupted icon which looks odd
If we detect an icon as not fund - we could show a hint to lookup the icon library in the menu
- 主要语言
- JavaScript
- 星标
- 846
- 派生
- 91
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
workbenchdev/Workbench 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 25/100
workbenchdev/Workbench#1028 · 11 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
workbenchdev/Workbench#1019 ·
-
难度 4/5 3-5 天 新手友好度 30/100
workbenchdev/Workbench#1014 ·
-
难度 4/5 3-5 天 新手友好度 35/100
workbenchdev/Workbench#1007 · 1 条评论 ·
-
How could I work with multiple user interfaces (e.g. multiple .ui files, or multiple blueprints)?未关闭
难度 5/5 一周以上 新手友好度 25/100
workbenchdev/Workbench#1006 · 1 条评论 · 1 个 reaction ·
查看 workbenchdev/Workbench 的全部 Issue
相似的 Issue
-
ci-install-db-tools stall-case tests flake: stalled apt-get can be killed before it logs its call未关闭effort:low model:light plan planner:opus-5-5 tests
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
Bug 🐞
难度 2/5 1-3 小时 新手友好度 72/100
mozilla-mobile/firefox-ios#35986 ·
维护者通常 1 天内回复
-
component:sight
难度 2/5 1-3 小时 新手友好度 78/100
agentic-os-org/ANOLISA#6738 · 2 条评论 ·
维护者通常 1 天内回复
-
bug Durable Agents Observability (AI Telemetry) status: needs triage
难度 2/5 1-3 小时 新手友好度 82/100
mastra-ai/mastra#26470 · 1 条评论 ·
维护者通常 1 天内回复
-
feature/cohorts feature/feature-flags team/feature-flags
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复