Web UI: config editor — baseline diff view + session snapshot history

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
react, typescript
领域
frontend

调研方向

Read ConfigEditorModal.tsx around the baseline hash at lines 359–364 and markSaved around lines 723–766, then inspect the existing Revert and pendingAction flow. The issue also points to utils/ for a pure LCS diff utility and references #116, #105, #111, and #147 for related behavior. Done means the editor can show baseline-to-draft changes and list and restore session save snapshots through the existing confirmation flow.

由索引模型根据 Issue 内容生成。

描述

enhancement frontend

Idea

Two editor features that build directly on the #116 staleness machinery:

1. Baseline diff view. The editor already loads the baseline text and hashes it for the staleness guard (ConfigEditorModal.tsx:359-364), but only the hash is kept. Keep the baseline text in a ref next to baselineHashRef and add a "Diff" toggle that renders a line-level diff (small pure LCS util in utils/) between baseline and draft before Apply/Save — users see exactly what will be written, complementing the Problems panel from #105/#111.

2. Session snapshot history. The editor tracks a save baseline per save (markSaved, lines 723-766). Add a "History" entry to the header listing the session's saved snapshots (text + timestamp kept in a ref stack); restoring one reuses the existing Revert/pendingAction confirm flow and the swap-doc path (which #147 will have made undo-friendly). Purely client-side — no server change needed for session history. (Disk-side history would be a separate, larger feature.)

主要语言
Python
星标
1
派生
1
平均合并
4 小时 46 分钟
30 天内合并 PR
55

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

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

falbany/ProFiles 的其他 Issue

查看 falbany/ProFiles 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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