Sprint 6: Таймлайн X home variant for chronic patients
Fourth home variant alongside Карточки / Лента / Таймлайн, labeled "Таймлайн X" in Tweaks "Главный экран". Designed for patients with chronic conditions (not post-op). data.js: new `chronic` object — condition, stage, doctor, metrics (days since last flare-up, compliance %, flare-ups this year), daily + scheduled tasks, lifestyle recommendations, and 5-visit observation history. HomeTimelineXScreen sections: - Health status hero with soft gradient primary-100 → warm-100, success-tinted stable-state chip (green dot), three narrow-font metrics - Today's tasks card: daily habits with streak + 🔥, scheduled procedures with dates - Ask-a-question promotion: AI card (teal gradient) + doctor card (with avatar) side by side - Vertical observation timeline: 5 past visits with doctor initial, color-coded by type (diagnosis/procedure/therapy/flareup/checkup) - Upcoming appointment, lifestyle recommendations carousel with emoji, book CTA, article carousel Softened hero from dark teal gradient with white text to light primary-100 → warm-100 gradient with dark text — stable-state signal, not clinical verdict. Following Sprint 5 convention: matching entry in src/docs.js under key `home:timelineX` with title, category, goal, tasks, rationale. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
import React, { useEffect, useMemo, useState } from 'react';
|
||||
import { TabBar } from './components.jsx';
|
||||
import { HomeCardsScreen, HomeListScreen, HomeFeedScreen } from './screens/screens-home.jsx';
|
||||
import { HomeCardsScreen, HomeListScreen, HomeFeedScreen, HomeTimelineXScreen } from './screens/screens-home.jsx';
|
||||
import {
|
||||
BookingSpecsScreen, BookingDoctorScreen, BookingTimeScreen,
|
||||
BookingConfirmScreen, BookingSuccessScreen,
|
||||
@@ -22,7 +22,7 @@ import { DocsScreen } from './screens/screens-docs.jsx';
|
||||
function renderScreen(screenId, nav, ctx) {
|
||||
const parts = screenId.split(':');
|
||||
const id = parts[0];
|
||||
const HOME = { cards: HomeCardsScreen, list: HomeListScreen, feed: HomeFeedScreen }[ctx.homeVariant] || HomeCardsScreen;
|
||||
const HOME = { cards: HomeCardsScreen, list: HomeListScreen, feed: HomeFeedScreen, timelineX: HomeTimelineXScreen }[ctx.homeVariant] || HomeCardsScreen;
|
||||
switch (id) {
|
||||
case 'home': return <HOME nav={nav} ctx={ctx} />;
|
||||
case 'home-v2': return <HomeV2Screen nav={nav} ctx={ctx} />;
|
||||
|
||||
Reference in New Issue
Block a user