[Sessions: create / edit / cancel] Render host-counted capacity control
还没有人认领这个 Issue。
评估
调研方向
Start in lib/screens/sessions/session_form.dart, which the prerequisite issue #84 is expected to create, and find where draft.capacity is read. Add a number field with the host-inclusive help text, and validate with the capacity validator the issue calls 'completed', which is not named in the payload. Run test/screens/sessions/session_form_dp_s03_3_test.dart and flutter analyze. Done means 4 is accepted and restored, while 1, 51 and non-integers show an error without being clamped.
由索引模型根据 Issue 内容生成。
描述
What to build
Add the seat-capacity field to the meeting form. Explain that the host occupies one of those seats and reject invalid values rather than silently changing them.
Files
lib/screens/sessions/session_form.dart(extend the prerequisite’s file)- Starting example: lib/screens/home_screen.dart
Steps
- Use a number field initialized from
draft.capacityand validate with completed capacity validator. - Show Capacity includes you as the host.; emit only a parsed valid integer in draft update.
- Keep invalid input visible with error, not clamped silently.
Example
4 means host+3others;1/51/noninteger invalid; initial 4restored.
Check it works
In test/screens/sessions/session_form_dp_s03_3_test.dart, check the example above and the failure or limit described in the steps. Run flutter test test/screens/sessions/session_form_dp_s03_3_test.dart and flutter analyze.
Before starting
- #84 — Render session start/end controls
References
Assign yourself before starting, or comment to claim the issue. Project setup.
- 主要语言
- PLpgSQL
- 星标
- 0
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DevDogsUGA/DogPack 的其他 Issue
-
polish
难度 2/5 1-3 小时 新手友好度 72/100
DevDogsUGA/DogPack#131 ·
-
polish
难度 2/5 1-3 小时 新手友好度 65/100
DevDogsUGA/DogPack#130 ·
-
moderation
难度 2/5 1-3 小时 新手友好度 75/100
DevDogsUGA/DogPack#119 ·
-
moderation
难度 2/5 1-3 小时 新手友好度 85/100
DevDogsUGA/DogPack#113 ·
-
discover
难度 2/5 1-3 小时 新手友好度 74/100
DevDogsUGA/DogPack#106 ·
查看 DevDogsUGA/DogPack 的全部 Issue
相似的 Issue
-
ai-driven-qa bug claude Minor
难度 2/5 1-3 小时 新手友好度 64/100
linagora/twake-mail-admin#301 ·
维护者通常 1 天内回复
-
Form: setAllValues does not re-render when passed the same values reference (react-form regression)未关闭
难度 2/5 1-3 小时 新手友好度 68/100
-
bug deadball
难度 2/5 1-3 小时 新手友好度 62/100
leggetter/leggetter.co.uk#100 ·
维护者通常 1 天内回复
-
area:banner
难度 2/5 1-3 小时 新手友好度 72/100
interledger/publisher-tools#930 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
apache/rocketmq-dashboard#6870 ·
维护者通常 3 天内回复