Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Web: copy an existing plugin entry and adjust its settings

未关闭
#336 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 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 内容生成。

描述

area:web enhancement

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 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

txoof/PaperPi 的其他 Issue

查看 txoof/PaperPi 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。