feat: 新任务提示条 + 按taskIds直接加载

1. 首页新增"有N条新任务 点击查看"提示条
   - pendingCount>0 时显示,点击/查看后消失
   - 和红点共存:提示条=统一入口,红点=分类提示

2. TaskListFragment 通知模式
   - 有 filterTaskIds 时跳过 queryTaskIds
   - 直接按 taskId 构建列表,调 lookTaskDetail 加载详情
   - 不受 status 筛选限制,跨状态任务都能显示

3. 横幅/提示条共用 navigateToNewTasks()
   - 1个任务→跳详情,多个→跳列表
   - 跳转后清除红点+提示条+pendingTaskIds

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
dongliang
2026-04-29 16:42:09 +09:30
parent 463ff1373d
commit 6418c2f36f
4 changed files with 100 additions and 39 deletions

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- 新任务提示条背景(蓝色半透明圆角) -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#1A3B9EFF" />
<corners android:radius="12dp" />
</shape>

View File

@@ -42,6 +42,22 @@
</LinearLayout>
<!-- 新任务提示条pendingCount>0 时显示,点击查看所有新任务) -->
<TextView
android:id="@+id/tvNewTaskHint"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:background="@drawable/bg_new_task_hint"
android:gravity="center"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:text="有1条新任务 点击查看"
android:textColor="#FF3B9EFF"
android:textSize="18sp"
android:textStyle="bold"
android:visibility="gone" />
<!-- 快捷区 gap:6px→8dp -->
<LinearLayout
android:layout_width="match_parent"