LC044 / LC044/TrailSnap

feat(location): 季节/月份快捷筛选 — 按春夏秋冬或指定月份快速筛选照片

Open
#58 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement status: pending-review
Dominant language
Python
Stars
739
Forks
97
Avg merge
10h 3m
Merged PRs (30d)
82

Description

功能描述

在位置相册的日期筛选区域增加季节快捷按钮(春/夏/秋/冬)和月份多选功能,用于发现同一地点不同季节的面貌。

实现思路

  • 后端 photo_metadata.take_time 已有拍摄时间,查询中加 EXTRACT(MONTH) 条件即可
  • 前端在 LocationList.vue 的筛选栏增加季节按钮组(3-5月=春,6-8月=夏,9-11月=秋,12-2月=冬)
  • 月份多选可用 el-select multiple,范围1-12月
  • 季节/月份筛选与现有的年份筛选、日期范围筛选叠加生效
  • 后端 API /api/locations 已支持 start_date/end_date,季节可转换为对应日期范围;月份筛选需新增 months 查询参数

优先级

中 — 投入低但用户感知强,"原来这个城市我夏天去过3次"

依赖

  • 后端可能需新增 months 查询参数支持

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the location filter in LocationList.vue and trace the /api/locations handler and its use of photo_metadata.take_time. Verify how year and date-range filters are combined, then add the seasonal controls and month selection so the filters compose correctly; done means seasonal and month-based location results work alongside the existing filters.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
full-stack
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.