Repository navigation
Conversation
新增第三种首页日记布局“时间线”(DiaryLayoutMode.timeline),严格对齐全部 9 张设计稿: - 模型与设置:新增 40 项时间线外观(DiaryTimelineStyle)与 17 项行为(DiaryTimelineBehavior),稀疏 JSON 编码与容错夹紧,补齐 9 套内置预设的时间线配置;行为设置独立保存于 diaryCardStyleRaw.timelineBehavior,随备份导出且不随预设或样式码覆盖 - 布局与交互:实现单遍 Stack 轨道与 8 类节点、呼吸光环、大号/标签日期锚与书序章节锚、顶部置顶横条(主轴不跨日期插队)、此刻写日记与草稿续写、那年今日、交互式月度心情色带、待办/打卡折叠行、每周 AI 回顾、封存与今日解封胶囊、九宫格/大图/横条多图、视频、单/多段波形音频、导图、链接卡片、正文清单就地勾选、3 种内联留言样式、多选节点波浪变形、宽窗口双栏阅读底栏提示与桌面快捷键 - 时间跳转与联动:实现吸顶滚轮日期锚与纵向拨盘、“跳到…”热力图与迷你日历面板、空日子最近日落点规则与回程票、“回到今天”悬浮胶囊、日历单日“在时间线中查看”反向入口及首次引导第三种布局预览 - 样式编辑器与本地化:卡片样式页新增“时间线”预览模式与 7 个专属标签(含 2 个行为标签与切标签自动滚动预览);补齐 en/zh/ja/ru 四语本地化、规则文档、AI 指南与单元测试/组件测试 影响范围:首页日记页(含首页内切换的日记本)、日历单日操作、卡片样式页、AI 回顾页、首次引导页及数据库列表查询(新增 ignorePinned 与 watchPinnedDiaries)。
# Conflicts: # docs/rules/structure.md
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动摘要
按照《Jotsy 时间线布局设计稿》的全部 9 张画板,为首页日记新增第三种布局样式 时间线(
DiaryLayoutMode.timeline) 及配套样式编辑器:DiaryTimelineStyle,稀疏 JSON 编码与越界夹紧)与 17 项行为配置(DiaryTimelineBehavior)。diaryCardStyleRaw的timelineBehavior字段中,随完整备份导出且不被预设、“我的样式”或jotsy-card:v1:样式码覆盖。DiaryCardSurfaceSpec/DiarySelectionSurface支持气泡卡片非对称尖角(6, r, r, r)(实色与玻璃材质统一复用)。Stack+PositionedDirectional替代IntrinsicHeight,兼容卡片内LayoutBuilder且避免额外布局遍。ignorePinned: true不跨日期插队)、“此刻”写日记行与草稿续写胶囊、那年今日 / 那年这周(含跨年 ±3 天窗口)、交互式 30 天月度心情色带卡、可折叠已完成待办与打卡行、每周 AI 回顾条、封存与今日解封时间胶囊卡。updateDiaryContent)、>1500 字长文胶囊及 3 种内联留言样式(色块 / 细线 / 气泡)。Ctrl/⌘+G、Alt+↑/↓、Home)。DiaryTimelineController、吸顶滚轮日期锚(单击 / 长按 / 纵向拨盘)、“跳到…”面板(6 枚快捷胶囊、年份切换、6×2 月热力图、7 列迷你日历、“在日历中打开”)、书序章节目录面板、空日子落至最近有日记日提示、回程票(连续跳保留最初出发点,8 秒或滚过一屏收起)与“回到今天”悬浮胶囊。timelineJumpRequestProvider切换首页并直达该日;首次引导页首页布局新增第三项时间线及预览。列表 | 瀑布流 | 时间线三态;选到时间线时底部切换为 7 个专属标签(预设、外观、轨道与日期、内容、留言、插入 [行为]、交互 [行为])并支持切标签自动滚至对应预览锚点。en/zh/ja/ru四语 ARB(+148 keys)与生成文件;更新docs/rules/与中英文 AI 使用指南。合并
origin/main冲突说明开 PR 前已执行
git fetch origin && git merge origin/main(合并远端最新 9 个提交,含 #498 与 #499):docs/rules/structure.md:保留本分支新增的时间线区块/组件索引,同时完整保留origin/main新增的正文引用评论句尾图钉条目(diary_quote_badge.dart)。lib/l10n/:ARB 自动合并后重新执行flutter gen-l10n并通过dart run tool/check_arb.dart校验(4 语 6607 条消息全部一致)。验证结果
dart format --output=none --set-exit-if-changed lib test integration_test tool:通过(0 changed)dart run tool/check_arb.dart:通过(6607 messages in 4 locales)flutter analyze --no-pub:本 PR 新增与修改的 Dart 文件 0 error / 0 warning / 0 新增 infoflutter build linux --release与签名flutter build apk --release --target-platform android-arm64均构建成功,并在真机913f6086覆盖安装验证通过