Web: copy an existing plugin entry and adjust its settings
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 56/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- python
- 领域
- full-stack
调研方向
Start by reading the web interface’s plugin entry and edit flow, then trace how plugin settings and secret values are stored and sent to the browser. Check issue #263 for unique ID handling and the config export/import context in #328. Done means the web interface can copy an entry with a unique ID, preserve secrets without exposing them to the browser, place it next to the original, open it for editing, and save it turned off, with the listed cases covered by tests.
由索引模型根据 Issue 内容生成。
描述
What
In the web interface, let the user copy an existing plugin entry: make a new entry that starts with all the settings of the old one, then change only what is different.
Why
Some plugins take a lot of setup: an API key, a stop or station, a calendar address, many display options. Today a second entry of the same plugin (for example a second stop, a second calendar, or the same plugin at a different size) means filling in every setting again, including looking up the API key a second time.
How it could work (to decide before coding)
- A Copy button on each plugin entry in the web interface.
- The copy gets a new, unique ID (see #263) and a name like " (copy)" that the user can change.
- All settings are copied, including secret settings (API keys and similar). The key is copied on the Pi itself and never shown in the browser; the copy shows it as "set", like the original does.
- The copy opens straight in the edit form, so the user can change the settings that differ before saving.
- The copy is added next to the original (same position in the list, just below it).
Decided (txoof, 2026-10-26)
- The copy starts turned off, so it does not show up on the screen before it is adjusted.
- Copy only inside this Pi's config. Moving entries between Pis is part of config export/import (#328).
Done when
- A plugin entry can be copied in the web interface with one click.
- The copy is saved turned off.
- Secrets are copied but never sent to the browser.
- Tests cover: copy of a plain plugin, copy of a plugin with a secret, unique ID for the copy, copy starts turned off.
- 主要语言
- Python
- 星标
- 205
- 派生
- 17
- 平均合并
- 3 小时 55 分钟
- 30 天内合并 PR
- 77
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
txoof/PaperPi 的其他 Issue
-
Plugins whose default refresh equals the display time (word_clock, system_info, nl_openbaar_vervoer)可能已有人在做 @txoof-bot 于 1 天前认领。 未关闭area:plugins in-progress
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
enhancement
难度 1/5 1 小时以内 新手友好度 75/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
area:core area:web enhancement
难度 5/5 一周以上 新手友好度 45/100
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
btclib-org/btclib-wallet#587 · 1 条评论 ·
维护者通常 1 天内回复
-
documentation
难度 2/5 1-3 小时 新手友好度 68/100
Judgment-Pack/judgment-pack-spec#275 ·
维护者通常 1 天内回复
-
ai-generated
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
documentation good first issue priority: low size: XS
难度 1/5 1-3 小时 新手友好度 92/100
yeongseon/azure-functions-doctor-python#651 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
Changaco/python-libarchive-c#146 ·