feat(mobile): update tool summaries and chat transitions #8793
Mergedjuliusmarmingemerged 2 commits into
main fromrefs/pull/8793/headmerged by juliusmarminge View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XXL
github-actions[bot](GitHub profile, opens in a new tab) added labels📱 Native Change
- @@ -1368,5 +1486,18 @@1486+ const groupId = `work-group:${identity}`;1487+ const expanded = expandedWorkGroupIds.has(groupId);1488+ const latestInProgressActivity = activities.findLast(1489+ (activity) =>1490+ isWorking && activity.lifecycleStatus === "inProgress" && activity.turnId === unsettledTurnId,1491+ );1492+ const live = activeTail || latestInProgressActivity !== undefined;1493+ const latestActivity = activeTail1494+ ? activities.at(-1)!1495+ : (latestInProgressActivity ?? activities.at(-1)!);1496+ const summary = live1497+ ? liveToolActivitySummary(latestActivity)1498+ : activities.length === 1 && !activities[0]!.toolLike1499+ ? activities[0]!.workEntry.label1500+ : summarizeToolGroup(activities.map((activity) => activity.workEntry));13681501 result.push({13691502 type: "work-toggle",1370- id: `work-toggle:${groupId}`,1371- createdAt: entry.createdAt,1372- turnId: entry.turnId,1503+ id: `${live ? "work-live" : "work-toggle"}:${groupId}`,@@ -124,9 +149,16 @@149+ }));150+151+ // Clipping here keeps the expanded toolbar inside the glass while the152+ // bottom-anchored host owns the geometry transition.124153 return (125154 <Animated.View126155 className="shadow-[0_6px_28px] shadow-adaptive-black-a15-a35"127156 layout={props.animateLayout === false ? undefined : COMPOSER_LAYOUT_TRANSITION}128- style={{129- borderRadius: props.style.borderRadius,130- // Android versions before 9 do not support outset box shadows.131- elevation: Platform.OS === "android" && Platform.Version < 28 ? 10 : undefined,132- }}157+ style={[158+ animatedShapeStyle,159+ {160+ overflow: "hidden",161+ // Android versions before 9 do not support outset box shadows.162+ elevation: Platform.OS === "android" && Platform.Version < 28 ? 10 : undefined,163+ },164+ ]}
juliusmarminge merged thisf15680b
juliusmarminge closed this
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
80d74e52-2558-4861-9d78-6833253c47ecYou can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Warning
Your free Security trial is over. An organization admin can activate Security or dismiss this notice.
Comment `@coderabbitai help` to get the list of available commands.