Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

fix: keep follow sources grouped by author

longmeidaobfb6bd98fe54
diff --git a/docs/STATUS.md b/docs/STATUS.md
index 762e76341..90392993d 100644
--- a/docs/STATUS.md
+++ b/docs/STATUS.md
@@ -40,7 +40,7 @@
- Fiu758 只登记为厂牌 Logo 候选发现来源,不作真相源。17 个已安装横条 Logo 已原样备份并无损补成正方形;5 个损坏图片保持不动并进入错误报告。JAV 官方元数据批次生成 45 组候选,含 7 个日文系列名和 9 个官方标签,均未自动批准、未写 ledger 真相字段。
- 正式 Windows 测试入口跑完 1040 项,全部通过,13 项按平台跳过。桌面浏览器确认关注页顶部为 88px、无旧筛选控件、无横向溢出且目录标题隐藏;手机视口覆盖连续超时,截图验收为未取得,响应式源码契约测试已通过。
- 新 EXE 已部署到 Windows 生产入口,旧版备份为 `dist/Peach/Peach.pre-34932ec-20260827-190405.exe`。打包迁移为 21 个、0 待处理;80/443 已恢复到新托盘子进程,项目 CA 严格 HTTPS `/healthz` 为 writer,部署前后 ledger SHA-256 不变。生产 `/api/follow` 返回 277 个变体,其中 233 个带预览;新标签页确认首页式筛选、标题清理与桌面无溢出,手机视口覆盖仍未生效,手机截图验收为未取得。
-- `58a4c4f`、`8da8c81` 已合入 `master`:Rule34.xxx 的 HTTP 200 空正文按零命中处理,管理页把查找结果合回添加区并统一标题字号;来源名称可回到原页面,同一作者只保留一个标题、宽屏下来源行分两栏。正式 Windows 测试 1051 项通过、13 项跳过;生产桌面与 390×844 手机视口均无横向溢出,严格 HTTPS 为 writer,重启前后 ledger SHA-256 不变。
+- `58a4c4f`、`8da8c81` 已合入 `master`:Rule34.xxx 的 HTTP 200 空正文按零命中处理,管理页把查找结果合回添加区并统一标题字号;来源名称可回到原页面,同一作者只保留一个标题。多栏单位是作者组,组内来源保持单栏。正式 Windows 测试 1051 项通过、13 项跳过;生产桌面与 390×844 手机视口均无横向溢出,严格 HTTPS 为 writer,重启前后 ledger SHA-256 不变。
## 下一批工作
diff --git a/tests/test_follow_web.py b/tests/test_follow_web.py
index da93b3925..6dafc0abc 100644
--- a/tests/test_follow_web.py
+++ b/tests/test_follow_web.py
@@ -737,15 +737,13 @@ class FollowWebSourceTests(unittest.TestCase):
self.assertNotIn(".fpicks h3{", page,
"查找结果不应另起一套标题字号")
- def test_follow_sources_use_multiple_columns_and_link_to_the_original_page(self):
+ def test_follow_author_groups_use_multiple_columns_and_link_to_the_original_page(self):
self.assertPageContains('class="frows fsources"')
grid = self.page[self.page.index(".fsources{"):]
self.assertIn("repeat(auto-fit,minmax(430px,1fr))", grid[:grid.index("}")])
- author_grid = self.page[self.page.index(".fsources>.fauthor{"):]
- self.assertIn("repeat(auto-fit,minmax(400px,1fr))",
- author_grid[:author_grid.index("}")],
- "同一作者的多个来源也要真正分栏,不能只给作者组外层分栏")
- self.assertPageContains(".fauthorhead{display:flex;grid-column:1/-1")
+ self.assertPageContains("followAuthorGroups(sources).map(followAuthorBlock).join('')")
+ self.assertNotIn(".fsources>.fauthor{display:grid", self.page,
+ "多栏单位是作者组,不能拆开作者下面的来源行")
self.assertPageContains('class="fsourcelink" href="${esc(source.url)}"')
self.assertPageContains('title="打开原来源"')
self.assertPageContains('rel="noreferrer noopener"')
diff --git a/web/app.css b/web/app.css
index 431e5e636..763091275 100644
--- a/web/app.css
+++ b/web/app.css
@@ -1353,10 +1353,8 @@ body.drawer-open .edge{opacity:0;pointer-events:none} /* 展开时窄栏让位
这段必须排在 `.frow` 之后:测试用 `index('.frow{')` 取那条规则的正文,
放前面的话选择器里的同名片段会被先匹配到,取回来的是这里的规则。 */
.fauthor{border-top:1px solid var(--line-soft)}
-.fsources>.fauthor{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));
- column-gap:22px}
.fauthor:first-child{border-top:0}
-.fauthorhead{display:flex;grid-column:1/-1;align-items:center;gap:9px;padding:10px 0 6px}
+.fauthorhead{display:flex;align-items:center;gap:9px;padding:10px 0 6px}
.fauthorhead b{font-size:var(--fs-md);min-width:0;overflow:hidden;
text-overflow:ellipsis;white-space:nowrap}
.fauthorhead .fmeta{margin-left:auto;flex:none}
@@ -1420,7 +1418,6 @@ details.fcred{display:block}
.faddform .fbtn{flex:1 1 100%}
.frow{gap:8px}
.fsources{grid-template-columns:1fr}
- .fsources>.fauthor{grid-template-columns:1fr}
.frow .fmeta:nth-of-type(2){display:none}
}