Quick insert: pick a prompt and fill in its variables
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 52/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- csharp, sqlite
调研方向
Start with CommandPaletteViewModel.cs for keyboard navigation, then trace AnalyzeVariables and Render in PromptTemplateService.cs and the shared cache in ShellServices.cs and PromptEditorViewModel.cs. Check SqliteRenderValues.cs for persistence and find the UI, FocusOrderTests, and AccessibilityTests entry points. Done means keyboard-only selection and filling, values shared with the Render tab, and the specified UI and accessibility tests pass.
由索引模型根据 Issue 内容生成。
描述
Once Quick insert is open (#24), picking and filling in a prompt should take only the keyboard.
What to do
- Up and Down move through the results and Enter picks one, as in the command palette. Esc closes Quick insert and changes nothing.
- A prompt without
{{variables}}goes straight on to #26. - A prompt with variables asks for them in the same window, one box per variable in order of first appearance, filled with its remembered values. Tab moves between the boxes and Enter (or Ctrl+Enter in a box that takes several lines) inserts. Changed values are remembered as they're typed, as on the Render tab, and a missing or empty value leaves its
{{token}}in place. - Remembered values never go into logs. Log prompt IDs only.
Where to look
src/Prompuff.Application/Services/PromptTemplateService.cs:AnalyzeVariables,Rendersrc/Prompuff.Infrastructure/Repositories/SqliteRenderValues.cs:LoadAsync,SaveAsyncsrc/Prompuff.App/ViewModels/ShellServices.cs:RenderValuesCache, which the Render tab sharessrc/Prompuff.App/ViewModels/PromptEditorViewModel.cs: how the Render tab uses the cachesrc/Prompuff.App/ViewModels/CommandPaletteViewModel.cs: keyboard movement through results
Done when
- A prompt can be found, picked and filled in from the keyboard alone.
- Values typed in Quick insert show up on the prompt's Render tab, and the other way round.
- UI tests cover a prompt with no variables, one with two, and Esc, with screenshots of each state.
-
FocusOrderTestsandAccessibilityTestspass with Quick insert open.
- 主要语言
- C#
- 星标
- 0
- 派生
- 1
- 平均合并
- 1 小时 51 分钟
- 30 天内合并 PR
- 13
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
hazeliscoding/prompuff 的其他 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 78/100
hazeliscoding/prompuff#34 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
hazeliscoding/prompuff#22 ·
维护者通常 1 天内回复
-
good first issue
难度 2/5 1-3 小时 新手友好度 90/100
hazeliscoding/prompuff#14 ·
维护者通常 1 天内回复
-
good first issue
难度 1/5 1-3 小时 新手友好度 92/100
hazeliscoding/prompuff#13 ·
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 88/100
hazeliscoding/prompuff#12 ·
维护者通常 1 天内回复
查看 hazeliscoding/prompuff 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
KnifeLemon/Filee#363 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 62/100
-
area-Native untriaged
难度 2/5 1-3 小时 新手友好度 76/100
dotnet/machinelearning#7837 ·
维护者通常 2 天内回复
-
[CI] .trgen-ignore required for several grammars.可能已有人在做 @kaby76 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
antlr/grammars-v4#5073 ·
维护者通常 1 天内回复
-
[Enhancement]: Add a search box to the Time Zone dropdown可能已有人在做 @idumlupinar 今天认领。 未关闭Status: New
难度 2/5 1-3 小时 新手友好度 85/100
dnnsoftware/Dnn.Platform#7579 ·
维护者通常 2 天内回复