# Wiki Frontend Section Time/Source Filters

Date: 2026-04-19

## Summary

Section landing 页面继续增强了过滤能力。现在不仅能按搜索、排序、类型、标签、预览类型过滤，还新增了时间范围与来源维度。

## New Capabilities

### Page sections
适用：`entities` / `concepts` / `comparisons` / `queries`

新增过滤：
- 时间范围
  - 今天
  - 最近 7 天
  - 最近 30 天
  - 30 天前
- 来源
  - 基于页面 frontmatter 中的 `sources:` 自动聚合
  - 以 source path 精确过滤

保留过滤：
- type
- tag
- 搜索
- 排序

### Raw sections
适用：`uploads` / `web` / `papers` / `notes` / `chat` / `assets`

新增过滤：
- 时间范围
  - 今天
  - 最近 7 天
  - 最近 30 天
  - 30 天前

保留过滤：
- preview type
- 搜索
- 排序

## UX Notes

- 过滤文案保持中文。
- 首页与其他页面的中文工作台 UI 不受影响。
- 过滤控件布局已扩展，能容纳更多筛选项而不挤坏 section landing。

## Verification

- `python -m pytest /root/.hermes/wiki-ui/tests/test_app_smoke.py -q` → `10 passed`
- 本地验证通过：
  - `/section/entities?source=...`
  - `/section/entities?period=30d`
  - `/section/notes?preview=markdown&period=30d`
- 反代验证通过：`wiki.hazim.work`
